• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Widgets/vtkRectilinearWipeWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRectilinearWipeWidget.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 =========================================================================*/
00082 #ifndef __vtkRectilinearWipeWidget_h
00083 #define __vtkRectilinearWipeWidget_h
00084 
00085 #include "vtkAbstractWidget.h"
00086 
00087 class vtkRectilinearWipeRepresentation;
00088 
00089 
00090 class VTK_WIDGETS_EXPORT vtkRectilinearWipeWidget : public vtkAbstractWidget
00091 {
00092 public:
00094   static vtkRectilinearWipeWidget *New();
00095 
00097 
00098   vtkTypeRevisionMacro(vtkRectilinearWipeWidget,vtkAbstractWidget);
00099   void PrintSelf(ostream& os, vtkIndent indent);
00101 
00103 
00106   void SetRepresentation(vtkRectilinearWipeRepresentation *r)
00107     {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
00109   
00111   virtual void CreateDefaultRepresentation();
00112 
00113 protected:
00114   vtkRectilinearWipeWidget();
00115   ~vtkRectilinearWipeWidget();
00116   
00117   // These methods handle events
00118   static void SelectAction(vtkAbstractWidget*);
00119   static void MoveAction(vtkAbstractWidget*);
00120   static void EndSelectAction(vtkAbstractWidget*);
00121 
00122   // helper methods for cursor management
00123   void SetCursor(int state);
00124 
00125 //BTX - manage the state of the widget
00126   int WidgetState;
00127   enum _WidgetState
00128   {
00129     Start=0,
00130     Selected
00131   };
00132 //ETX
00133 
00134 private:
00135   vtkRectilinearWipeWidget(const vtkRectilinearWipeWidget&);  //Not implemented
00136   void operator=(const vtkRectilinearWipeWidget&);  //Not implemented
00137 };
00138 
00139 #endif

Generated by  doxygen 1.7.1