Go to the documentation of this file.
59 #ifndef vtkSphereWidget_h
60 #define vtkSphereWidget_h
62 #include "vtkInteractionWidgetsModule.h"
75 #define VTK_SPHERE_OFF 0
76 #define VTK_SPHERE_WIREFRAME 1
77 #define VTK_SPHERE_SURFACE 2
97 {this->Superclass::PlaceWidget();}
98 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
99 double zmin,
double zmax)
100 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
110 vtkGetMacro(Representation,
int);
124 { this->SphereSource->SetThetaResolution(r); }
126 {
return this->SphereSource->GetThetaResolution(); }
133 { this->SphereSource->SetPhiResolution(r); }
135 {
return this->SphereSource->GetPhiResolution(); }
147 this->SphereSource->SetRadius(r);
150 {
return this->SphereSource->GetRadius(); }
159 this->SphereSource->SetCenter(x,y,z);
163 this->SetCenter(x[0], x[1], x[2]);
166 {
return this->SphereSource->GetCenter();}
168 {this->SphereSource->GetCenter(xyz);}
177 vtkGetMacro(Translation,
int);
180 vtkGetMacro(Scale,
int);
192 vtkGetMacro(HandleVisibility,
int);
202 vtkSetVector3Macro(HandleDirection,
double);
203 vtkGetVector3Macro(HandleDirection,
double);
210 vtkGetVector3Macro(HandlePosition,
double);
236 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
246 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
271 void OnLeftButtonDown();
272 void OnLeftButtonUp();
273 void OnRightButtonDown();
274 void OnRightButtonUp();
281 void HighlightSphere(
int highlight);
282 void SelectRepresentation();
296 void Translate(
double *p1,
double *p2);
297 void ScaleSphere(
double *p1,
double *p2,
int X,
int Y);
298 void MoveHandle(
double *p1,
double *p2,
int X,
int Y);
307 void CreateDefaultProperties();
313 void HighlightHandle(
int);
315 double HandleDirection[3];
316 double HandlePosition[3];
map vtkPolyData to graphics primitives
represent and manipulate 3D points
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
implicit function for a sphere
create a polygonal sphere centered at the origin
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
represents an object (geometry & properties) in a rendered scene
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
a simple class to control print indentation
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
ray-cast cell picker for all kinds of Prop3Ds