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=========================================================================*/
91#ifndef vtkImplicitCylinderWidget_h
92#define vtkImplicitCylinderWidget_h
93
94#include "vtkAbstractWidget.h"
95#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
96#include "vtkInteractionWidgetsModule.h" // For export macro
97
99
100class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitCylinderWidget : public vtkAbstractWidget
101{
102public:
107
109
113 void PrintSelf(ostream& os, vtkIndent indent) override;
115
122
127 {
128 return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);
129 }
130
135
136protected:
138 ~vtkImplicitCylinderWidget() override = default;
139
140 // Manage the state of the widget
143 {
144 Start = 0,
145 Active
146 };
147#if !defined(VTK_LEGACY_REMOVE)
148 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
150#endif
151
152 // These methods handle events
161
166 int UpdateCursorShape(int interactionState);
167
168private:
170 void operator=(const vtkImplicitCylinderWidget&) = delete;
171};
172
173#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 vtkImplicitCylinderWidget * New()
Instantiate the object.
static void EndSelectAction(vtkAbstractWidget *)
static void MoveCylinderAction(vtkAbstractWidget *)
vtkImplicitCylinderRepresentation * GetCylinderRepresentation()
Return the representation as a vtkImplicitCylinderRepresentation.
static void TranslationAxisUnLock(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
static void TranslateAction(vtkAbstractWidget *)
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:34
#define VTK_DEPRECATED_IN_9_2_0(reason)