48 #ifndef vtkSphereRepresentation_h 
   49 #define vtkSphereRepresentation_h 
   72 #define VTK_SPHERE_OFF 0 
   73 #define VTK_SPHERE_WIREFRAME 1 
   74 #define VTK_SPHERE_SURFACE 2 
   96   vtkGetMacro(Representation,
int);
 
  108     { this->SphereSource->SetThetaResolution(r); }
 
  110     { 
return this->SphereSource->GetThetaResolution(); }
 
  116     { this->SphereSource->SetPhiResolution(r); }
 
  118     { 
return this->SphereSource->GetPhiResolution(); }
 
  125   void SetCenter(
double c[3]);
 
  127     {
double c[3]; c[0]=x; c[1]=y; c[2]=z; this->SetCenter(c);}
 
  129     {
return this->SphereSource->GetCenter();}
 
  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]);
 
  157     {
double p[3]; p[0]=x; p[1]=y; p[2]=z; this->SetHandlePosition(p);}
 
  158   vtkGetVector3Macro(HandlePosition,
double);
 
  165   void SetHandleDirection(
double dir[3]);
 
  167     {
double d[3]; d[0]=dx; d[1]=dy; d[2]=dz; this->SetHandleDirection(d);}
 
  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];
 
  287   void Translate(
double *p1, 
double *p2);
 
  288   void Scale(
double *p1, 
double *p2, 
int X, 
int Y);
 
  290   virtual void SizeHandles();
 
  298   void CreateDefaultProperties();
 
  304   void HighlightHandle(
int);
 
  306   double HandleDirection[3];
 
  307   double HandlePosition[3];
 
vtkProperty * SelectedHandleProperty
 
#define VTK_SPHERE_SURFACE
 
void GetCenter(double xyz[3])
 
vtkCellPicker * SpherePicker
 
represents an object (geometry & properties) in a rendered scene 
 
vtkPolyDataMapper * SphereMapper
 
represent and manipulate 4x4 transformation matrices 
 
abstract specification for Viewports 
 
represent surface properties of a geometric object 
 
void SetHandleDirection(double dx, double dy, double dz)
 
void SetCenter(double x, double y, double z)
 
vtkTextMapper * HandleTextMapper
 
a actor that draws 2D data 
 
void SetRepresentationToOff()
 
void SetPhiResolution(int r)
 
vtkActor2D * HandleTextActor
 
vtkProperty * RadialLineProperty
 
concrete dataset represents vertices, lines, polygons, and triangle strips 
 
void SetThetaResolution(int r)
 
dynamic, self-adjusting array of double 
 
vtkActor * RadialLineActor
 
window superclass for vtkRenderWindow 
 
vtkSphereSource * HandleSource
 
vtkSphereSource * SphereSource
 
create a polygonal sphere centered at the origin 
 
implicit function for a sphere 
 
Superclass for algorithms that produce only polydata as output. 
 
vtkCellPicker * HandlePicker
 
a simple class to control print indentation 
 
vtkLineSource * RadialLineSource
 
#define VTK_SPHERE_WIREFRAME
 
void SetHandlePosition(double x, double y, double z)
 
void SetRepresentationToWireframe()
 
vtkProperty * HandleProperty
 
represent text properties. 
 
void SetRepresentationToSurface()
 
vtkTextProperty * HandleTextProperty
 
vtkPolyDataMapper * RadialLineMapper
 
create a line defined by two end points 
 
map vtkPolyData to graphics primitives 
 
ray-cast cell picker for all kinds of Prop3Ds 
 
vtkProperty * SphereProperty
 
a class defining the representation for the vtkSphereWidget2 
 
vtkProperty * SelectedSphereProperty
 
vtkPolyDataMapper * HandleMapper
 
represent and manipulate 3D points