VTK  9.3.0
vtkAxesTransformWidget.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
72#ifndef vtkAxesTransformWidget_h
73#define vtkAxesTransformWidget_h
74
75#include "vtkAbstractWidget.h"
76#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
77#include "vtkInteractionWidgetsModule.h" // For export macro
78#include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
79
80VTK_ABI_NAMESPACE_BEGIN
82class vtkHandleWidget;
83
84class VTKINTERACTIONWIDGETS_EXPORT vtkAxesTransformWidget : public vtkAbstractWidget
85{
86public:
91
93
97 void PrintSelf(ostream& os, vtkIndent indent) override;
99
104 void SetEnabled(int enabling) override;
105
112 {
113 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
114 }
115
120 {
121 return reinterpret_cast<vtkAxesTransformRepresentation*>(this->WidgetRep);
122 }
123
128
134
135protected:
138
141 {
142 Start = 0,
143 Active
144 };
145#if !defined(VTK_LEGACY_REMOVE)
146 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
148#endif
149
151
152 // These methods handle events
156
157 // The positioning handle widgets
158 vtkHandleWidget* OriginWidget; // first end point
159 vtkHandleWidget* SelectionWidget; // used when selecting any one of the axes
160
161private:
163 void operator=(const vtkAxesTransformWidget&) = delete;
164};
165
166VTK_ABI_NAMESPACE_END
167#endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
represent the vtkAxesTransformWidget
3D widget for performing 3D transformations around an axes
~vtkAxesTransformWidget() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
static vtkAxesTransformWidget * New()
Instantiate the object.
void SetProcessEvents(vtkTypeBool) override
Methods to change the whether the widget responds to interaction.
void SetRepresentation(vtkAxesTransformRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkAxesTransformRepresentation * GetLineRepresentation()
Return the representation as a vtkAxesTransformRepresentation.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void SelectAction(vtkAbstractWidget *)
static void EndSelectAction(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
static void MoveAction(vtkAbstractWidget *)
a general widget for moving handles
a simple class to control print indentation
Definition vtkIndent.h:29
abstract class defines interface between the widget and widget representation classes
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DEPRECATED_IN_9_2_0(reason)