61 #ifndef vtkSphereWidget_h
62 #define vtkSphereWidget_h
77 #define VTK_SPHERE_OFF 0
78 #define VTK_SPHERE_WIREFRAME 1
79 #define VTK_SPHERE_SURFACE 2
95 {this->Superclass::PlaceWidget();}
96 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
97 double zmin,
double zmax)
98 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
119 { this->SphereSource->SetThetaResolution(r); }
121 {
return this->SphereSource->GetThetaResolution(); }
128 { this->SphereSource->SetPhiResolution(r); }
130 {
return this->SphereSource->GetPhiResolution(); }
141 this->SphereSource->SetRadius(r);
144 {
return this->SphereSource->GetRadius(); }
151 this->SphereSource->SetCenter(x,y,z);
155 this->SetCenter(x[0], x[1], x[2]);
158 {
return this->SphereSource->GetCenter();}
160 {this->SphereSource->GetCenter(xyz);}
249 void OnLeftButtonDown();
250 void OnLeftButtonUp();
251 void OnRightButtonDown();
252 void OnRightButtonUp();
259 void HighlightSphere(
int highlight);
260 void SelectRepresentation();
274 void Translate(
double *p1,
double *p2);
275 void ScaleSphere(
double *p1,
double *p2,
int X,
int Y);
276 void MoveHandle(
double *p1,
double *p2,
int X,
int Y);
285 void CreateDefaultProperties();
291 void HighlightHandle(
int);
293 double HandleDirection[3];
294 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)