VTK
vtkSphereWidget2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSphereWidget2.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 =========================================================================*/
92 #ifndef vtkSphereWidget2_h
93 #define vtkSphereWidget2_h
94 
95 #include "vtkInteractionWidgetsModule.h" // For export macro
96 #include "vtkAbstractWidget.h"
97 
99 class vtkHandleWidget;
100 
101 
103 {
104 public:
107 
109 
111  void PrintSelf(ostream& os, vtkIndent indent);
113 
115 
119  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
121 
123 
125  vtkSetMacro(TranslationEnabled,int);
126  vtkGetMacro(TranslationEnabled,int);
127  vtkBooleanMacro(TranslationEnabled,int);
128  vtkSetMacro(ScalingEnabled,int);
129  vtkGetMacro(ScalingEnabled,int);
130  vtkBooleanMacro(ScalingEnabled,int);
132 
136 
137 protected:
140 
141 //BTX - manage the state of the widget
143  enum _WidgetState {Start=0,Active};
144 //ETX
145 
146  // These methods handle events
152 
153  // Control whether scaling and translation are supported
156 
157 private:
158  vtkSphereWidget2(const vtkSphereWidget2&); //Not implemented
159  void operator=(const vtkSphereWidget2&); //Not implemented
160 };
161 
162 #endif
vtkSphereWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
vtkSphereWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:79
vtkAbstractWidget.h
vtkSphereRepresentation
a class defining the representation for the vtkSphereWidget2
Definition: vtkSphereRepresentation.h:77
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
vtkSphereWidget2::ScalingEnabled
int ScalingEnabled
Definition: vtkSphereWidget2.h:155
vtkSphereWidget2::~vtkSphereWidget2
~vtkSphereWidget2()
vtkSphereWidget2::TranslationEnabled
int TranslationEnabled
Definition: vtkSphereWidget2.h:154
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkSphereWidget2
3D widget for manipulating a point on a sphere
Definition: vtkSphereWidget2.h:103
vtkSphereWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkSphereWidget2::WidgetState
int WidgetState
Definition: vtkSphereWidget2.h:142
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSphereWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkSphereWidget2::New
static vtkSphereWidget2 * New()
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkSphereWidget2::vtkSphereWidget2
vtkSphereWidget2()
vtkSphereWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkSphereWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkSphereWidget2::SetRepresentation
void SetRepresentation(vtkSphereRepresentation *r)
Definition: vtkSphereWidget2.h:118
vtkSphereWidget2::_WidgetState
_WidgetState
Definition: vtkSphereWidget2.h:143
vtkSphereWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)