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 =========================================================================*/
86 #ifndef vtkAxesTransformWidget_h
87 #define vtkAxesTransformWidget_h
88 
89 #include "vtkInteractionWidgetsModule.h" // For export macro
90 #include "vtkAbstractWidget.h"
91 
93 class vtkHandleWidget;
94 
95 
97 {
98 public:
100  static vtkAxesTransformWidget *New();
101 
103 
105  void PrintSelf(ostream& os, vtkIndent indent);
107 
110  virtual void SetEnabled(int enabling);
111 
113 
117  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
119 
121 
123  {return reinterpret_cast<vtkAxesTransformRepresentation*>(this->WidgetRep);}
125 
128 
131  virtual void SetProcessEvents(int);
132 
133 protected:
136 
138  enum _WidgetState {Start=0,Active};
140 
141  // These methods handle events
142  static void SelectAction(vtkAbstractWidget*);
143  static void EndSelectAction(vtkAbstractWidget*);
144  static void MoveAction(vtkAbstractWidget*);
145 
146  // The positioning handle widgets
147  vtkHandleWidget *OriginWidget; //first end point
148  vtkHandleWidget *SelectionWidget; //used when selecting any one of the axes
149 
150 private:
151  vtkAxesTransformWidget(const vtkAxesTransformWidget&); //Not implemented
152  void operator=(const vtkAxesTransformWidget&); //Not implemented
153 };
154 
155 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetProcessEvents(int)
a general widget for moving handles
virtual void CreateDefaultRepresentation()=0
represent the vtkAxesTransformWidget
vtkWidgetRepresentation * WidgetRep
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
void SetRepresentation(vtkAxesTransformRepresentation *r)
define the API for widget / widget representation
3D widget for performing 3D transformations around an axes
vtkHandleWidget * SelectionWidget
static vtkObject * New()
vtkAxesTransformRepresentation * GetLineRepresentation()
virtual void SetEnabled(int)