VTK
vtkBoxWidget2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoxWidget2.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 =========================================================================*/
98 #ifndef vtkBoxWidget2_h
99 #define vtkBoxWidget2_h
100 
101 #include "vtkInteractionWidgetsModule.h" // For export macro
102 #include "vtkAbstractWidget.h"
103 
105 class vtkHandleWidget;
106 
107 
109 {
110 public:
112  static vtkBoxWidget2 *New();
113 
115 
117  void PrintSelf(ostream& os, vtkIndent indent);
119 
121 
125  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
127 
129 
135  vtkSetMacro(TranslationEnabled,int);
136  vtkGetMacro(TranslationEnabled,int);
137  vtkBooleanMacro(TranslationEnabled,int);
138  vtkSetMacro(ScalingEnabled,int);
139  vtkGetMacro(ScalingEnabled,int);
140  vtkBooleanMacro(ScalingEnabled,int);
141  vtkSetMacro(RotationEnabled,int);
142  vtkGetMacro(RotationEnabled,int);
143  vtkBooleanMacro(RotationEnabled,int);
144  vtkSetMacro(MoveFacesEnabled,int);
145  vtkGetMacro(MoveFacesEnabled,int);
146  vtkBooleanMacro(MoveFacesEnabled,int);
148 
152 
153 protected:
156 
157 //BTX - manage the state of the widget
159  enum _WidgetState {Start=0,Active};
160 //ETX
161 
162  // These methods handle events
168 
169  // Control whether scaling, rotation, and translation are supported
174 private:
175  vtkBoxWidget2(const vtkBoxWidget2&); //Not implemented
176  void operator=(const vtkBoxWidget2&); //Not implemented
177 };
178 
179 #endif
vtkBoxWidget2
3D widget for manipulating a box
Definition: vtkBoxWidget2.h:109
vtkBoxWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:79
vtkBoxWidget2::WidgetState
int WidgetState
Definition: vtkBoxWidget2.h:158
vtkBoxWidget2::TranslationEnabled
int TranslationEnabled
Definition: vtkBoxWidget2.h:170
vtkBoxRepresentation
a class defining the representation for the vtkBoxWidget2
Definition: vtkBoxRepresentation.h:62
vtkAbstractWidget.h
vtkBoxWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkBoxWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBoxWidget2::ScalingEnabled
int ScalingEnabled
Definition: vtkBoxWidget2.h:171
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
vtkInteractionWidgetsModule.h
vtkBoxWidget2::~vtkBoxWidget2
~vtkBoxWidget2()
vtkBoxWidget2::RotationEnabled
int RotationEnabled
Definition: vtkBoxWidget2.h:172
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkBoxWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkBoxWidget2::vtkBoxWidget2
vtkBoxWidget2()
vtkBoxWidget2::New
static vtkBoxWidget2 * New()
vtkBoxWidget2::SetRepresentation
void SetRepresentation(vtkBoxRepresentation *r)
Definition: vtkBoxWidget2.h:124
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkBoxWidget2::MoveFacesEnabled
int MoveFacesEnabled
Definition: vtkBoxWidget2.h:173
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkBoxWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkBoxWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkBoxWidget2::_WidgetState
_WidgetState
Definition: vtkBoxWidget2.h:159
vtkBoxWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)