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
82 #ifndef vtkImplicitCylinderWidget_h
83 #define vtkImplicitCylinderWidget_h
84 
85 #include "vtkAbstractWidget.h"
86 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
87 #include "vtkInteractionWidgetsModule.h" // For export macro
88 #include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
89 
90 VTK_ABI_NAMESPACE_BEGIN
92 
93 class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitCylinderWidget : public vtkAbstractWidget
94 {
95 public:
100 
102 
106  void PrintSelf(ostream& os, vtkIndent indent) override;
108 
115 
120  {
121  return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);
122  }
123 
128 
129 protected:
131  ~vtkImplicitCylinderWidget() override = default;
132 
133  // Manage the state of the widget
136  {
137  Start = 0,
138  Active
139  };
140 #if !defined(VTK_LEGACY_REMOVE)
141  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
143 #endif
144 
145  // These methods handle events
154 
159  int UpdateCursorShape(int interactionState);
160 
161 private:
163  void operator=(const vtkImplicitCylinderWidget&) = delete;
164 };
165 
166 VTK_ABI_NAMESPACE_END
167 #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 void EndSelectAction(vtkAbstractWidget *)
static void MoveCylinderAction(vtkAbstractWidget *)
static vtkImplicitCylinderWidget * New()
Instantiate the object.
static void TranslationAxisUnLock(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
static void TranslateAction(vtkAbstractWidget *)
vtkImplicitCylinderRepresentation * GetCylinderRepresentation()
Return the representation as a vtkImplicitCylinderRepresentation.
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:38
#define VTK_DEPRECATED_IN_9_2_0(reason)