VTK  9.1.0
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 =========================================================================*/
117 #ifndef vtkImplicitPlaneWidget2_h
118 #define vtkImplicitPlaneWidget2_h
119 
120 #include "vtkAbstractWidget.h"
121 #include "vtkInteractionWidgetsModule.h" // For export macro
122 
124 class vtkInteractionCallback;
125 
126 class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitPlaneWidget2 : public vtkAbstractWidget
127 {
128  friend class vtkInteractionCallback;
129 
130 public:
135 
137 
141  void PrintSelf(ostream& os, vtkIndent indent) override;
143 
150 
151  // Description:
152  // Disable/Enable the widget if needed.
153  // Unobserved the camera if the widget is disabled.
154  void SetEnabled(int enabling) override;
155 
160  void SetLockNormalToCamera(int lock);
161 
166  {
167  return reinterpret_cast<vtkImplicitPlaneRepresentation*>(this->WidgetRep);
168  }
169 
174 
175 protected:
178 
179  // Manage the state of the widget
182  {
183  Start = 0,
184  Active
185  };
186 
187  // These methods handle events
199 
204  int UpdateCursorShape(int interactionState);
205 
207 
210  vtkInteractionCallback* InteractionCallback;
213 
214 private:
216  void operator=(const vtkImplicitPlaneWidget2&) = delete;
217 };
218 
219 #endif
vtkImplicitPlaneWidget2::WidgetState
int WidgetState
Definition: vtkImplicitPlaneWidget2.h:180
vtkImplicitPlaneWidget2::TranslationAxisLock
static void TranslationAxisLock(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::TranslationAxisUnLock
static void TranslationAxisUnLock(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::MoveAction3D
static void MoveAction3D(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::_WidgetState
_WidgetState
Definition: vtkImplicitPlaneWidget2.h:182
vtkAbstractWidget.h
vtkImplicitPlaneWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:175
vtkImplicitPlaneWidget2::EndSelectAction3D
static void EndSelectAction3D(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkImplicitPlaneWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkImplicitPlaneRepresentation
a class defining the representation for a vtkImplicitPlaneWidget2
Definition: vtkImplicitPlaneRepresentation.h:84
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkImplicitPlaneWidget2::InvokeInteractionCallback
void InvokeInteractionCallback()
Handle the interaction callback that may come from the representation.
vtkImplicitPlaneWidget2
3D widget for manipulating an infinite plane
Definition: vtkImplicitPlaneWidget2.h:127
vtkImplicitPlaneWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::GetImplicitPlaneRepresentation
vtkImplicitPlaneRepresentation * GetImplicitPlaneRepresentation()
Return the representation as a vtkImplicitPlaneRepresentation.
Definition: vtkImplicitPlaneWidget2.h:165
vtkImplicitPlaneWidget2::~vtkImplicitPlaneWidget2
~vtkImplicitPlaneWidget2() override
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.
vtkImplicitPlaneWidget2::SetEnabled
void SetEnabled(int enabling) override
Methods for activating this widget.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkImplicitPlaneWidget2::InteractionCallback
vtkInteractionCallback * InteractionCallback
Handle the interaction callback that may come from the representation.
Definition: vtkImplicitPlaneWidget2.h:210
vtkImplicitPlaneWidget2::vtkImplicitPlaneWidget2
vtkImplicitPlaneWidget2()
vtkImplicitPlaneWidget2::New
static vtkImplicitPlaneWidget2 * New()
Instantiate the object.
vtkImplicitPlaneWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
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::SelectAction3D
static void SelectAction3D(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkImplicitPlaneWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)