Emergency 20 Dokumentation  4.2.0
em5::SimpleBarrierTapeMeshGenerator Class Reference

Simple warning tape mesh generator class. More...

#include <SimpleBarrierTapeMeshGenerator.h>

Inheritance diagram for em5::SimpleBarrierTapeMeshGenerator:
qsf::MeshGenerator

Classes

struct  SectionSpline
 

Public Member Functions

 SimpleBarrierTapeMeshGenerator ()
 Default constructor. More...
 
 ~SimpleBarrierTapeMeshGenerator ()
 Destructor. More...
 
bool createMesh (const std::string &ogreMeshName, const SimpleBarrierTapeComponent &barriertapeComponent, uint32 sectionIndex)
 Create a procedural OGRE mesh for the given geometric decal component. More...
 
bool updateMesh (const std::string &ogreMeshName, const SimpleBarrierTapeComponent &barriertapeComponent, uint32 sectionIndex)
 Update a procedural OGRE mesh for the given geometric decal component. More...
 
void buildSectionSpline (const SimpleBarrierTapeComponent &barriertapeComponent, uint32 sectionIndex, SectionSpline &outSpline)
 
void evaluateSectionSpline (const SectionSpline &spline, float t, glm::vec3 &outPosition, glm::vec3 &outDirection)
 
- Public Member Functions inherited from qsf::MeshGenerator
 MeshGenerator ()
 Default constructor. More...
 
 ~MeshGenerator ()
 Destructor. More...
 

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

Simple warning tape mesh generator class.

Constructor & Destructor Documentation

em5::SimpleBarrierTapeMeshGenerator::SimpleBarrierTapeMeshGenerator ( )

Default constructor.

em5::SimpleBarrierTapeMeshGenerator::~SimpleBarrierTapeMeshGenerator ( )

Destructor.

Note
  • Not virtual by intent

Member Function Documentation

void em5::SimpleBarrierTapeMeshGenerator::buildSectionSpline ( const SimpleBarrierTapeComponent barriertapeComponent,
uint32  sectionIndex,
SectionSpline outSpline 
)
bool em5::SimpleBarrierTapeMeshGenerator::createMesh ( const std::string &  ogreMeshName,
const SimpleBarrierTapeComponent barriertapeComponent,
uint32  sectionIndex 
)

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

Parameters
[in]ogreMeshNameUTF-8 name of the OGRE mesh
[in]barrierTapeComponentThe warning tape component containing the hose section to create a mesh for
[in]sectionIndexIndex of the section whose mesh should be created
Returns
"true" if the mesh creating successful, else "false"
void em5::SimpleBarrierTapeMeshGenerator::evaluateSectionSpline ( const SectionSpline spline,
float  t,
glm::vec3 &  outPosition,
glm::vec3 &  outDirection 
)
bool em5::SimpleBarrierTapeMeshGenerator::updateMesh ( const std::string &  ogreMeshName,
const SimpleBarrierTapeComponent barriertapeComponent,
uint32  sectionIndex 
)

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

Parameters
[in]ogreMeshNameUTF-8 name of the OGRE mesh
[in]barrierTapeComponentThe warning tape component containing the hose section to create a mesh for
[in]sectionIndexIndex of the section whose mesh should be created
Returns
"true" if the mesh creating successful, else "false"

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