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 =========================================================================*/
96 #ifndef vtkBoxWidget2_h
97 #define vtkBoxWidget2_h
98 
99 #include "vtkInteractionWidgetsModule.h" // For export macro
100 #include "vtkAbstractWidget.h"
101 
103 class vtkHandleWidget;
104 
105 
106 class VTKINTERACTIONWIDGETS_EXPORT vtkBoxWidget2 : public vtkAbstractWidget
107 {
108 public:
112  static vtkBoxWidget2 *New();
113 
115 
119  void PrintSelf(ostream& os, vtkIndent indent);
121 
128  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
129 
131 
139  vtkSetMacro(TranslationEnabled,int);
140  vtkGetMacro(TranslationEnabled,int);
141  vtkBooleanMacro(TranslationEnabled,int);
142  vtkSetMacro(ScalingEnabled,int);
143  vtkGetMacro(ScalingEnabled,int);
144  vtkBooleanMacro(ScalingEnabled,int);
145  vtkSetMacro(RotationEnabled,int);
146  vtkGetMacro(RotationEnabled,int);
147  vtkBooleanMacro(RotationEnabled,int);
148  vtkSetMacro(MoveFacesEnabled,int);
149  vtkGetMacro(MoveFacesEnabled,int);
150  vtkBooleanMacro(MoveFacesEnabled,int);
152 
158 
159 protected:
162 
163  // Manage the state of the widget
165  enum _WidgetState {Start=0,Active};
166 
167  // These methods handle events
173 
174  // Control whether scaling, rotation, and translation are supported
179 private:
180  vtkBoxWidget2(const vtkBoxWidget2&) VTK_DELETE_FUNCTION;
181  void operator=(const vtkBoxWidget2&) VTK_DELETE_FUNCTION;
182 };
183 
184 #endif
vtkBoxWidget2
3D widget for manipulating a box
Definition: vtkBoxWidget2.h:107
vtkBoxWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:77
vtkBoxWidget2::WidgetState
int WidgetState
Definition: vtkBoxWidget2.h:164
vtkBoxWidget2::TranslationEnabled
int TranslationEnabled
Definition: vtkBoxWidget2.h:175
vtkBoxRepresentation
a class defining the representation for the vtkBoxWidget2
Definition: vtkBoxRepresentation.h:63
vtkAbstractWidget.h
vtkBoxWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkBoxWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBoxWidget2::ScalingEnabled
int ScalingEnabled
Definition: vtkBoxWidget2.h:176
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:55
vtkBoxWidget2::~vtkBoxWidget2
~vtkBoxWidget2()
vtkBoxWidget2::RotationEnabled
int RotationEnabled
Definition: vtkBoxWidget2.h:177
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:64
vtkBoxWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkBoxWidget2::vtkBoxWidget2
vtkBoxWidget2()
vtkBoxWidget2::New
static vtkBoxWidget2 * New()
Instantiate the object.
vtkBoxWidget2::SetRepresentation
void SetRepresentation(vtkBoxRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition: vtkBoxWidget2.h:127
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkBoxWidget2::MoveFacesEnabled
int MoveFacesEnabled
Definition: vtkBoxWidget2.h:178
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBoxWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
vtkBoxWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkBoxWidget2::_WidgetState
_WidgetState
Definition: vtkBoxWidget2.h:165
vtkBoxWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)