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 "vtkInteractionWidgetsModule.h" // For export macro
101 #include "vtkAbstractWidget.h"
102 
104 class vtkInteractionCallback;
105 
107 {
108  friend class vtkInteractionCallback;
109 
110 public:
113 
115 
117  void PrintSelf(ostream& os, vtkIndent indent);
119 
124 
125  // Descritpion:
126  // Disable/Enable the widget if needed.
127  // Unobserved the camera if the widget is disabled.
128  void SetEnabled(int enabling);
129 
132  void SetLockNormalToCamera(int lock);
133 
135 
137  {return reinterpret_cast<vtkImplicitPlaneRepresentation*>(this->WidgetRep);}
139 
142 
143 protected:
146 
147 //BTX - manage the state of the widget
149  enum _WidgetState {Start=0,Active};
150 //ETX
151 
152  // These methods handle events
159 
162  int UpdateCursorShape( int interactionState );
163 
165 
166  vtkInteractionCallback *InteractionCallback;
169 
170 private:
171  vtkImplicitPlaneWidget2(const vtkImplicitPlaneWidget2&); //Not implemented
172  void operator=(const vtkImplicitPlaneWidget2&); //Not implemented
173 };
174 
175 #endif
vtkImplicitPlaneWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
vtkImplicitPlaneWidget2::~vtkImplicitPlaneWidget2
~vtkImplicitPlaneWidget2()
vtkImplicitPlaneWidget2::WidgetState
int WidgetState
Definition: vtkImplicitPlaneWidget2.h:148
vtkImplicitPlaneWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImplicitPlaneWidget2::_WidgetState
_WidgetState
Definition: vtkImplicitPlaneWidget2.h:149
vtkImplicitPlaneWidget2::SetEnabled
void SetEnabled(int enabling)
vtkAbstractWidget.h
vtkImplicitPlaneWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:159
vtkInteractionWidgetsModule.h
vtkImplicitPlaneWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkImplicitPlaneRepresentation
a class defining the representation for a vtkImplicitPlaneWidget2
Definition: vtkImplicitPlaneRepresentation.h:66
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkImplicitPlaneWidget2::InvokeInteractionCallback
void InvokeInteractionCallback()
vtkImplicitPlaneWidget2
3D widget for manipulating an infinite plane
Definition: vtkImplicitPlaneWidget2.h:107
vtkImplicitPlaneWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::GetImplicitPlaneRepresentation
vtkImplicitPlaneRepresentation * GetImplicitPlaneRepresentation()
Definition: vtkImplicitPlaneWidget2.h:136
vtkImplicitPlaneWidget2::MovePlaneAction
static void MovePlaneAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::SetRepresentation
void SetRepresentation(vtkImplicitPlaneRepresentation *rep)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImplicitPlaneWidget2::InteractionCallback
vtkInteractionCallback * InteractionCallback
Definition: vtkImplicitPlaneWidget2.h:166
vtkImplicitPlaneWidget2::vtkImplicitPlaneWidget2
vtkImplicitPlaneWidget2()
vtkImplicitPlaneWidget2::New
static vtkImplicitPlaneWidget2 * New()
vtkImplicitPlaneWidget2::UpdateCursorShape
int UpdateCursorShape(int interactionState)
vtkImplicitPlaneWidget2::SetLockNormalToCamera
void SetLockNormalToCamera(int lock)
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkImplicitPlaneWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)