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);}
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);}
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)
#define vtkGetMacro(name, type)
virtual void SetEnabled(int)
#define vtkSetClampMacro(name, type, min, max)
concrete dataset represents vertices, lines, polygons, and triangle strips
GLdouble GLdouble GLdouble r
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
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
#define vtkGetVector3Macro(name, type)
#define vtkGetObjectMacro(name, type)
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
#define vtkBooleanMacro(name, type)
#define vtkSetVector3Macro(name, type)
represent and manipulate 3D points
#define vtkSetMacro(name, type)