VTK  9.3.20240329
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 "vtkInteractionWidgetsModule.h" // For export macro
87 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
88 
89 VTK_ABI_NAMESPACE_BEGIN
91 
92 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkImplicitCylinderWidget
93  : 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 
141  // These methods handle events
150 
155  int UpdateCursorShape(int interactionState);
156 
157 private:
159  void operator=(const vtkImplicitCylinderWidget&) = delete;
160 };
161 
162 VTK_ABI_NAMESPACE_END
163 #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:108
#define VTK_MARSHALAUTO