VTK
vtkImplicitPlaneWidget2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitPlaneWidget2.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 =========================================================================*/
97 #ifndef __vtkImplicitPlaneWidget2_h
98 #define __vtkImplicitPlaneWidget2_h
99 
100 #include "vtkAbstractWidget.h"
101 
103 
104 
106 {
107 public:
109  static vtkImplicitPlaneWidget2 *New();
110 
112 
114  void PrintSelf(ostream& os, vtkIndent indent);
116 
118 
121  void SetRepresentation(vtkImplicitPlaneRepresentation *r)
122  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
124 
126 
127  vtkImplicitPlaneRepresentation *GetImplicitPlaneRepresentation()
128  {return reinterpret_cast<vtkImplicitPlaneRepresentation*>(this->WidgetRep);}
130 
133 
134 protected:
137 
138 //BTX - manage the state of the widget
140  enum _WidgetState {Start=0,Active};
141 //ETX
142 
143  // These methods handle events
144  static void SelectAction(vtkAbstractWidget*);
145  static void TranslateAction(vtkAbstractWidget*);
146  static void ScaleAction(vtkAbstractWidget*);
147  static void EndSelectAction(vtkAbstractWidget*);
148  static void MoveAction(vtkAbstractWidget*);
149 
152  int UpdateCursorShape( int interactionState );
153 
154 private:
155  vtkImplicitPlaneWidget2(const vtkImplicitPlaneWidget2&); //Not implemented
156  void operator=(const vtkImplicitPlaneWidget2&); //Not implemented
157 };
158 
159 #endif