VTK  9.0.1
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 =========================================================================*/
84 #ifndef vtkAxesTransformWidget_h
85 #define vtkAxesTransformWidget_h
86 
87 #include "vtkAbstractWidget.h"
88 #include "vtkInteractionWidgetsModule.h" // For export macro
89 
91 class vtkHandleWidget;
92 
93 class VTKINTERACTIONWIDGETS_EXPORT vtkAxesTransformWidget : public vtkAbstractWidget
94 {
95 public:
99  static vtkAxesTransformWidget* New();
100 
102 
106  void PrintSelf(ostream& os, vtkIndent indent) override;
108 
113  void SetEnabled(int enabling) override;
114 
121  {
122  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
123  }
124 
129  {
130  return reinterpret_cast<vtkAxesTransformRepresentation*>(this->WidgetRep);
131  }
132 
136  void CreateDefaultRepresentation() override;
137 
142  void SetProcessEvents(vtkTypeBool) override;
143 
144 protected:
146  ~vtkAxesTransformWidget() override;
147 
150  {
151  Start = 0,
152  Active
153  };
155 
156  // These methods handle events
157  static void SelectAction(vtkAbstractWidget*);
158  static void EndSelectAction(vtkAbstractWidget*);
159  static void MoveAction(vtkAbstractWidget*);
160 
161  // The positioning handle widgets
162  vtkHandleWidget* OriginWidget; // first end point
163  vtkHandleWidget* SelectionWidget; // used when selecting any one of the axes
164 
165 private:
167  void operator=(const vtkAxesTransformWidget&) = delete;
168 };
169 
170 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
a general widget for moving handles
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
represent the vtkAxesTransformWidget
vtkWidgetRepresentation * WidgetRep
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:33
void SetRepresentation(vtkAxesTransformRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
define the API for widget / widget representation
virtual void SetProcessEvents(vtkTypeBool)
Methods to change whether the widget responds to interaction.
void SetEnabled(int) override
Methods for activating this widget.
3D widget for performing 3D transformations around an axes
vtkHandleWidget * SelectionWidget
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkAxesTransformRepresentation * GetLineRepresentation()
Return the representation as a vtkAxesTransformRepresentation.