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

Mesh vertex normals debug draw request implementation. More...

#include <MeshVertexNormalsDebugDrawRequest.h>

Public Member Functions

 MeshVertexNormalsDebugDrawRequest (Ogre::v1::Entity &ogreEntity, float lineLength, const Color4 &color=Color4::WHITE)
 Constructor. More...
 
virtual ~MeshVertexNormalsDebugDrawRequest ()
 Destructor. More...
 
virtual void applyToObject (DebugDrawObject &debugDrawObject) const override
 Apply this request to a debug draw object instance. More...
 

Protected Attributes

Ogre::v1::Entity * mOgreEntity
 
float mLineLength
 
Color4 mColor
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::DebugDrawRequest
 DebugDrawRequest ()
 Constructor. More...
 
virtual ~DebugDrawRequest ()
 Destructor. More...
 

Detailed Description

Mesh vertex normals debug draw request implementation.

Todo:
  • TODO(vs) Uses a probably non portable friend declaration to hide an ugly default constructor creating an illegal state temporarily when used inside a std::vector.
  • TODO(co) Ugly hacked together for the first playable of EMERGENCY 5 (we required a way to visualize the vertex normals of vegetation meshes which are using custom normals)

Definition at line 49 of file MeshVertexNormalsDebugDrawRequest.h.

Constructor & Destructor Documentation

qsf::MeshVertexNormalsDebugDrawRequest::MeshVertexNormalsDebugDrawRequest ( Ogre::v1::Entity &  ogreEntity,
float  lineLength,
const Color4 color = Color4::WHITE 
)
inline

Constructor.

Parameters
[in]ogreEntityOGRE entity the mesh vertex normals should be shown from
[in]lineLengthLine length
[in]colorDraw color

Definition at line 14 of file MeshVertexNormalsDebugDrawRequest-inl.h.

qsf::MeshVertexNormalsDebugDrawRequest::~MeshVertexNormalsDebugDrawRequest ( )
inlinevirtual

Destructor.

Definition at line 22 of file MeshVertexNormalsDebugDrawRequest-inl.h.

Member Function Documentation

virtual void qsf::MeshVertexNormalsDebugDrawRequest::applyToObject ( DebugDrawObject debugDrawObject) const
overridevirtual

Apply this request to a debug draw object instance.

Parameters
[in]debugDrawObjectDebugDrawObject instance to apply the request to

Implements qsf::DebugDrawRequest.

Member Data Documentation

Color4 qsf::MeshVertexNormalsDebugDrawRequest::mColor
protected

Definition at line 97 of file MeshVertexNormalsDebugDrawRequest.h.

float qsf::MeshVertexNormalsDebugDrawRequest::mLineLength
protected

Definition at line 96 of file MeshVertexNormalsDebugDrawRequest.h.

Ogre::v1::Entity* qsf::MeshVertexNormalsDebugDrawRequest::mOgreEntity
protected

Definition at line 95 of file MeshVertexNormalsDebugDrawRequest.h.


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