Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkPlatonicSolidSource Class Reference

#include <vtkPlatonicSolidSource.h>

Inheritance diagram for vtkPlatonicSolidSource:

Inheritance graph
[legend]
Collaboration diagram for vtkPlatonicSolidSource:

Collaboration graph
[legend]
List of all members.

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.

Created by:
  • Schroeder, Will
CVS contributions (if > 5%):
  • Schroeder, Will (98%)
CVS logs (CVSweb):
  • .cxx (/Graphics/vtkPlatonicSolidSource.cxx)
  • .h (/Graphics/vtkPlatonicSolidSource.h)
Tests:
vtkPlatonicSolidSource (Tests)

Definition at line 49 of file vtkPlatonicSolidSource.h.

Public Types

typedef vtkPolyDataSource Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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

vtkPlatonicSolidSourceNew ()
int IsTypeOf (const char *type)
vtkPlatonicSolidSourceSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkPlatonicSolidSource ()
 ~vtkPlatonicSolidSource ()
void Execute ()

Protected Attributes

int SolidType


Member Typedef Documentation

typedef vtkPolyDataSource vtkPlatonicSolidSource::Superclass
 

Reimplemented from vtkPolyDataSource.

Definition at line 53 of file vtkPlatonicSolidSource.h.


Constructor & Destructor Documentation

vtkPlatonicSolidSource::vtkPlatonicSolidSource  )  [inline, protected]
 

Definition at line 73 of file vtkPlatonicSolidSource.h.

References VTK_SOLID_TETRAHEDRON.

vtkPlatonicSolidSource::~vtkPlatonicSolidSource  )  [inline, protected]
 

Definition at line 74 of file vtkPlatonicSolidSource.h.


Member Function Documentation

vtkPlatonicSolidSource* vtkPlatonicSolidSource::New  )  [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

virtual const char* vtkPlatonicSolidSource::GetClassName  )  [virtual]
 

Reimplemented from vtkPolyDataSource.

int vtkPlatonicSolidSource::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataSource.

virtual int vtkPlatonicSolidSource::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataSource.

vtkPlatonicSolidSource* vtkPlatonicSolidSource::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkPolyDataSource.

void vtkPlatonicSolidSource::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 vtkPolyDataSource.

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 60 of file vtkPlatonicSolidSource.h.

References VTK_SOLID_TETRAHEDRON.

void vtkPlatonicSolidSource::SetSolidTypeToCube  )  [inline]
 

Specify the type of PlatonicSolid solid to create.

Definition at line 62 of file vtkPlatonicSolidSource.h.

References VTK_SOLID_CUBE.

void vtkPlatonicSolidSource::SetSolidTypeToOctahedron  )  [inline]
 

Specify the type of PlatonicSolid solid to create.

Definition at line 64 of file vtkPlatonicSolidSource.h.

References VTK_SOLID_OCTAHEDRON.

void vtkPlatonicSolidSource::SetSolidTypeToIcosahedron  )  [inline]
 

Specify the type of PlatonicSolid solid to create.

Definition at line 66 of file vtkPlatonicSolidSource.h.

References VTK_SOLID_ICOSAHEDRON.

void vtkPlatonicSolidSource::SetSolidTypeToDodecahedron  )  [inline]
 

Specify the type of PlatonicSolid solid to create.

Definition at line 68 of file vtkPlatonicSolidSource.h.

References VTK_SOLID_DODECAHEDRON.

void vtkPlatonicSolidSource::Execute  )  [protected, virtual]
 

This method is the old style execute method

Reimplemented from vtkSource.


Member Data Documentation

int vtkPlatonicSolidSource::SolidType [protected]
 

Definition at line 77 of file vtkPlatonicSolidSource.h.


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