Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::EventRecorder Class Reference

Observer that enables recoding of all user interaction with the render windows and storing it in an XML file. More...

#include <mitkEventRecorder.h>

Inheritance diagram for mitk::EventRecorder:
Collaboration diagram for mitk::EventRecorder:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

mitk::EventRecorder::EventRecorder ( )

Definition at line 116 of file mitkEventRecorder.cpp.

mitk::EventRecorder::~EventRecorder ( )

Definition at line 120 of file mitkEventRecorder.cpp.

Member Function Documentation

bool mitk::EventRecorder::IsActive ( )
inline

Definition at line 70 of file mitkEventRecorder.h.

void mitk::EventRecorder::Notify ( mitk::InteractionEvent interactionEvent,
bool   
)
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.

void mitk::EventRecorder::SetOutputFile ( std::string  filename)
inline

Definition at line 71 of file mitkEventRecorder.h.

References filename.

void mitk::EventRecorder::StartRecording ( )
void mitk::EventRecorder::StopRecording ( )

Definition at line 178 of file mitkEventRecorder.cpp.

References WriteEventXMLClose().


The documentation for this class was generated from the following files: