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 =========================================================================*/
90 #ifndef vtkSphereWidget2_h
91 #define vtkSphereWidget2_h
92 
93 #include "vtkInteractionWidgetsModule.h" // For export macro
94 #include "vtkAbstractWidget.h"
95 
97 class vtkHandleWidget;
98 
99 
100 class VTKINTERACTIONWIDGETS_EXPORT vtkSphereWidget2 : public vtkAbstractWidget
101 {
102 public:
107 
109 
113  void PrintSelf(ostream& os, vtkIndent indent);
115 
122  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
123 
125 
129  vtkSetMacro(TranslationEnabled,int);
130  vtkGetMacro(TranslationEnabled,int);
131  vtkBooleanMacro(TranslationEnabled,int);
132  vtkSetMacro(ScalingEnabled,int);
133  vtkGetMacro(ScalingEnabled,int);
134  vtkBooleanMacro(ScalingEnabled,int);
136 
142 
143 protected:
146 
147  // Manage the state of the widget
149  enum _WidgetState {Start=0,Active};
150 
151  // These methods handle events
157 
158  // Control whether scaling and translation are supported
161 
162 private:
163  vtkSphereWidget2(const vtkSphereWidget2&) VTK_DELETE_FUNCTION;
164  void operator=(const vtkSphereWidget2&) VTK_DELETE_FUNCTION;
165 };
166 
167 #endif
vtkSphereWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
vtkSphereWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:77
vtkAbstractWidget.h
vtkSphereRepresentation
a class defining the representation for the vtkSphereWidget2
Definition: vtkSphereRepresentation.h:79
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:55
vtkSphereWidget2::ScalingEnabled
int ScalingEnabled
Definition: vtkSphereWidget2.h:160
vtkSphereWidget2::~vtkSphereWidget2
~vtkSphereWidget2()
vtkSphereWidget2::TranslationEnabled
int TranslationEnabled
Definition: vtkSphereWidget2.h:159
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:64
vtkSphereWidget2
3D widget for manipulating a point on a sphere
Definition: vtkSphereWidget2.h:101
vtkSphereWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkSphereWidget2::WidgetState
int WidgetState
Definition: vtkSphereWidget2.h:148
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSphereWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSphereWidget2::New
static vtkSphereWidget2 * New()
Instantiate the object.
vtkSphereWidget2::vtkSphereWidget2
vtkSphereWidget2()
vtkSphereWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkSphereWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkSphereWidget2::SetRepresentation
void SetRepresentation(vtkSphereRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition: vtkSphereWidget2.h:121
vtkSphereWidget2::_WidgetState
_WidgetState
Definition: vtkSphereWidget2.h:149
vtkSphereWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.