00001
00002
00003
00004
00005
00016 #ifndef __SIGNCOMMAND_H
00017 #define __SIGNCOMMAND_H
00018
00019 #include <vtkCommand.h>
00020 #include <SignDLL.h>
00021 #include <SignCommand.h>
00022
00023 class vtkObjectFactory;
00024
00025 class SIGN_EXPORT SignCommand : public vtkCommand
00026 {
00027
00028 public:
00029
00030 enum SignEventIds
00031 {
00032 NoEvent = vtkCommand::UserEvent,
00034 ContextUpEvent,
00036 Zoom2DViewerEvent,
00038 Annotation2DEvent,
00040 Annotation3DEvent,
00042 SaveMRMLEvent,
00044 EditTransferFunctionEvent,
00046 SaveStateEvent,
00048 LoadVolumeEvent,
00050 UnloadVolumeEvent,
00052 RecoverStateEvent,
00054 DeleteStateEvent,
00056 DICOMReaderProgressEvent,
00058 MRMLVolumeProgressEvent,
00060 TrackerButtonPressEvent,
00062 TrackerButtonReleaseEvent,
00064 TrackerEvent,
00066 TrackerZeroConfidenceEvent,
00068 VolumePropertyChangedEvent,
00070 UpdateViewerEvent,
00072 Slice2DViewerEvent,
00074 ElementCompleteEvent,
00076 ElementDeCompleteEvent,
00078 ElementActivated,
00080 ElementDeActivated,
00082 ECGTriggerEvent,
00084 MRMLVolumeAddedEvent,
00086 MRMLVolumeRemovedEvent,
00088 MRMLModelAddedEvent,
00090 MRMLModelRemovedEvent,
00092 MRMLVolumeModifiedEvent,
00094 MRMLModelModifiedEvent,
00096 MRMLModifiedEvent,
00098 EventFromThreadEvent,
00100 ValidVolumeSelection,
00102 InvalidVolumeSelection
00103 };
00104
00111 static unsigned long RegisterCallback(vtkObject* observedObject, unsigned long event, void(*function)(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata), void* clientData, float priority=0.0);
00112
00113
00114 protected:
00115 SignCommand() {};
00116 ~SignCommand() {};
00117
00118
00119 SignCommand(const SignCommand& c) : vtkCommand(c) {}
00120 void operator=(const SignCommand&) {}
00121
00122
00123 };
00124
00125 #endif