VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkTexturedSphereSource Class Reference

create a sphere centered at the origin More...

#include <vtkTexturedSphereSource.h>

Inheritance diagram for vtkTexturedSphereSource:
Inheritance graph
[legend]
Collaboration diagram for vtkTexturedSphereSource:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTexturedSphereSourceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetRadius (double)
virtual double GetRadius ()
virtual void SetThetaResolution (int)
virtual int GetThetaResolution ()
virtual void SetPhiResolution (int)
virtual int GetPhiResolution ()
virtual void SetTheta (double)
virtual double GetTheta ()
virtual void SetPhi (double)
virtual double GetPhi ()
virtual void SetOutputPointsPrecision (int)
virtual int GetOutputPointsPrecision ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkTexturedSphereSourceSafeDownCast (vtkObjectBase *o)
static vtkTexturedSphereSourceNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTexturedSphereSource (int res=8)
 ~vtkTexturedSphereSource ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

double Radius
double Theta
double Phi
int ThetaResolution
int PhiResolution
int OutputPointsPrecision

Detailed Description

create a sphere centered at the origin

vtkTexturedSphereSource creates a polygonal sphere 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 sphere by specifying maximum phi and theta angles.

Examples:
vtkTexturedSphereSource (Examples)
Tests:
vtkTexturedSphereSource (Tests)

Definition at line 39 of file vtkTexturedSphereSource.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 42 of file vtkTexturedSphereSource.h.


Constructor & Destructor Documentation

Definition at line 90 of file vtkTexturedSphereSource.h.


Member Function Documentation

static int vtkTexturedSphereSource::IsTypeOf ( const char *  name) [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 vtkPolyDataAlgorithm.

virtual int vtkTexturedSphereSource::IsA ( const char *  name) [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 vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkTexturedSphereSource::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkTexturedSphereSource::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 vtkPolyDataAlgorithm.

Construct sphere with radius=0.5 and default resolution 8 in both Phi and Theta directions.

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkTexturedSphereSource::SetRadius ( double  ) [virtual]

Set radius of sphere.

Set radius of sphere.

virtual void vtkTexturedSphereSource::SetThetaResolution ( int  ) [virtual]

Set the number of points in the longitude direction.

Set the number of points in the longitude direction.

virtual void vtkTexturedSphereSource::SetPhiResolution ( int  ) [virtual]

Set the number of points in the latitude direction.

Set the number of points in the latitude direction.

virtual void vtkTexturedSphereSource::SetTheta ( double  ) [virtual]

Set the maximum longitude angle.

Set the maximum longitude angle.

virtual void vtkTexturedSphereSource::SetPhi ( double  ) [virtual]

Set the maximum latitude angle (0 is at north pole).

virtual double vtkTexturedSphereSource::GetPhi ( ) [virtual]

Set the maximum latitude angle (0 is at north pole).

Set/get the desired precision for the output points. vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.

Set/get the desired precision for the output points. vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.

int vtkTexturedSphereSource::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

Definition at line 93 of file vtkTexturedSphereSource.h.

Definition at line 94 of file vtkTexturedSphereSource.h.

Definition at line 95 of file vtkTexturedSphereSource.h.

Definition at line 96 of file vtkTexturedSphereSource.h.

Definition at line 97 of file vtkTexturedSphereSource.h.

Definition at line 98 of file vtkTexturedSphereSource.h.


The documentation for this class was generated from the following file: