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);}
106 vtkGetMacro(Representation,
int);
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);}
166 vtkSetMacro(Translation,
int);
167 vtkGetMacro(Translation,
int);
168 vtkBooleanMacro(Translation,
int);
169 vtkSetMacro(Scale,
int);
170 vtkGetMacro(Scale,
int);
171 vtkBooleanMacro(Scale,
int);
179 vtkSetMacro(HandleVisibility,
int);
180 vtkGetMacro(HandleVisibility,
int);
181 vtkBooleanMacro(HandleVisibility,
int);
188 vtkSetVector3Macro(HandleDirection,
double);
189 vtkGetVector3Macro(HandleDirection,
double);
194 vtkGetVector3Macro(HandlePosition,
double);
215 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
223 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
248 void OnLeftButtonDown();
249 void OnLeftButtonUp();
250 void OnRightButtonDown();
251 void OnRightButtonUp();
258 void HighlightSphere(
int highlight);
259 void SelectRepresentation();
273 void Translate(
double *p1,
double *p2);
274 void ScaleSphere(
double *p1,
double *p2,
int X,
int Y);
275 void MoveHandle(
double *p1,
double *p2,
int X,
int Y);
284 void CreateDefaultProperties();
290 void HighlightHandle(
int);
292 double HandleDirection[3];
293 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
virtual void RegisterPickers()
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