VTK  9.3.1
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 
114  void SetRepresentation(vtkImplicitCylinderRepresentation* rep);
115 
120  {
121  return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);
122  }
123 
127  void CreateDefaultRepresentation() override;
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
146  static void SelectAction(vtkAbstractWidget*);
147  static void TranslateAction(vtkAbstractWidget*);
148  static void ScaleAction(vtkAbstractWidget*);
149  static void EndSelectAction(vtkAbstractWidget*);
150  static void MoveAction(vtkAbstractWidget*);
151  static void MoveCylinderAction(vtkAbstractWidget*);
152  static void TranslationAxisLock(vtkAbstractWidget*);
153  static void TranslationAxisUnLock(vtkAbstractWidget*);
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 VTK_DEPRECATED_IN_9_2_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
defining the representation for a vtkImplicitCylinderWidget
3D widget for manipulating an infinite cylinder
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:28
define the API for widget / widget representation
vtkImplicitCylinderRepresentation * GetCylinderRepresentation()
Return the representation as a vtkImplicitCylinderRepresentation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...