|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Observer that enables recording of all user interaction with the render windows and storing it in an XML file. More...
#include <mitkEventRecorder.h>


Public Member Functions | |
| EventRecorder () | |
| Constructor. More... | |
| ~EventRecorder () override | |
| Destructor. Closes any open file stream. More... | |
| void | Notify (InteractionEvent *interactionEvent, bool) override |
| Callback that receives new interaction events. More... | |
| void | SetEventIgnoreList (std::vector< std::string > list) |
| Set a list of event names to ignore during recording. More... | |
| void | StartRecording () |
| Start recording events to the output file. More... | |
| void | StopRecording () |
| Stop recording and close the output file. More... | |
| bool | IsActive () |
| Check whether the recorder is currently active. More... | |
| void | SetOutputFile (std::string filename) |
| Set the output file path for recording. More... | |
Public Member Functions inherited from mitk::InteractionEventObserver | |
| InteractionEventObserver () | |
| virtual | ~InteractionEventObserver () |
| void | Disable () |
| Disable this observer so it no longer receives notifications. More... | |
| void | Enable () |
| Enable this observer so it receives notifications. More... | |
| bool | IsEnabled () const |
| Check whether this observer is currently enabled. More... | |
Observer that enables recording of all user interaction with the render windows and storing it in an XML file.
XML file will look like:
Definition at line 52 of file mitkEventRecorder.h.
| mitk::EventRecorder::EventRecorder | ( | ) |
Constructor.
|
override |
Destructor. Closes any open file stream.
|
inline |
Check whether the recorder is currently active.
true if recording is in progress, false otherwise. Definition at line 97 of file mitkEventRecorder.h.
|
overridevirtual |
Callback that receives new interaction events.
This function is called by the event dispatching system to notify the recorder about new events. The event is serialized to XML and written to the output file.
| interactionEvent | The interaction event to record. |
Implements mitk::InteractionEventObserver.
| void mitk::EventRecorder::SetEventIgnoreList | ( | std::vector< std::string > | list | ) |
Set a list of event names to ignore during recording.
Events whose class name matches any entry in the list will not be recorded.
| list | Vector of event class names to ignore. |
|
inline |
Set the output file path for recording.
| filename | Path to the XML output file. |
Definition at line 104 of file mitkEventRecorder.h.
| void mitk::EventRecorder::StartRecording | ( | ) |
Start recording events to the output file.
| void mitk::EventRecorder::StopRecording | ( | ) |
Stop recording and close the output file.