Emergency 20 Dokumentation  4.1.0
Public Member Functions | Protected Attributes | List of all members
qsf::MeshVertexNormalsDebugDrawRequest Class Reference

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

#include <MeshVertexNormalsDebugDrawRequest.h>

Inheritance diagram for qsf::MeshVertexNormalsDebugDrawRequest:
Inheritance graph
[legend]
Collaboration diagram for qsf::MeshVertexNormalsDebugDrawRequest:
Collaboration graph
[legend]

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)

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
qsf::MeshVertexNormalsDebugDrawRequest::~MeshVertexNormalsDebugDrawRequest ( )
inlinevirtual

Destructor.

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
float qsf::MeshVertexNormalsDebugDrawRequest::mLineLength
protected
Ogre::v1::Entity* qsf::MeshVertexNormalsDebugDrawRequest::mOgreEntity
protected

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