Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Observer that enables recoding of all user interaction with the render windows and storing it in an XML file. More...
#include <mitkEventRecorder.h>
Public Member Functions | |
EventRecorder () | |
~EventRecorder () | |
virtual void | Notify (InteractionEvent *interactionEvent, bool) override |
void | SetEventIgnoreList (std::vector< std::string > list) |
SetEventIgnoreList Optional. Provide a list of strings that describe which events are to be ignored. More... | |
void | StartRecording () |
void | StopRecording () |
bool | IsActive () |
void | SetOutputFile (std::string filename) |
Public Member Functions inherited from mitk::InteractionEventObserver | |
InteractionEventObserver () | |
virtual | ~InteractionEventObserver () |
void | Disable () |
void | Enable () |
bool | IsEnabled () const |
Observer that enables recoding of all user interaction with the render windows and storing it in an XML file.
XML file will look like
<?xml version="1.0"?> <interactions> <config> <renderer renderername="stdmulti.widget1" viewdirection="0"> <renderer renderername="stdmulti.widget2" viewdirection="1"> <renderer renderername="stdmulti.widget3" viewdirection="2"> </config> <events> <event_variant class="MOUSEMOVEEVENT"> <attribute name="PositionOnScreen" value="491,388"> <attribute name="PositionInWorld" value="128,235.771,124.816"> <attribute name="RendererName" value="stdmulti.widget2"> </event_variant> </events> </interactions>
Definition at line 51 of file mitkEventRecorder.h.
mitk::EventRecorder::EventRecorder | ( | ) |
Definition at line 116 of file mitkEventRecorder.cpp.
mitk::EventRecorder::~EventRecorder | ( | ) |
Definition at line 120 of file mitkEventRecorder.cpp.
|
inline |
Definition at line 70 of file mitkEventRecorder.h.
|
overridevirtual |
By this function the Observer gets notified about new events.
Implements mitk::InteractionEventObserver.
Definition at line 129 of file mitkEventRecorder.cpp.
References mitk::EventFactory::EventToXML().
void mitk::EventRecorder::SetEventIgnoreList | ( | std::vector< std::string > | list | ) |
SetEventIgnoreList Optional. Provide a list of strings that describe which events are to be ignored.
Definition at line 135 of file mitkEventRecorder.cpp.
|
inline |
Definition at line 71 of file mitkEventRecorder.h.
References filename.
void mitk::EventRecorder::StartRecording | ( | ) |
Definition at line 140 of file mitkEventRecorder.cpp.
References MITK_ERROR, WriteEventXMLConfig(), WriteEventXMLEventsOpen(), WriteEventXMLHeader(), and WriteEventXMLInteractionsOpen().
void mitk::EventRecorder::StopRecording | ( | ) |
Definition at line 178 of file mitkEventRecorder.cpp.
References WriteEventXMLClose().