00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00025 #ifndef __vtkWidgetEvent_h
00026 #define __vtkWidgetEvent_h
00027
00028 #include "vtkObject.h"
00029
00030 class VTK_WIDGETS_EXPORT vtkWidgetEvent : public vtkObject
00031 {
00032 public:
00034 static vtkWidgetEvent *New() ;
00035
00037
00038 vtkTypeMacro(vtkWidgetEvent,vtkObject);
00039 void PrintSelf(ostream& os, vtkIndent indent);
00041
00042
00044
00045 enum WidgetEventIds {
00046 NoEvent = 0,
00047 Select,
00048 EndSelect,
00049 Delete,
00050 Translate,
00051 EndTranslate,
00052 Scale,
00053 EndScale,
00054 Resize,
00055 EndResize,
00056 Rotate,
00057 EndRotate,
00058 Move,
00059 SizeHandles,
00060 AddPoint,
00061 AddFinalPoint,
00062 Completed,
00063 TimedOut,
00064 ModifyEvent,
00065 Reset
00066 };
00067
00069
00071
00073 static const char *GetStringFromEventId(unsigned long event);
00074 static unsigned long GetEventIdFromString(const char *event);
00076
00077 protected:
00078 vtkWidgetEvent() {}
00079 virtual ~vtkWidgetEvent() {}
00080
00081 private:
00082 vtkWidgetEvent(const vtkWidgetEvent&);
00083 void operator=(const vtkWidgetEvent&);
00084
00085 };
00086
00087 #endif