58 #ifndef __vtkSphereWidget_h
59 #define __vtkSphereWidget_h
74 #define VTK_SPHERE_OFF 0
75 #define VTK_SPHERE_WIREFRAME 1
76 #define VTK_SPHERE_SURFACE 2
92 {this->Superclass::PlaceWidget();}
93 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
94 double zmin,
double zmax)
95 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
103 vtkGetMacro(Representation,
int);
116 { this->SphereSource->SetThetaResolution(r); }
118 {
return this->SphereSource->GetThetaResolution(); }
125 { this->SphereSource->SetPhiResolution(r); }
127 {
return this->SphereSource->GetPhiResolution(); }
138 this->SphereSource->SetRadius(r);
141 {
return this->SphereSource->GetRadius(); }
148 this->SphereSource->SetCenter(x,y,z);
152 this->SetCenter(x[0], x[1], x[2]);
155 {
return this->SphereSource->GetCenter();}
157 {this->SphereSource->GetCenter(xyz);}
163 vtkSetMacro(Translation,
int);
164 vtkGetMacro(Translation,
int);
165 vtkBooleanMacro(Translation,
int);
166 vtkSetMacro(Scale,
int);
167 vtkGetMacro(Scale,
int);
168 vtkBooleanMacro(Scale,
int);
176 vtkSetMacro(HandleVisibility,
int);
177 vtkGetMacro(HandleVisibility,
int);
178 vtkBooleanMacro(HandleVisibility,
int);
185 vtkSetVector3Macro(HandleDirection,
double);
186 vtkGetVector3Macro(HandleDirection,
double);
191 vtkGetVector3Macro(HandlePosition,
double);
212 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
220 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
246 void OnLeftButtonDown();
247 void OnLeftButtonUp();
248 void OnRightButtonDown();
249 void OnRightButtonUp();
256 void HighlightSphere(
int highlight);
257 void SelectRepresentation();
271 void Translate(
double *p1,
double *p2);
272 void ScaleSphere(
double *p1,
double *p2,
int X,
int Y);
273 void MoveHandle(
double *p1,
double *p2,
int X,
int Y);
282 void CreateDefaultProperties();
288 void HighlightHandle(
int);
290 double HandleDirection[3];
291 double HandlePosition[3];
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
represent surface properties of a geometric object
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
virtual void SetEnabled(int)
concrete dataset represents vertices, lines, polygons, and triangle strips
GLdouble GLdouble GLdouble r
GLint GLint GLint GLint GLint GLint y
virtual void RegisterPickers()
GLint GLint GLint GLint GLint x
create a polygonal sphere centered at the origin
implicit function for a sphere
a simple class to control print indentation
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
represent and manipulate 3D points