Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkSphereSource Class Reference
create a polygonal sphere centered at the origin.
More...
#include <vtkSphereSource.h>
Inheritance diagram for vtkSphereSource:
[legend]Collaboration diagram for vtkSphereSource:
[legend]List of all members.
Detailed Description
create a polygonal sphere centered at the origin.
-
Date:
-
2000/12/10 20:08:52
-
Revision:
-
1.44
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.
-
Warning:
-
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.
-
Examples:
-
vtkSphereSource (examples)
Definition at line 67 of file vtkSphereSource.h.
Constructor & Destructor Documentation
vtkSphereSource::vtkSphereSource |
( |
int |
res = 8 |
) |
[protected] |
|
vtkSphereSource::~vtkSphereSource |
( |
|
) |
[inline, protected] |
|
vtkSphereSource::vtkSphereSource |
( |
const vtkSphereSource & |
|
) |
[inline, protected] |
|
Member Function Documentation
virtual const char* vtkSphereSource::GetClassName |
( |
|
) |
[virtual] |
|
int vtkSphereSource::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
virtual int vtkSphereSource::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
vtkSphereSource* vtkSphereSource::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
void vtkSphereSource::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkSource. |
vtkSphereSource* vtkSphereSource::New |
( |
|
) |
[static] |
|
|
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.
Reimplemented from vtkPolyDataSource. |
virtual void vtkSphereSource::SetRadius |
( |
float |
|
) |
[virtual] |
|
|
Set radius of sphere. Default is .5. |
virtual float vtkSphereSource::GetRadius |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::SetCenter |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
[virtual] |
|
|
Set the center of the sphere. Default is 0,0,0. |
virtual void vtkSphereSource::SetCenter |
( |
float |
[3] |
) |
[virtual] |
|
virtual float* vtkSphereSource::GetCenter |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::GetCenter |
( |
float |
data[3] |
) |
[virtual] |
|
virtual void vtkSphereSource::SetThetaResolution |
( |
int |
|
) |
[virtual] |
|
|
Set the number of points in the longitude direction (ranging from StartTheta to EndTheta). |
virtual int vtkSphereSource::GetThetaResolution |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::SetPhiResolution |
( |
int |
|
) |
[virtual] |
|
|
Set the number of points in the latitude direction (ranging from StartPhi to EndPhi). |
virtual int vtkSphereSource::GetPhiResolution |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::SetStartTheta |
( |
float |
|
) |
[virtual] |
|
|
Set the starting longitude angle. By default StartTheta=0 degrees. |
virtual float vtkSphereSource::GetStartTheta |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::SetEndTheta |
( |
float |
|
) |
[virtual] |
|
|
Set the ending longitude angle. By default EndTheta=360 degrees. |
virtual float vtkSphereSource::GetEndTheta |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::SetStartPhi |
( |
float |
|
) |
[virtual] |
|
|
Set the starting latitude angle (0 is at north pole). By default StartPhi=0 degrees. |
virtual float vtkSphereSource::GetStartPhi |
( |
|
) |
[virtual] |
|
virtual void vtkSphereSource::SetEndPhi |
( |
float |
|
) |
[virtual] |
|
|
Set the ending latitude angle. By default EndPhi=180 degrees. |
virtual float vtkSphereSource::GetEndPhi |
( |
|
) |
[virtual] |
|
void vtkSphereSource::operator= |
( |
const vtkSphereSource & |
|
) |
[inline, protected] |
|
void vtkSphereSource::Execute |
( |
|
) |
[protected, virtual] |
|
void vtkSphereSource::ExecuteInformation |
( |
|
) |
[protected, virtual] |
|
Member Data Documentation
float vtkSphereSource::Radius [protected]
|
|
float vtkSphereSource::Center[3] [protected]
|
|
int vtkSphereSource::ThetaResolution [protected]
|
|
int vtkSphereSource::PhiResolution [protected]
|
|
float vtkSphereSource::StartTheta [protected]
|
|
float vtkSphereSource::EndTheta [protected]
|
|
float vtkSphereSource::StartPhi [protected]
|
|
float vtkSphereSource::EndPhi [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:00:27 2001 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001