VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWidgetEvent.h,v $ 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 "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 //BTX 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 //ETX 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&); //Not implemented 00082 void operator=(const vtkWidgetEvent&); //Not implemented 00083 00084 }; 00085 00086 #endif