48 #ifndef __vtkSphereRepresentation_h
49 #define __vtkSphereRepresentation_h
51 #include "vtkInteractionWidgetsModule.h"
72 #define VTK_SPHERE_OFF 0
73 #define VTK_SPHERE_WIREFRAME 1
74 #define VTK_SPHERE_SURFACE 2
97 vtkGetMacro(Representation,
int);
98 void SetRepresentationToOff()
100 void SetRepresentationToWireframe()
102 void SetRepresentationToSurface()
108 void SetThetaResolution(
int r)
109 { this->SphereSource->SetThetaResolution(r); }
110 int GetThetaResolution()
111 {
return this->SphereSource->GetThetaResolution(); }
116 void SetPhiResolution(
int r)
117 { this->SphereSource->SetPhiResolution(r); }
118 int GetPhiResolution()
119 {
return this->SphereSource->GetPhiResolution(); }
126 void SetCenter(
double c[3]);
127 void SetCenter(
double x,
double y,
double z)
128 {
double c[3]; c[0]=x; c[1]=y; c[2]=z; this->
SetCenter(c);}
130 {
return this->SphereSource->GetCenter();}
131 void GetCenter(
double xyz[3])
132 {this->SphereSource->GetCenter(xyz);}
138 void SetRadius(
double r);
140 {
return this->SphereSource->GetRadius(); }
148 vtkSetMacro(HandleVisibility,
int);
149 vtkGetMacro(HandleVisibility,
int);
150 vtkBooleanMacro(HandleVisibility,
int);
156 void SetHandlePosition(
double handle[3]);
157 void SetHandlePosition(
double x,
double y,
double z)
159 vtkGetVector3Macro(HandlePosition,
double);
166 void SetHandleDirection(
double dir[3]);
167 void SetHandleDirection(
double dx,
double dy,
double dz)
169 vtkGetVector3Macro(HandleDirection,
double);
178 vtkSetMacro(HandleText,
int);
179 vtkGetMacro(HandleText,
int);
180 vtkBooleanMacro(HandleText,
int);
186 vtkSetMacro(RadialLine,
int);
187 vtkGetMacro(RadialLine,
int);
188 vtkBooleanMacro(RadialLine,
int);
209 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
217 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
239 void SetInteractionState(
int state);
268 double LastEventPosition[3];
274 void HighlightSphere(
int highlight);
282 double LastPickPosition[3];
285 void Translate(
double *p1,
double *p2);
286 void Scale(
double *p1,
double *p2,
int X,
int Y);
288 virtual void SizeHandles();
296 void CreateDefaultProperties();
302 void HighlightHandle(
int);
304 double HandleDirection[3];
305 double HandlePosition[3];