Emergency 2017 Dokumentation  v3.0.1
qsf::TraceDecalMeshGenerator Class Reference

Geometric decal mesh generator class. More...

#include <TraceDecalMeshGenerator.h>

Public Member Functions

 TraceDecalMeshGenerator ()
 Default constructor. More...
 
 ~TraceDecalMeshGenerator ()
 Destructor. More...
 
bool createMesh (const std::string &ogreMeshName, TraceDecalComponent &decalGeometricComponent)
 Create a procedural OGRE mesh for the given geometric decal component. More...
 
- Public Member Functions inherited from qsf::MeshGenerator
 MeshGenerator ()
 Default constructor. More...
 
 ~MeshGenerator ()
 Destructor. More...
 

Friends

class TraceDecalComponent
 

Additional Inherited Members

- Protected Types inherited from qsf::MeshGenerator
typedef std::vector< VertexFormatElementSequentialVertexFormatDeclaration
 
- Protected Member Functions inherited from qsf::MeshGenerator
void createOgreMesh (const std::string &ogreMeshName)
 Create the OGRE mesh by member data. More...
 
bool updateOgreMesh (const std::string &ogreMeshName)
 Update the OGRE mesh by member data. More...
 
- Static Protected Member Functions inherited from qsf::MeshGenerator
static void addVertexElementToVertexDeclaration (const VertexFormatElement &elementFormat, Ogre::v1::VertexDeclaration &ogreVertexDeclaration, size_t &vertexSize)
 
static void writeSingleVertexElementToData (const VertexFormatElement &vfe, uint8 *&targetDataPointer, const float *sourceData)
 
- Protected Attributes inherited from qsf::MeshGenerator
std::vector< RenderVertexmVertices
 
std::vector< RenderSubMeshmRenderSubMesh
 
SequentialVertexFormatDeclaration mVertexFormatDeclaration
 

Detailed Description

Geometric decal mesh generator class.

Todo:
  • TODO(np) In this class we use a mechanism for texture atlas. Someone (maybe mr. ofenberg or mr. wendel) can extract this to an extra class to use it for other cases. :)

Definition at line 48 of file TraceDecalMeshGenerator.h.

Constructor & Destructor Documentation

qsf::TraceDecalMeshGenerator::TraceDecalMeshGenerator ( )

Default constructor.

qsf::TraceDecalMeshGenerator::~TraceDecalMeshGenerator ( )

Destructor.

Note
  • Not virtual by intent

Member Function Documentation

bool qsf::TraceDecalMeshGenerator::createMesh ( const std::string &  ogreMeshName,
TraceDecalComponent decalGeometricComponent 
)

Create a procedural OGRE mesh for the given geometric decal component.

Parameters
[in]ogreMeshNameUTF-8 name of the OGRE mesh
[in]decalGeometricComponentGeometric decal component to procedurally generate the OGRE mesh for
Returns
"true" if the mesh creating successful, else "false"

Friends And Related Function Documentation

friend class TraceDecalComponent
friend

Definition at line 55 of file TraceDecalMeshGenerator.h.


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