48 #ifndef __vtkSphereRepresentation_h
49 #define __vtkSphereRepresentation_h
71 #define VTK_SPHERE_OFF 0
72 #define VTK_SPHERE_WIREFRAME 1
73 #define VTK_SPHERE_SURFACE 2
96 vtkGetMacro(Representation,
int);
97 void SetRepresentationToOff()
99 void SetRepresentationToWireframe()
101 void SetRepresentationToSurface()
107 void SetThetaResolution(
int r)
108 { this->SphereSource->SetThetaResolution(r); }
109 int GetThetaResolution()
110 {
return this->SphereSource->GetThetaResolution(); }
115 void SetPhiResolution(
int r)
116 { this->SphereSource->SetPhiResolution(r); }
117 int GetPhiResolution()
118 {
return this->SphereSource->GetPhiResolution(); }
125 void SetCenter(
double c[3]);
126 void SetCenter(
double x,
double y,
double z)
127 {
double c[3]; c[0]=x; c[1]=y; c[2]=z; this->
SetCenter(c);}
129 {
return this->SphereSource->GetCenter();}
130 void GetCenter(
double xyz[3])
131 {this->SphereSource->GetCenter(xyz);}
137 void SetRadius(
double r);
139 {
return this->SphereSource->GetRadius(); }
147 vtkSetMacro(HandleVisibility,
int);
148 vtkGetMacro(HandleVisibility,
int);
149 vtkBooleanMacro(HandleVisibility,
int);
155 void SetHandlePosition(
double handle[3]);
156 void SetHandlePosition(
double x,
double y,
double z)
158 vtkGetVector3Macro(HandlePosition,
double);
165 void SetHandleDirection(
double dir[3]);
166 void SetHandleDirection(
double dx,
double dy,
double dz)
168 vtkGetVector3Macro(HandleDirection,
double);
177 vtkSetMacro(HandleText,
int);
178 vtkGetMacro(HandleText,
int);
179 vtkBooleanMacro(HandleText,
int);
185 vtkSetMacro(RadialLine,
int);
186 vtkGetMacro(RadialLine,
int);
187 vtkBooleanMacro(RadialLine,
int);
208 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
216 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
238 void SetInteractionState(
int state);
267 double LastEventPosition[3];
273 void HighlightSphere(
int highlight);
281 double LastPickPosition[3];
284 void Translate(
double *p1,
double *p2);
285 void Scale(
double *p1,
double *p2,
int X,
int Y);
287 virtual void SizeHandles();
295 void CreateDefaultProperties();
301 void HighlightHandle(
int);
303 double HandleDirection[3];
304 double HandlePosition[3];