VTK
vtkRectilinearWipeWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectilinearWipeWidget.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
82 #ifndef vtkRectilinearWipeWidget_h
83 #define vtkRectilinearWipeWidget_h
84 
85 #include "vtkInteractionWidgetsModule.h" // For export macro
86 #include "vtkAbstractWidget.h"
87 
89 
90 
92 {
93 public:
95  static vtkRectilinearWipeWidget *New();
96 
98 
100  void PrintSelf(ostream& os, vtkIndent indent);
102 
104 
108  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
110 
112 
114  {return reinterpret_cast<vtkRectilinearWipeRepresentation*>(this->WidgetRep);}
116 
118  virtual void CreateDefaultRepresentation();
119 
120 protected:
123 
124  // These methods handle events
125  static void SelectAction(vtkAbstractWidget*);
126  static void MoveAction(vtkAbstractWidget*);
127  static void EndSelectAction(vtkAbstractWidget*);
128 
129  // helper methods for cursor management
130  void SetCursor(int state);
131 
132 //BTX - manage the state of the widget
135  {
136  Start=0,
137  Selected
138  };
139 //ETX
140 
141 private:
142  vtkRectilinearWipeWidget(const vtkRectilinearWipeWidget&); //Not implemented
143  void operator=(const vtkRectilinearWipeWidget&); //Not implemented
144 };
145 
146 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetCursor(int vtkNotUsed(state))
virtual void CreateDefaultRepresentation()=0
vtkWidgetRepresentation * WidgetRep
#define VTKINTERACTIONWIDGETS_EXPORT
vtkRectilinearWipeRepresentation * GetRectilinearWipeRepresentation()
interactively control an instance of vtkImageRectilinearWipe filter
a simple class to control print indentation
Definition: vtkIndent.h:38
define the API for widget / widget representation
static vtkObject * New()
represent a vtkRectilinearWipeWidget
void SetRepresentation(vtkRectilinearWipeRepresentation *r)