VTK  9.3.0
vtkImplicitCylinderWidget.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
79#ifndef vtkImplicitCylinderWidget_h
80#define vtkImplicitCylinderWidget_h
81
82#include "vtkAbstractWidget.h"
83#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
84#include "vtkInteractionWidgetsModule.h" // For export macro
85#include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
86
87VTK_ABI_NAMESPACE_BEGIN
89
90class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitCylinderWidget : public vtkAbstractWidget
91{
92public:
97
99
103 void PrintSelf(ostream& os, vtkIndent indent) override;
105
112
117 {
118 return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);
119 }
120
125
126protected:
128 ~vtkImplicitCylinderWidget() override = default;
129
130 // Manage the state of the widget
133 {
134 Start = 0,
135 Active
136 };
137#if !defined(VTK_LEGACY_REMOVE)
138 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
140#endif
141
142 // These methods handle events
151
156 int UpdateCursorShape(int interactionState);
157
158private:
160 void operator=(const vtkImplicitCylinderWidget&) = delete;
161};
162
163VTK_ABI_NAMESPACE_END
164#endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
defining the representation for a vtkImplicitCylinderWidget
3D widget for manipulating an infinite cylinder
static void TranslationAxisLock(vtkAbstractWidget *)
static void ScaleAction(vtkAbstractWidget *)
static vtkImplicitCylinderWidget * New()
Instantiate the object.
static void EndSelectAction(vtkAbstractWidget *)
static void MoveCylinderAction(vtkAbstractWidget *)
vtkImplicitCylinderRepresentation * GetCylinderRepresentation()
Return the representation as a vtkImplicitCylinderRepresentation.
static void TranslationAxisUnLock(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
static void TranslateAction(vtkAbstractWidget *)
void SetRepresentation(vtkImplicitCylinderRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static void SelectAction(vtkAbstractWidget *)
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void MoveAction(vtkAbstractWidget *)
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
~vtkImplicitCylinderWidget() override=default
a simple class to control print indentation
Definition vtkIndent.h:29
#define VTK_DEPRECATED_IN_9_2_0(reason)