Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkRegularPolytopeSource Class Reference

#include <vtkRegularPolytopeSource.h>

Inheritance diagram for vtkRegularPolytopeSource:

Inheritance graph
[legend]
Collaboration diagram for vtkRegularPolytopeSource:

Collaboration graph
[legend]
List of all members.

Detailed Description

Creates a regular polytope (platonic solid).

Author:
Sean McInerney
Version:
Revision
1.4
Date:
Date
2004/08/10 07:37:22
See also:
vtkPolyDataSource

Definition at line 46 of file vtkRegularPolytopeSource.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkRegularPolytopeSource, vtkPolyDataSource)
void PrintSelf (ostream &, vtkIndent)
virtual void SetPolytope (int)
 Set/Get type of undivided geometry.

virtual int GetPolytope ()
 Set/Get type of undivided geometry.

void SetPolytopeToTetrahedron (void)
 Set/Get type of undivided geometry.

void SetPolytopeToHexahedron (void)
 Set/Get type of undivided geometry.

void SetPolytopeToCube (void)
 Set/Get type of undivided geometry.

void SetPolytopeToOctahedron (void)
 Set/Get type of undivided geometry.

void SetPolytopeToIcosahedron (void)
 Set/Get type of undivided geometry.

void SetPolytopeToDodecahedron (void)
 Set/Get type of undivided geometry.

const char * GetPolytopeAsString (void)
 Set/Get type of undivided geometry.

virtual void SetCircumscribedRadius (double)
 Set/Get the distance from the center of each vertex of the polyhedron.

virtual double GetCircumscribedRadius ()
 Set/Get the distance from the center of each vertex of the polyhedron.

virtual void SetCenter (double, double, double)
 Set/Get the center of the polyhedron (Default is 0,0,0).

virtual void SetCenter (double[3])
 Set/Get the center of the polyhedron (Default is 0,0,0).

virtual double * GetCenter ()
 Set/Get the center of the polyhedron (Default is 0,0,0).

virtual void GetCenter (double data[3])
 Set/Get the center of the polyhedron (Default is 0,0,0).

virtual void SetNumberOfSubdivisions (int)
 Number of times to recursively subdivide (approximating a sphere).

virtual int GetNumberOfSubdivisions ()
 Number of times to recursively subdivide (approximating a sphere).

virtual void SetTriangulate (int)
 Toggle triangulation of output mesh.

virtual int GetTriangulate ()
 Toggle triangulation of output mesh.

virtual void TriangulateOn ()
 Toggle triangulation of output mesh.

virtual void TriangulateOff ()
 Toggle triangulation of output mesh.

virtual void SetGenerateNormals (int)
 Toggle retention of vertex normals in the output dataset.

virtual int GetGenerateNormals ()
 Toggle retention of vertex normals in the output dataset.

virtual void GenerateNormalsOn ()
 Toggle retention of vertex normals in the output dataset.

virtual void GenerateNormalsOff ()
 Toggle retention of vertex normals in the output dataset.

virtual void SetGenerateTCoords (int)
 Toggle generation of 2D texture coordinates by mapping to sphere.

virtual int GetGenerateTCoords ()
 Toggle generation of 2D texture coordinates by mapping to sphere.

virtual void GenerateTCoordsOn ()
 Toggle generation of 2D texture coordinates by mapping to sphere.

virtual void GenerateTCoordsOff ()
 Toggle generation of 2D texture coordinates by mapping to sphere.

virtual void SetPreventSeam (int)
 Control how texture coordinates are generated.

virtual int GetPreventSeam ()
 Control how texture coordinates are generated.

virtual void PreventSeamOn ()
 Control how texture coordinates are generated.

virtual void PreventSeamOff ()
 Control how texture coordinates are generated.


Static Public Member Functions

vtkRegularPolytopeSourceNew (void)

Protected Member Functions

 vtkRegularPolytopeSource (void)
 ~vtkRegularPolytopeSource ()
void ExecuteData (vtkDataObject *)
 Execute method that should be used by subclasses of vtkSource.

void PointToTCoord (const double point[3], double tcoord[2])
 Calculate 2D texture coordinate given a 3D point on the sphere.

void SubdivideTriangleBy4 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tcoords, vtkIdType const &id0, vtkIdType const &id1, vtkIdType const &id2, vtkIdType const &depth, vtkIdType &nextId)
void SubdivideTriangleBy4 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tcoords, const vtkIdType cell[3], vtkIdType const &depth, vtkIdType &nextId)
void SubdivideTriangleBy3 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tcoords, vtkIdType const &id0, vtkIdType const &id1, vtkIdType const &id2, vtkIdType const &depth, vtkIdType &nextId)
void SubdivideTriangleBy3 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tcoords, const vtkIdType cell[3], vtkIdType const &depth, vtkIdType &nextId)
void SubdivideQuadBy4 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tCoords, vtkIdType const &id0, vtkIdType const &id1, vtkIdType const &id2, vtkIdType const &id3, vtkIdType const &depth, vtkIdType &nextId)
void SubdivideQuadBy4 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tCoords, const vtkIdType cell[4], vtkIdType const &depth, vtkIdType &nextId)
void SubdivideQuadBy2 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tCoords, vtkIdType const &id0, vtkIdType const &id1, vtkIdType const &id2, vtkIdType const &id3, vtkIdType const &depth, vtkIdType &nextId)
void SubdivideQuadBy2 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tCoords, const vtkIdType cell[4], vtkIdType const &depth, vtkIdType &nextId)
void SubdividePentagonBy5 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tCoords, vtkIdType const &id0, vtkIdType const &id1, vtkIdType const &id2, vtkIdType const &id3, vtkIdType const &id4, vtkIdType const &depth, vtkIdType &nextId)
void SubdividePentagonBy5 (vtkPoints *points, vtkCellArray *polys, vtkFloatArray *normals, vtkFloatArray *tCoords, const vtkIdType cell[5], vtkIdType const &depth, vtkIdType &nextId)

Protected Attributes

int Polytope
double CircumscribedRadius
double Center [3]
int NumberOfSubdivisions
int Triangulate
int GenerateNormals
int GenerateTCoords
int PreventSeam


Constructor & Destructor Documentation

vtkRegularPolytopeSource::vtkRegularPolytopeSource void   )  [protected]
 

vtkRegularPolytopeSource::~vtkRegularPolytopeSource  )  [inline, protected]
 

Definition at line 127 of file vtkRegularPolytopeSource.h.


Member Function Documentation

void vtkRegularPolytopeSource::ExecuteData vtkDataObject  )  [protected, virtual]
 

Execute method that should be used by subclasses of vtkSource.

Reimplemented from vtkSource.

virtual void vtkRegularPolytopeSource::GenerateNormalsOff  )  [virtual]
 

Toggle retention of vertex normals in the output dataset.

virtual void vtkRegularPolytopeSource::GenerateNormalsOn  )  [virtual]
 

Toggle retention of vertex normals in the output dataset.

virtual void vtkRegularPolytopeSource::GenerateTCoordsOff  )  [virtual]
 

Toggle generation of 2D texture coordinates by mapping to sphere.

virtual void vtkRegularPolytopeSource::GenerateTCoordsOn  )  [virtual]
 

Toggle generation of 2D texture coordinates by mapping to sphere.

virtual void vtkRegularPolytopeSource::GetCenter double  data[3]  )  [virtual]
 

Set/Get the center of the polyhedron (Default is 0,0,0).

virtual double* vtkRegularPolytopeSource::GetCenter  )  [virtual]
 

Set/Get the center of the polyhedron (Default is 0,0,0).

virtual double vtkRegularPolytopeSource::GetCircumscribedRadius  )  [virtual]
 

Set/Get the distance from the center of each vertex of the polyhedron.

virtual int vtkRegularPolytopeSource::GetGenerateNormals  )  [virtual]
 

Toggle retention of vertex normals in the output dataset.

virtual int vtkRegularPolytopeSource::GetGenerateTCoords  )  [virtual]
 

Toggle generation of 2D texture coordinates by mapping to sphere.

virtual int vtkRegularPolytopeSource::GetNumberOfSubdivisions  )  [virtual]
 

Number of times to recursively subdivide (approximating a sphere).

virtual int vtkRegularPolytopeSource::GetPolytope  )  [virtual]
 

Set/Get type of undivided geometry.

const char* vtkRegularPolytopeSource::GetPolytopeAsString void   ) 
 

Set/Get type of undivided geometry.

virtual int vtkRegularPolytopeSource::GetPreventSeam  )  [virtual]
 

Control how texture coordinates are generated.

If PreventSeam is set, the S-coord. ranges from 0->1 and 1->0 corresponding to theta angle variation between 0->180 and 180->0 degrees. Otherwise, the S-coord. ranges from 0->1 between 0->360 degrees.

virtual int vtkRegularPolytopeSource::GetTriangulate  )  [virtual]
 

Toggle triangulation of output mesh.

vtkRegularPolytopeSource* vtkRegularPolytopeSource::New void   )  [static]
 

Reimplemented from vtkObject.

void vtkRegularPolytopeSource::PointToTCoord const double  point[3],
double  tcoord[2]
[protected]
 

Calculate 2D texture coordinate given a 3D point on the sphere.

virtual void vtkRegularPolytopeSource::PreventSeamOff  )  [virtual]
 

Control how texture coordinates are generated.

If PreventSeam is set, the S-coord. ranges from 0->1 and 1->0 corresponding to theta angle variation between 0->180 and 180->0 degrees. Otherwise, the S-coord. ranges from 0->1 between 0->360 degrees.

virtual void vtkRegularPolytopeSource::PreventSeamOn  )  [virtual]
 

Control how texture coordinates are generated.

If PreventSeam is set, the S-coord. ranges from 0->1 and 1->0 corresponding to theta angle variation between 0->180 and 180->0 degrees. Otherwise, the S-coord. ranges from 0->1 between 0->360 degrees.

void vtkRegularPolytopeSource::PrintSelf ostream &  ,
vtkIndent 
[virtual]
 

Reimplemented from vtkPolyDataSource.

virtual void vtkRegularPolytopeSource::SetCenter double  [3]  )  [virtual]
 

Set/Get the center of the polyhedron (Default is 0,0,0).

virtual void vtkRegularPolytopeSource::SetCenter double  ,
double  ,
double 
[virtual]
 

Set/Get the center of the polyhedron (Default is 0,0,0).

virtual void vtkRegularPolytopeSource::SetCircumscribedRadius double   )  [virtual]
 

Set/Get the distance from the center of each vertex of the polyhedron.

virtual void vtkRegularPolytopeSource::SetGenerateNormals int   )  [virtual]
 

Toggle retention of vertex normals in the output dataset.

virtual void vtkRegularPolytopeSource::SetGenerateTCoords int   )  [virtual]
 

Toggle generation of 2D texture coordinates by mapping to sphere.

virtual void vtkRegularPolytopeSource::SetNumberOfSubdivisions int   )  [virtual]
 

Number of times to recursively subdivide (approximating a sphere).

virtual void vtkRegularPolytopeSource::SetPolytope int   )  [virtual]
 

Set/Get type of undivided geometry.

void vtkRegularPolytopeSource::SetPolytopeToCube void   )  [inline]
 

Set/Get type of undivided geometry.

Definition at line 64 of file vtkRegularPolytopeSource.h.

References VTK_HEXAHEDRON_SOURCE.

void vtkRegularPolytopeSource::SetPolytopeToDodecahedron void   )  [inline]
 

Set/Get type of undivided geometry.

Definition at line 70 of file vtkRegularPolytopeSource.h.

References VTK_DODECAHEDRON_SOURCE.

void vtkRegularPolytopeSource::SetPolytopeToHexahedron void   )  [inline]
 

Set/Get type of undivided geometry.

Definition at line 62 of file vtkRegularPolytopeSource.h.

References VTK_HEXAHEDRON_SOURCE.

void vtkRegularPolytopeSource::SetPolytopeToIcosahedron void   )  [inline]
 

Set/Get type of undivided geometry.

Definition at line 68 of file vtkRegularPolytopeSource.h.

References VTK_ICOSAHEDRON_SOURCE.

void vtkRegularPolytopeSource::SetPolytopeToOctahedron void   )  [inline]
 

Set/Get type of undivided geometry.

Definition at line 66 of file vtkRegularPolytopeSource.h.

References VTK_OCTAHEDRON_SOURCE.

void vtkRegularPolytopeSource::SetPolytopeToTetrahedron void   )  [inline]
 

Set/Get type of undivided geometry.

Definition at line 60 of file vtkRegularPolytopeSource.h.

References VTK_TETRAHEDRON_SOURCE.

virtual void vtkRegularPolytopeSource::SetPreventSeam int   )  [virtual]
 

Control how texture coordinates are generated.

If PreventSeam is set, the S-coord. ranges from 0->1 and 1->0 corresponding to theta angle variation between 0->180 and 180->0 degrees. Otherwise, the S-coord. ranges from 0->1 between 0->360 degrees.

virtual void vtkRegularPolytopeSource::SetTriangulate int   )  [virtual]
 

Toggle triangulation of output mesh.

void vtkRegularPolytopeSource::SubdividePentagonBy5 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tCoords,
const vtkIdType  cell[5],
vtkIdType const &  depth,
vtkIdType nextId
[inline, protected]
 

Definition at line 305 of file vtkRegularPolytopeSource.h.

References SubdividePentagonBy5().

void vtkRegularPolytopeSource::SubdividePentagonBy5 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tCoords,
vtkIdType const &  id0,
vtkIdType const &  id1,
vtkIdType const &  id2,
vtkIdType const &  id3,
vtkIdType const &  id4,
vtkIdType const &  depth,
vtkIdType nextId
[protected]
 

Referenced by SubdividePentagonBy5().

void vtkRegularPolytopeSource::SubdivideQuadBy2 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tCoords,
const vtkIdType  cell[4],
vtkIdType const &  depth,
vtkIdType nextId
[inline, protected]
 

Definition at line 290 of file vtkRegularPolytopeSource.h.

References SubdivideQuadBy2().

void vtkRegularPolytopeSource::SubdivideQuadBy2 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tCoords,
vtkIdType const &  id0,
vtkIdType const &  id1,
vtkIdType const &  id2,
vtkIdType const &  id3,
vtkIdType const &  depth,
vtkIdType nextId
[protected]
 

Referenced by SubdivideQuadBy2().

void vtkRegularPolytopeSource::SubdivideQuadBy4 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tCoords,
const vtkIdType  cell[4],
vtkIdType const &  depth,
vtkIdType nextId
[inline, protected]
 

Definition at line 275 of file vtkRegularPolytopeSource.h.

References SubdivideQuadBy4().

void vtkRegularPolytopeSource::SubdivideQuadBy4 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tCoords,
vtkIdType const &  id0,
vtkIdType const &  id1,
vtkIdType const &  id2,
vtkIdType const &  id3,
vtkIdType const &  depth,
vtkIdType nextId
[protected]
 

Referenced by SubdivideQuadBy4().

void vtkRegularPolytopeSource::SubdivideTriangleBy3 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tcoords,
const vtkIdType  cell[3],
vtkIdType const &  depth,
vtkIdType nextId
[inline, protected]
 

Definition at line 261 of file vtkRegularPolytopeSource.h.

References SubdivideTriangleBy3().

void vtkRegularPolytopeSource::SubdivideTriangleBy3 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tcoords,
vtkIdType const &  id0,
vtkIdType const &  id1,
vtkIdType const &  id2,
vtkIdType const &  depth,
vtkIdType nextId
[protected]
 

Referenced by SubdivideTriangleBy3().

void vtkRegularPolytopeSource::SubdivideTriangleBy4 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tcoords,
const vtkIdType  cell[3],
vtkIdType const &  depth,
vtkIdType nextId
[inline, protected]
 

Definition at line 247 of file vtkRegularPolytopeSource.h.

References SubdivideTriangleBy4().

void vtkRegularPolytopeSource::SubdivideTriangleBy4 vtkPoints points,
vtkCellArray polys,
vtkFloatArray normals,
vtkFloatArray tcoords,
vtkIdType const &  id0,
vtkIdType const &  id1,
vtkIdType const &  id2,
vtkIdType const &  depth,
vtkIdType nextId
[protected]
 

Referenced by SubdivideTriangleBy4().

virtual void vtkRegularPolytopeSource::TriangulateOff  )  [virtual]
 

Toggle triangulation of output mesh.

virtual void vtkRegularPolytopeSource::TriangulateOn  )  [virtual]
 

Toggle triangulation of output mesh.

vtkRegularPolytopeSource::vtkTypeRevisionMacro vtkRegularPolytopeSource  ,
vtkPolyDataSource 
 


Member Data Documentation

double vtkRegularPolytopeSource::Center[3] [protected]
 

Definition at line 233 of file vtkRegularPolytopeSource.h.

double vtkRegularPolytopeSource::CircumscribedRadius [protected]
 

Definition at line 232 of file vtkRegularPolytopeSource.h.

int vtkRegularPolytopeSource::GenerateNormals [protected]
 

Definition at line 236 of file vtkRegularPolytopeSource.h.

int vtkRegularPolytopeSource::GenerateTCoords [protected]
 

Definition at line 237 of file vtkRegularPolytopeSource.h.

int vtkRegularPolytopeSource::NumberOfSubdivisions [protected]
 

Definition at line 234 of file vtkRegularPolytopeSource.h.

int vtkRegularPolytopeSource::Polytope [protected]
 

Definition at line 231 of file vtkRegularPolytopeSource.h.

int vtkRegularPolytopeSource::PreventSeam [protected]
 

Definition at line 238 of file vtkRegularPolytopeSource.h.

int vtkRegularPolytopeSource::Triangulate [protected]
 

Definition at line 235 of file vtkRegularPolytopeSource.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 03:44:41 2004 for vtkExtensions by doxygen 1.3.7