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 =========================================================================*/
95 #ifndef vtkImplicitPlaneWidget2_h
96 #define vtkImplicitPlaneWidget2_h
97 
98 #include "vtkInteractionWidgetsModule.h" // For export macro
99 #include "vtkAbstractWidget.h"
100 
102 class vtkInteractionCallback;
103 
104 class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitPlaneWidget2 : public vtkAbstractWidget
105 {
106  friend class vtkInteractionCallback;
107 
108 public:
113 
115 
119  void PrintSelf(ostream& os, vtkIndent indent);
121 
128 
129  // Descritpion:
130  // Disable/Enable the widget if needed.
131  // Unobserved the camera if the widget is disabled.
132  void SetEnabled(int enabling);
133 
138  void SetLockNormalToCamera(int lock);
139 
144  {return reinterpret_cast<vtkImplicitPlaneRepresentation*>(this->WidgetRep);}
145 
150 
151 protected:
154 
155  // Manage the state of the widget
157  enum _WidgetState {Start=0,Active};
158 
159  // These methods handle events
166 
171  int UpdateCursorShape( int interactionState );
172 
174 
177  vtkInteractionCallback *InteractionCallback;
180 
181 private:
182  vtkImplicitPlaneWidget2(const vtkImplicitPlaneWidget2&) VTK_DELETE_FUNCTION;
183  void operator=(const vtkImplicitPlaneWidget2&) VTK_DELETE_FUNCTION;
184 };
185 
186 #endif
vtkImplicitPlaneWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
vtkImplicitPlaneWidget2::~vtkImplicitPlaneWidget2
~vtkImplicitPlaneWidget2()
vtkImplicitPlaneWidget2::WidgetState
int WidgetState
Definition: vtkImplicitPlaneWidget2.h:156
vtkImplicitPlaneWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImplicitPlaneWidget2::_WidgetState
_WidgetState
Definition: vtkImplicitPlaneWidget2.h:157
vtkImplicitPlaneWidget2::SetEnabled
void SetEnabled(int enabling)
Methods for activating this widget.
vtkAbstractWidget.h
vtkImplicitPlaneWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:174
vtkImplicitPlaneWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkImplicitPlaneRepresentation
a class defining the representation for a vtkImplicitPlaneWidget2
Definition: vtkImplicitPlaneRepresentation.h:67
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:64
vtkImplicitPlaneWidget2::InvokeInteractionCallback
void InvokeInteractionCallback()
vtkImplicitPlaneWidget2
3D widget for manipulating an infinite plane
Definition: vtkImplicitPlaneWidget2.h:105
vtkImplicitPlaneWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::GetImplicitPlaneRepresentation
vtkImplicitPlaneRepresentation * GetImplicitPlaneRepresentation()
Return the representation as a vtkImplicitPlaneRepresentation.
Definition: vtkImplicitPlaneWidget2.h:143
vtkImplicitPlaneWidget2::MovePlaneAction
static void MovePlaneAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::SetRepresentation
void SetRepresentation(vtkImplicitPlaneRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImplicitPlaneWidget2::InteractionCallback
vtkInteractionCallback * InteractionCallback
Handle the interaction callback that may come from the representation.
Definition: vtkImplicitPlaneWidget2.h:177
vtkImplicitPlaneWidget2::vtkImplicitPlaneWidget2
vtkImplicitPlaneWidget2()
vtkImplicitPlaneWidget2::New
static vtkImplicitPlaneWidget2 * New()
Instantiate the object.
vtkImplicitPlaneWidget2::UpdateCursorShape
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
vtkImplicitPlaneWidget2::SetLockNormalToCamera
void SetLockNormalToCamera(int lock)
Observe/Unobserve the camera if the widget is locked/unlocked to update the vtkImplicitePlaneRepresen...
vtkImplicitPlaneWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)