Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 () override | |
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) |
![]() | |
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.widget0" viewdirection="0"> <renderer renderername="stdmulti.widget1" viewdirection="1"> <renderer renderername="stdmulti.widget2" 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.widget1"> </event_variant> </events> </interactions>
Definition at line 47 of file mitkEventRecorder.h.
mitk::EventRecorder::EventRecorder | ( | ) |
Definition at line 112 of file mitkEventRecorder.cpp.
|
override |
Definition at line 116 of file mitkEventRecorder.cpp.
|
inline |
Definition at line 66 of file mitkEventRecorder.h.
|
overridevirtual |
By this function the Observer gets notified about new events.
Implements mitk::InteractionEventObserver.
Definition at line 125 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 131 of file mitkEventRecorder.cpp.
|
inline |
Definition at line 67 of file mitkEventRecorder.h.
void mitk::EventRecorder::StartRecording | ( | ) |
Definition at line 136 of file mitkEventRecorder.cpp.
References MITK_ERROR, WriteEventXMLConfig(), WriteEventXMLEventsOpen(), WriteEventXMLHeader(), and WriteEventXMLInteractionsOpen().
void mitk::EventRecorder::StopRecording | ( | ) |
Definition at line 174 of file mitkEventRecorder.cpp.
References WriteEventXMLClose().