VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkWidgetEvent.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00025 #ifndef __vtkWidgetEvent_h 00026 #define __vtkWidgetEvent_h 00027 00028 #include "vtkInteractionWidgetsModule.h" // For export macro 00029 #include "vtkObject.h" 00030 00031 class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject 00032 { 00033 public: 00035 static vtkWidgetEvent *New() ; 00036 00038 00039 vtkTypeMacro(vtkWidgetEvent,vtkObject); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00042 00043 //BTX 00045 00046 enum WidgetEventIds { 00047 NoEvent = 0, 00048 Select, 00049 EndSelect, 00050 Delete, 00051 Translate, 00052 EndTranslate, 00053 Scale, 00054 EndScale, 00055 Resize, 00056 EndResize, 00057 Rotate, 00058 EndRotate, 00059 Move, 00060 SizeHandles, 00061 AddPoint, 00062 AddFinalPoint, 00063 Completed, 00064 TimedOut, 00065 ModifyEvent, 00066 Reset, 00067 Up, 00068 Down, 00069 Left, 00070 Right 00071 }; 00072 //ETX 00074 00076 00078 static const char *GetStringFromEventId(unsigned long event); 00079 static unsigned long GetEventIdFromString(const char *event); 00081 00082 protected: 00083 vtkWidgetEvent() {} 00084 virtual ~vtkWidgetEvent() {} 00085 00086 private: 00087 vtkWidgetEvent(const vtkWidgetEvent&); //Not implemented 00088 void operator=(const vtkWidgetEvent&); //Not implemented 00089 00090 }; 00091 00092 #endif