VTK  9.5.2
vtkDisplaySizedImplicitPlaneWidget.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
86
87#ifndef vtkDisplaySizedImplicitPlaneWidget_h
88#define vtkDisplaySizedImplicitPlaneWidget_h
89
90#include "vtkAbstractWidget.h"
91#include "vtkInteractionWidgetsModule.h" // For export macro
92#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
93
94VTK_ABI_NAMESPACE_BEGIN
96class vtkDisplaySizedImplicitPlaneInteractionCallback;
97
98class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkDisplaySizedImplicitPlaneWidget
99 : public vtkAbstractWidget
100{
102
103public:
108
110
114 void PrintSelf(ostream& os, vtkIndent indent) override;
116
123
124 // Description:
125 // Disable/Enable the widget if needed.
126 // Unobserved the camera if the widget is disabled.
127 void SetEnabled(int enabling) override;
128
133 void SetLockNormalToCamera(int lock);
134
142
147
148protected:
151
152 // Manage the state of the widget
155 {
156 Start = 0,
158 };
159
160 // These methods handle events
174
179 int UpdateCursorShape(int interactionState);
180
182
188
189private:
191 void operator=(const vtkDisplaySizedImplicitPlaneWidget&) = delete;
192};
193
194VTK_ABI_NAMESPACE_END
195#endif
vtkWidgetRepresentation * WidgetRep
a class defining the representation for a vtkDisplaySizedImplicitPlaneWidget
void SetRepresentation(vtkDisplaySizedImplicitPlaneRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static vtkDisplaySizedImplicitPlaneWidget * New()
Instantiate the object.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
void InvokeInteractionCallback()
Handle the interaction callback that may come from the representation.
static void EndSelectAction(vtkAbstractWidget *)
static void MoveAction(vtkAbstractWidget *)
static void ScaleAction(vtkAbstractWidget *)
void SetLockNormalToCamera(int lock)
Observe/Unobserve the camera if the widget is locked/unlocked to update the vtkImplicitePlaneRepresen...
static void SelectAction3D(vtkAbstractWidget *)
vtkDisplaySizedImplicitPlaneInteractionCallback * InteractionCallback
Handle the interaction callback that may come from the representation.
void SetEnabled(int enabling) override
Methods for activating this widget.
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
vtkDisplaySizedImplicitPlaneRepresentation * GetDisplaySizedImplicitPlaneRepresentation()
Return the representation as a vtkDisplaySizedImplicitPlaneRepresentation.
static void MoveAction3D(vtkAbstractWidget *)
static void SelectAction(vtkAbstractWidget *)
static void MovePlaneAction(vtkAbstractWidget *)
static void TranslationAxisLock(vtkAbstractWidget *)
static void PickNormalAction(vtkAbstractWidget *)
static void TranslateAction(vtkAbstractWidget *)
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void TranslationAxisUnLock(vtkAbstractWidget *)
static void EndSelectAction3D(vtkAbstractWidget *)
static void PickOriginAction(vtkAbstractWidget *)
a simple class to control print indentation
Definition vtkIndent.h:29
#define VTK_MARSHALAUTO