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
vtkPlatonicSolidSource Class Reference

produce polygonal Platonic solids More...

#include <vtkPlatonicSolidSource.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPlatonicSolidSourceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetSolidType (int)
 
virtual int GetSolidType ()
 
void SetSolidTypeToTetrahedron ()
 
void SetSolidTypeToCube ()
 
void SetSolidTypeToOctahedron ()
 
void SetSolidTypeToIcosahedron ()
 
void SetSolidTypeToDodecahedron ()
 

Static Public Member Functions

static vtkPlatonicSolidSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPlatonicSolidSourceSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkPlatonicSolidSource ()
 
 ~vtkPlatonicSolidSource ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

int SolidType
 

Detailed Description

produce polygonal Platonic solids

vtkPlatonicSolidSource can generate each of the five Platonic solids: tetrahedron, cube, octahedron, icosahedron, and dodecahedron. Each of the solids is placed inside a sphere centered at the origin with radius 1.0. To use this class, simply specify the solid to create. Note that this source object creates cell scalars that are (integral value) face numbers.

Tests:
vtkPlatonicSolidSource (Tests)

Definition at line 40 of file vtkPlatonicSolidSource.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkPlatonicSolidSource::Superclass

Definition at line 44 of file vtkPlatonicSolidSource.h.

Constructor & Destructor Documentation

vtkPlatonicSolidSource::vtkPlatonicSolidSource ( )
protected
vtkPlatonicSolidSource::~vtkPlatonicSolidSource ( )
inlineprotected

Definition at line 65 of file vtkPlatonicSolidSource.h.

Member Function Documentation

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

Specify the type of PlatonicSolid solid to create.

virtual int vtkPlatonicSolidSource::GetSolidType ( )
virtual

Specify the type of PlatonicSolid solid to create.

void vtkPlatonicSolidSource::SetSolidTypeToTetrahedron ( )
inline

Specify the type of PlatonicSolid solid to create.

Definition at line 51 of file vtkPlatonicSolidSource.h.

void vtkPlatonicSolidSource::SetSolidTypeToCube ( )
inline

Specify the type of PlatonicSolid solid to create.

Definition at line 53 of file vtkPlatonicSolidSource.h.

void vtkPlatonicSolidSource::SetSolidTypeToOctahedron ( )
inline

Specify the type of PlatonicSolid solid to create.

Definition at line 55 of file vtkPlatonicSolidSource.h.

void vtkPlatonicSolidSource::SetSolidTypeToIcosahedron ( )
inline

Specify the type of PlatonicSolid solid to create.

Definition at line 57 of file vtkPlatonicSolidSource.h.

void vtkPlatonicSolidSource::SetSolidTypeToDodecahedron ( )
inline

Specify the type of PlatonicSolid solid to create.

Definition at line 59 of file vtkPlatonicSolidSource.h.

virtual int vtkPlatonicSolidSource::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Member Data Documentation

int vtkPlatonicSolidSource::SolidType
protected

Definition at line 68 of file vtkPlatonicSolidSource.h.


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