21 #ifndef __qMRMLEventLogger_h 22 #define __qMRMLEventLogger_h 30 #include "qMRMLWidgetsExport.h" 32 class qMRMLEventLoggerPrivate;
50 bool listeningNodeAddedEvent();
51 bool listeningNodeRemovedEvent();
52 bool listeningNewSceneEvent();
53 bool listeningSceneClosedEvent();
54 bool listeningSceneAboutToBeClosedEvent();
55 bool listeningMetadataAddedEvent();
56 bool listeningImportProgressFeedbackEvent();
57 bool listeningSaveProgressFeedbackEvent();
58 bool listeningSceneAboutToBeImportedEvent();
59 bool listeningSceneImportedEvent();
60 bool listeningSceneRestoredEvent();
65 void listenNodeAddedEvent(
bool listen);
66 void listenNodeRemovedEvent(
bool listen);
67 void listenNewSceneEvent(
bool listen);
68 void listenSceneClosedEvent(
bool listen);
69 void listenSceneAboutToBeClosedEvent(
bool listen);
70 void listenMetadataAddedEvent(
bool listen);
71 void listenImportProgressFeedbackEvent(
bool listen);
72 void listenSaveProgressFeedbackEvent(
bool listen);
73 void listenSceneAboutToBeImportedEvent(
bool listen);
74 void listenSceneImportedEvent(
bool listen);
75 void listenSceneRestoredEvent(
bool listen);
77 virtual void onNodeAddedEvent(vtkObject* caller, vtkObject* call_data);
78 virtual void onNodeRemovedEvent(vtkObject* caller, vtkObject* call_data);
79 virtual void onNewSceneEvent();
80 virtual void onSceneClosedEvent();
81 virtual void onSceneAboutToBeClosedEvent();
82 virtual void onMetadataAddedEvent();
83 virtual void onImportProgressFeedbackEvent();
84 virtual void onSaveProgressFeedbackEvent();
85 virtual void onSceneAboutToBeImportedEvent();
86 virtual void onSceneImportedEvent();
87 virtual void onSceneRestoredEvent();
90 void setConsoleOutputEnabled(
bool enabled);
95 void signalNodeAddedEvent(vtkObject* caller, vtkObject* call_data);
96 void signalNodeRemovedEvent(vtkObject* caller, vtkObject* call_data);
97 void signalNewSceneEvent();
98 void signalSceneClosedEvent();
99 void signalSceneAboutToBeClosedEvent();
100 void signalMetadataAddedEvent();
101 void signalImportProgressFeedbackEvent();
102 void signalSaveProgressFeedbackEvent();
103 void signalSceneAboutToBeImportedEvent();
104 void signalSceneImportedEvent();
105 void signalSceneRestoredEvent();
108 QScopedPointer<qMRMLEventLoggerPrivate>
d_ptr;
A set of MRML Nodes that supports serialization and undo/redo.
QScopedPointer< qMRMLEventLoggerPrivate > d_ptr