VTK  9.2.6
vtkImplicitCylinderWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitCylinderWidget.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
94 #ifndef vtkImplicitCylinderWidget_h
95 #define vtkImplicitCylinderWidget_h
96 
97 #include "vtkAbstractWidget.h"
98 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
99 #include "vtkInteractionWidgetsModule.h" // For export macro
100 
102 
103 class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitCylinderWidget : public vtkAbstractWidget
104 {
105 public:
109  static vtkImplicitCylinderWidget* New();
110 
112 
116  void PrintSelf(ostream& os, vtkIndent indent) override;
118 
124  void SetRepresentation(vtkImplicitCylinderRepresentation* rep);
125 
130  {
131  return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);
132  }
133 
137  void CreateDefaultRepresentation() override;
138 
139 protected:
141  ~vtkImplicitCylinderWidget() override = default;
142 
143  // Manage the state of the widget
146  {
147  Start = 0,
148  Active
149  };
150 #if !defined(VTK_LEGACY_REMOVE)
151  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
153 #endif
154 
155  // These methods handle events
156  static void SelectAction(vtkAbstractWidget*);
157  static void TranslateAction(vtkAbstractWidget*);
158  static void ScaleAction(vtkAbstractWidget*);
159  static void EndSelectAction(vtkAbstractWidget*);
160  static void MoveAction(vtkAbstractWidget*);
161  static void MoveCylinderAction(vtkAbstractWidget*);
162  static void TranslationAxisLock(vtkAbstractWidget*);
163  static void TranslationAxisUnLock(vtkAbstractWidget*);
164 
169  int UpdateCursorShape(int interactionState);
170 
171 private:
173  void operator=(const vtkImplicitCylinderWidget&) = delete;
174 };
175 
176 #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:39
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...