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     Up,
00067     Down,
00068     Left,
00069     Right
00070   };
00071 //ETX
00073 
00075 
00077   static const char *GetStringFromEventId(unsigned long event);
00078   static unsigned long GetEventIdFromString(const char *event);
00080 
00081 protected:
00082   vtkWidgetEvent() {}
00083   virtual ~vtkWidgetEvent() {}
00084   
00085 private:
00086   vtkWidgetEvent(const vtkWidgetEvent&);  //Not implemented
00087   void operator=(const vtkWidgetEvent&);  //Not implemented
00088 
00089 };
00090 
00091 #endif