VTK  9.0.1
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 =========================================================================*/
91 #ifndef vtkImplicitCylinderWidget_h
92 #define vtkImplicitCylinderWidget_h
93 
94 #include "vtkAbstractWidget.h"
95 #include "vtkInteractionWidgetsModule.h" // For export macro
96 
98 
99 class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitCylinderWidget : public vtkAbstractWidget
100 {
101 public:
105  static vtkImplicitCylinderWidget* New();
106 
108 
112  void PrintSelf(ostream& os, vtkIndent indent) override;
114 
120  void SetRepresentation(vtkImplicitCylinderRepresentation* rep);
121 
126  {
127  return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);
128  }
129 
133  void CreateDefaultRepresentation() override;
134 
135 protected:
137  ~vtkImplicitCylinderWidget() override = default;
138 
139  // Manage the state of the widget
142  {
143  Start = 0,
144  Active
145  };
146 
147  // These methods handle events
148  static void SelectAction(vtkAbstractWidget*);
149  static void TranslateAction(vtkAbstractWidget*);
150  static void ScaleAction(vtkAbstractWidget*);
151  static void EndSelectAction(vtkAbstractWidget*);
152  static void MoveAction(vtkAbstractWidget*);
153  static void MoveCylinderAction(vtkAbstractWidget*);
154  static void TranslationAxisLock(vtkAbstractWidget*);
155  static void TranslationAxisUnLock(vtkAbstractWidget*);
156 
161  int UpdateCursorShape(int interactionState);
162 
163 private:
165  void operator=(const vtkImplicitCylinderWidget&) = delete;
166 };
167 
168 #endif
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:33
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...