VTK  9.2.5
vtkAxesTransformWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAxesTransformWidget.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 =========================================================================*/
87 #ifndef vtkAxesTransformWidget_h
88 #define vtkAxesTransformWidget_h
89 
90 #include "vtkAbstractWidget.h"
91 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
92 #include "vtkInteractionWidgetsModule.h" // For export macro
93 
95 class vtkHandleWidget;
96 
97 class VTKINTERACTIONWIDGETS_EXPORT vtkAxesTransformWidget : public vtkAbstractWidget
98 {
99 public:
104 
106 
110  void PrintSelf(ostream& os, vtkIndent indent) override;
112 
117  void SetEnabled(int enabling) override;
118 
125  {
126  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
127  }
128 
133  {
134  return reinterpret_cast<vtkAxesTransformRepresentation*>(this->WidgetRep);
135  }
136 
141 
147 
148 protected:
151 
154  {
155  Start = 0,
156  Active
157  };
158 #if !defined(VTK_LEGACY_REMOVE)
159  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
161 #endif
162 
164 
165  // These methods handle events
169 
170  // The positioning handle widgets
171  vtkHandleWidget* OriginWidget; // first end point
172  vtkHandleWidget* SelectionWidget; // used when selecting any one of the axes
173 
174 private:
176  void operator=(const vtkAxesTransformWidget&) = delete;
177 };
178 
179 #endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
represent the vtkAxesTransformWidget
3D widget for performing 3D transformations around an axes
vtkAxesTransformRepresentation * GetLineRepresentation()
Return the representation as a vtkAxesTransformRepresentation.
~vtkAxesTransformWidget() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
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.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static vtkAxesTransformWidget * New()
Instantiate the object.
vtkHandleWidget * SelectionWidget
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:119
abstract class defines interface between the widget and widget representation classes
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_DEPRECATED_IN_9_2_0(reason)