#include <stdmeshimporter.h>
Inheritance diagram for oxygen::StdMeshImporter:
Public Member Functions | |
StdMeshImporter () | |
virtual | ~StdMeshImporter () |
virtual boost::shared_ptr< TriMesh > | ImportMesh (const std::string &name, const zeitgeist::ParameterList ¶meter) |
generates a mesh referenced by the given name and optional list of parameters | |
virtual std::string | MangleName (const std::string &name, const zeitgeist::ParameterList ¶meter) |
returns a unique name for each parameterized capped cylinder mesh, and | |
Protected Member Functions | |
boost::shared_ptr< TriMesh > | UnitSphereMesh () |
constructs a unit sphere | |
boost::shared_ptr< TriMesh > | UnitBoxMesh () |
constructs a unit box | |
boost::shared_ptr< TriMesh > | UnitCCylinder (const zeitgeist::ParameterList ¶meter) |
constructs a unit capped cylinder |
These are spheres, boxes and capped cylinders.
Definition at line 32 of file stdmeshimporter.h.
|
Definition at line 33 of file stdmeshimporter.cpp. |
|
Definition at line 37 of file stdmeshimporter.cpp. |
|
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: ![]() |
|
returns a unique name for each parameterized capped cylinder mesh, and
Reimplemented from oxygen::MeshImporter. Referenced by UnitCCylinder(). |
|
constructs a unit box
Definition at line 214 of file stdmeshimporter.cpp. References gBoxFaces, gBoxNormals, gBoxTexCoords, gBoxVertices, gNumBoxFaces, and gNumBoxVertices. Referenced by ImportMesh(). |
|
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: ![]() |
|
constructs a unit sphere
Definition at line 145 of file stdmeshimporter.cpp. References gNumSphereFaces, gNumSphereVertices, gSphereFaces, and gSphereVertices. Referenced by ImportMesh(). |