VTK
|
produce polygonal Platonic solids More...
#include <vtkPlatonicSolidSource.h>
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPlatonicSolidSource * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetSolidType (int) |
virtual int | GetSolidType () |
void | SetSolidTypeToTetrahedron () |
void | SetSolidTypeToCube () |
void | SetSolidTypeToOctahedron () |
void | SetSolidTypeToIcosahedron () |
void | SetSolidTypeToDodecahedron () |
virtual void | SetOutputPointsPrecision (int) |
virtual int | GetOutputPointsPrecision () |
Static Public Member Functions | |
static vtkPlatonicSolidSource * | New () |
static int | IsTypeOf (const char *type) |
static vtkPlatonicSolidSource * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPlatonicSolidSource () | |
~vtkPlatonicSolidSource () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
int | SolidType |
int | OutputPointsPrecision |
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.
Definition at line 40 of file vtkPlatonicSolidSource.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 44 of file vtkPlatonicSolidSource.h.
vtkPlatonicSolidSource::vtkPlatonicSolidSource | ( | ) | [protected] |
vtkPlatonicSolidSource::~vtkPlatonicSolidSource | ( | ) | [inline, protected] |
Definition at line 74 of file vtkPlatonicSolidSource.h.
static vtkPlatonicSolidSource* vtkPlatonicSolidSource::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataAlgorithm.
static int vtkPlatonicSolidSource::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 vtkPlatonicSolidSource::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.
static vtkPlatonicSolidSource* vtkPlatonicSolidSource::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkPlatonicSolidSource::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
Reimplemented from vtkPolyDataAlgorithm.
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 vtkPolyDataAlgorithm.
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 void vtkPlatonicSolidSource::SetOutputPointsPrecision | ( | int | ) | [virtual] |
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.
virtual int vtkPlatonicSolidSource::GetOutputPointsPrecision | ( | ) | [virtual] |
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.
virtual int vtkPlatonicSolidSource::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.
int vtkPlatonicSolidSource::SolidType [protected] |
Definition at line 77 of file vtkPlatonicSolidSource.h.
int vtkPlatonicSolidSource::OutputPointsPrecision [protected] |
Definition at line 78 of file vtkPlatonicSolidSource.h.