Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 () 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)
 
- 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.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.

Constructor & Destructor Documentation

◆ EventRecorder()

mitk::EventRecorder::EventRecorder ( )

Definition at line 112 of file mitkEventRecorder.cpp.

◆ ~EventRecorder()

mitk::EventRecorder::~EventRecorder ( )
override

Definition at line 116 of file mitkEventRecorder.cpp.

Member Function Documentation

◆ IsActive()

bool mitk::EventRecorder::IsActive ( )
inline

Definition at line 66 of file mitkEventRecorder.h.

◆ Notify()

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 125 of file mitkEventRecorder.cpp.

References mitk::EventFactory::EventToXML().

◆ SetEventIgnoreList()

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.

◆ SetOutputFile()

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

Definition at line 67 of file mitkEventRecorder.h.

◆ StartRecording()

void mitk::EventRecorder::StartRecording ( )

◆ StopRecording()

void mitk::EventRecorder::StopRecording ( )

Definition at line 174 of file mitkEventRecorder.cpp.

References WriteEventXMLClose().


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