VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkTexturedSphereSource Class Reference

create a sphere centered at the origin More...

#include <vtkTexturedSphereSource.h>

Inherits vtkPolyDataAlgorithm.

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 ()
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

double Radius
 
double Theta
 
double Phi
 
int ThetaResolution
 
int PhiResolution
 

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

typedef vtkPolyDataAlgorithm vtkTexturedSphereSource::Superclass

Definition at line 42 of file vtkTexturedSphereSource.h.

Constructor & Destructor Documentation

vtkTexturedSphereSource::vtkTexturedSphereSource ( int  res = 8)
protected
vtkTexturedSphereSource::~vtkTexturedSphereSource ( )
inlineprotected

Definition at line 81 of file vtkTexturedSphereSource.h.

Member Function Documentation

static int vtkTexturedSphereSource::IsTypeOf ( const char *  type)
static
virtual int vtkTexturedSphereSource::IsA ( const char *  type)
virtual
static vtkTexturedSphereSource* vtkTexturedSphereSource::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkTexturedSphereSource::NewInstanceInternal ( ) const
protectedvirtual
vtkTexturedSphereSource* vtkTexturedSphereSource::NewInstance ( ) const
void vtkTexturedSphereSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkTexturedSphereSource* vtkTexturedSphereSource::New ( )
static

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

virtual void vtkTexturedSphereSource::SetRadius ( double  )
virtual

Set radius of sphere.

virtual double vtkTexturedSphereSource::GetRadius ( )
virtual

Set radius of sphere.

virtual void vtkTexturedSphereSource::SetThetaResolution ( int  )
virtual

Set the number of points in the longitude direction.

virtual int vtkTexturedSphereSource::GetThetaResolution ( )
virtual

Set the number of points in the longitude direction.

virtual void vtkTexturedSphereSource::SetPhiResolution ( int  )
virtual

Set the number of points in the latitude direction.

virtual int vtkTexturedSphereSource::GetPhiResolution ( )
virtual

Set the number of points in the latitude direction.

virtual void vtkTexturedSphereSource::SetTheta ( double  )
virtual

Set the maximum longitude angle.

virtual double vtkTexturedSphereSource::GetTheta ( )
virtual

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).

int vtkTexturedSphereSource::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

double vtkTexturedSphereSource::Radius
protected

Definition at line 84 of file vtkTexturedSphereSource.h.

double vtkTexturedSphereSource::Theta
protected

Definition at line 85 of file vtkTexturedSphereSource.h.

double vtkTexturedSphereSource::Phi
protected

Definition at line 86 of file vtkTexturedSphereSource.h.

int vtkTexturedSphereSource::ThetaResolution
protected

Definition at line 87 of file vtkTexturedSphereSource.h.

int vtkTexturedSphereSource::PhiResolution
protected

Definition at line 88 of file vtkTexturedSphereSource.h.


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