VTK  9.4.20251007
vtkImplicitPlaneWidget2.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
88
89#ifndef vtkImplicitPlaneWidget2_h
90#define vtkImplicitPlaneWidget2_h
91
92#include "vtkAbstractWidget.h"
93#include "vtkInteractionWidgetsModule.h" // For export macro
94#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
95
96VTK_ABI_NAMESPACE_BEGIN
98class vtkImplicitPlaneWidget2InteractionCallback;
99
100class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkImplicitPlaneWidget2
101 : public vtkAbstractWidget
102{
104
105public:
110
112
116 void PrintSelf(ostream& os, vtkIndent indent) override;
118
125
126 // Description:
127 // Disable/Enable the widget if needed.
128 // Unobserved the camera if the widget is disabled.
129 void SetEnabled(int enabling) override;
130
135 void SetLockNormalToCamera(int lock);
136
144
149
150protected:
153
154 // Manage the state of the widget
157 {
158 Start = 0,
160 };
161
162 // These methods handle events
174
179 int UpdateCursorShape(int interactionState);
180
182
188
189private:
191 void operator=(const vtkImplicitPlaneWidget2&) = delete;
192};
193
194VTK_ABI_NAMESPACE_END
195#endif
vtkWidgetRepresentation * WidgetRep
a class defining the representation for a vtkImplicitPlaneWidget2
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
static void TranslationAxisLock(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Methods for activating this widget.
static void MoveAction3D(vtkAbstractWidget *)
friend class vtkImplicitPlaneWidget2InteractionCallback
vtkImplicitPlaneWidget2InteractionCallback * InteractionCallback
Handle the interaction callback that may come from the representation.
static void TranslationAxisUnLock(vtkAbstractWidget *)
static void TranslateAction(vtkAbstractWidget *)
void SetLockNormalToCamera(int lock)
Observe/Unobserve the camera if the widget is locked/unlocked to update the vtkImplicitePlaneRepresen...
static void MoveAction(vtkAbstractWidget *)
static void EndSelectAction3D(vtkAbstractWidget *)
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void SelectAction3D(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
vtkImplicitPlaneRepresentation * GetImplicitPlaneRepresentation()
Return the representation as a vtkImplicitPlaneRepresentation.
static void SelectAction(vtkAbstractWidget *)
static void MovePlaneAction(vtkAbstractWidget *)
static void EndSelectAction(vtkAbstractWidget *)
void SetRepresentation(vtkImplicitPlaneRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
~vtkImplicitPlaneWidget2() override
void InvokeInteractionCallback()
Handle the interaction callback that may come from the representation.
static vtkImplicitPlaneWidget2 * New()
Instantiate the object.
static void ScaleAction(vtkAbstractWidget *)
a simple class to control print indentation
Definition vtkIndent.h:29
#define VTK_MARSHALAUTO