Documentation for vtkSphereSource

vtkSphereSource - create a polygonal sphere centered at the origin

Super Class: vtkPolyDataSource

Description:

vtkSphereSource creates a sphere (represented by polygons) of specified radius centered at the origin. The resolution (polygonal discretization) in both the latitude (phi) and longitude (theta) directions can be specified. It also is possible to create partial spheres by specifying maximum phi and theta angles.

 

Caveats:

Resolution means the number of latitude or longitude lines for a complete sphere. If you create partial spheres the number of latitude/longitude lines may be off by one.

 

Methods:

void vtkSphereSource (int )
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkSphereSource *New ()
void SetRadius (float )
float GetRadius ()
void SetCenter (float ,float ,float )
void SetCenter (float *)
float *GetCenter ()
void SetThetaResolution (int )
int GetThetaResolution ()
void SetPhiResolution (int )
int GetPhiResolution ()
void SetStartTheta (float )
float GetStartTheta ()
void SetEndTheta (float )
float GetEndTheta ()
void SetStartPhi (float )
float GetStartPhi ()
void SetEndPhi (float )
float GetEndPhi ()
void Execute ()

 

Detailed Method Descriptions:

Construct sphere with radius=0.5 and default resolution 8 in both Phi and Theta directions. Theta ranges from (0,360) and phi (0,180) degrees.

static vtkSphereSource *New ()

Set radius of sphere. Default is .5.

void SetRadius (float )
float GetRadius ()

Set the center of the sphere. Default is 0,0,0.

void SetCenter (float ,float ,float )
void SetCenter (float *)
float *GetCenter ()

Set the number of points in the longitude direction (ranging from StartTheta to EndTheta).

void SetThetaResolution (int )
int GetThetaResolution ()

Set the number of points in the latitude direction (ranging from StartPhi to EndPhi).

void SetPhiResolution (int )
int GetPhiResolution ()

Set the starting longitude angle. By default StartTheta=0 degrees.

void SetStartTheta (float )
float GetStartTheta ()

Set the ending longitude angle. By default EndTheta=360 degrees.

void SetEndTheta (float )
float GetEndTheta ()

Set the starting latitude angle (0 is at north pole). By default StartPhi=0 degrees.

void SetStartPhi (float )
float GetStartPhi ()

Set the ending latitude angle. By default EndPhi=180 degrees.

void SetEndPhi (float )
float GetEndPhi ()