VTK
dox/Widgets/vtkWidgetEvent.h
Go to the documentation of this file.
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 "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 //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     Reset
00066   };
00067 //ETX
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&);  //Not implemented
00083   void operator=(const vtkWidgetEvent&);  //Not implemented
00084 
00085 };
00086 
00087 #endif