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

oxygen::StdMeshImporter Class Reference

MeshImporter that generates a standard set of meshes. More...

#include <stdmeshimporter.h>

Inheritance diagram for oxygen::StdMeshImporter:

Inheritance graph
[legend]
Collaboration diagram for oxygen::StdMeshImporter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StdMeshImporter ()
virtual ~StdMeshImporter ()
virtual boost::shared_ptr<
TriMesh
ImportMesh (const std::string &name, const zeitgeist::ParameterList &parameter)
 generates a mesh referenced by the given name and optional list of parameters
virtual std::string MangleName (const std::string &name, const zeitgeist::ParameterList &parameter)
 returns a unique name for each parameterized capped cylinder mesh, and

Protected Member Functions

boost::shared_ptr< TriMeshUnitSphereMesh ()
 constructs a unit sphere
boost::shared_ptr< TriMeshUnitBoxMesh ()
 constructs a unit box
boost::shared_ptr< TriMeshUnitCCylinder (const zeitgeist::ParameterList &parameter)
 constructs a unit capped cylinder

Detailed Description

MeshImporter that generates a standard set of meshes.

These are spheres, boxes and capped cylinders.

Definition at line 32 of file stdmeshimporter.h.


Constructor & Destructor Documentation

StdMeshImporter::StdMeshImporter  ) 
 

Definition at line 33 of file stdmeshimporter.cpp.

StdMeshImporter::~StdMeshImporter  )  [virtual]
 

Definition at line 37 of file stdmeshimporter.cpp.


Member Function Documentation

shared_ptr< TriMesh > StdMeshImporter::ImportMesh const std::string &  name,
const zeitgeist::ParameterList parameter
[virtual]
 

generates a mesh referenced by the given name and optional list of parameters

Definition at line 46 of file stdmeshimporter.cpp.

References gBoxStr, gCCylinderStr, gSphereStr, UnitBoxMesh(), UnitCCylinder(), and UnitSphereMesh().

Here is the call graph for this function:

virtual std::string oxygen::StdMeshImporter::MangleName const std::string &  name,
const zeitgeist::ParameterList parameter
[virtual]
 

returns a unique name for each parameterized capped cylinder mesh, and

Parameters:
name otherwise

Reimplemented from oxygen::MeshImporter.

Referenced by UnitCCylinder().

shared_ptr< TriMesh > StdMeshImporter::UnitBoxMesh  )  [protected]
 

constructs a unit box

Definition at line 214 of file stdmeshimporter.cpp.

References gBoxFaces, gBoxNormals, gBoxTexCoords, gBoxVertices, gNumBoxFaces, and gNumBoxVertices.

Referenced by ImportMesh().

shared_ptr< TriMesh > StdMeshImporter::UnitCCylinder const zeitgeist::ParameterList parameter  )  [protected]
 

constructs a unit capped cylinder

Definition at line 275 of file stdmeshimporter.cpp.

References AddVertex(), salt::g2PI, salt::gCos(), zeitgeist::Object::GetLog(), zeitgeist::ParameterList::GetSize(), zeitgeist::ParameterList::GetValue(), salt::gSin(), and MangleName().

Referenced by ImportMesh().

Here is the call graph for this function:

shared_ptr< TriMesh > StdMeshImporter::UnitSphereMesh  )  [protected]
 

constructs a unit sphere

Definition at line 145 of file stdmeshimporter.cpp.

References gNumSphereFaces, gNumSphereVertices, gSphereFaces, and gSphereVertices.

Referenced by ImportMesh().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:44:40 2006 for rcssserver3d by  doxygen 1.4.4