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 vtkTypeRevisionMacro(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 };
00067
00068
00070
00072 static const char *GetStringFromEventId(unsigned long event);
00073 static unsigned long GetEventIdFromString(const char *event);
00075
00076 protected:
00077 vtkWidgetEvent() {}
00078 virtual ~vtkWidgetEvent() {}
00079
00080 private:
00081 vtkWidgetEvent(const vtkWidgetEvent&);
00082 void operator=(const vtkWidgetEvent&);
00083
00084 };
00085
00086 #endif