VTK
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 "vtkInteractionWidgetsModule.h" // For export macro
88#include "vtkAbstractWidget.h"
89
91class vtkHandleWidget;
92
93
94class VTKINTERACTIONWIDGETS_EXPORT vtkAxesTransformWidget : public vtkAbstractWidget
95{
96public:
101
103
107 void PrintSelf(ostream& os, vtkIndent indent);
109
114 virtual void SetEnabled(int enabling);
115
122 {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
123
128 {return reinterpret_cast<vtkAxesTransformRepresentation*>(this->WidgetRep);}
129
134
139 virtual void SetProcessEvents(int);
140
141protected:
144
146 enum _WidgetState {Start=0,Active};
148
149 // These methods handle events
153
154 // The positioning handle widgets
155 vtkHandleWidget *OriginWidget; //first end point
156 vtkHandleWidget *SelectionWidget; //used when selecting any one of the axes
157
158private:
159 vtkAxesTransformWidget(const vtkAxesTransformWidget&) VTK_DELETE_FUNCTION;
160 void operator=(const vtkAxesTransformWidget&) VTK_DELETE_FUNCTION;
161};
162
163#endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
represent the vtkAxesTransformWidget
3D widget for performing 3D transformations around an axes
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkAxesTransformWidget * New()
Instantiate the object.
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()
Create the default widget representation if one is not set.
virtual void SetEnabled(int enabling)
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkHandleWidget * SelectionWidget
static void SelectAction(vtkAbstractWidget *)
static void EndSelectAction(vtkAbstractWidget *)
static void MoveAction(vtkAbstractWidget *)
virtual void SetProcessEvents(int)
Methods to change the whether the widget responds to interaction.
a general widget for moving handles
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class defines interface between the widget and widget representation classes