VTK
vtkAffineWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAffineWidget.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 =========================================================================*/
66 #ifndef vtkAffineWidget_h
67 #define vtkAffineWidget_h
68 
69 #include "vtkInteractionWidgetsModule.h" // For export macro
70 #include "vtkAbstractWidget.h"
71 
73 
74 
76 {
77 public:
79  static vtkAffineWidget *New();
80 
82 
84  void PrintSelf(ostream& os, vtkIndent indent);
86 
88 
92  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
94 
96 
98  {return reinterpret_cast<vtkAffineRepresentation*>(this->WidgetRep);}
100 
103 
107  virtual void SetEnabled(int);
108 
109 protected:
112 
113  // These are the callbacks for this widget
118 
119  // helper methods for cursor management
120  void SetCursor(int state);
121 
122 //BTX - manage the state of the widget
125  {
126  Start=0,
127  Active
128  };
129 //ETX
130 
131  // Keep track whether key modifier key is pressed
133 
134 private:
135  vtkAffineWidget(const vtkAffineWidget&); //Not implemented
136  void operator=(const vtkAffineWidget&); //Not implemented
137 };
138 
139 #endif
vtkAffineWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkAffineWidget::ModifyEventAction
static void ModifyEventAction(vtkAbstractWidget *)
vtkAffineWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkAffineWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkAbstractWidget.h
vtkAffineWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAffineWidget::vtkAffineWidget
vtkAffineWidget()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:54
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:159
vtkAffineWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation()
vtkAffineWidget::ModifierActive
int ModifierActive
Definition: vtkAffineWidget.h:132
vtkInteractionWidgetsModule.h
vtkAffineWidget::~vtkAffineWidget
~vtkAffineWidget()
vtkAffineWidget::SetRepresentation
void SetRepresentation(vtkAffineRepresentation *r)
Definition: vtkAffineWidget.h:91
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkAffineWidget::SetCursor
void SetCursor(int state)
vtkAffineRepresentation
abstract class for representing affine transformation widgets
Definition: vtkAffineRepresentation.h:47
vtkAffineWidget
perform affine transformations
Definition: vtkAffineWidget.h:76
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkAffineWidget::SetEnabled
virtual void SetEnabled(int)
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkAffineWidget::WidgetState
int WidgetState
Definition: vtkAffineWidget.h:123
vtkAffineWidget::New
static vtkAffineWidget * New()
vtkAffineWidget::GetAffineRepresentation
vtkAffineRepresentation * GetAffineRepresentation()
Definition: vtkAffineWidget.h:97
vtkAffineWidget::_WidgetState
_WidgetState
Definition: vtkAffineWidget.h:125