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

Box volume debug draw request implementation. More...

#include <BoxVolumeDebugDrawRequest.h>

Public Member Functions

 BoxVolumeDebugDrawRequest (const glm::vec3 &center, const glm::quat &rotation, const glm::vec3 &extents, float borderWidth=0.1f, const Color4 &color=Color4::WHITE, float filledOpacity=0.0f)
 Constructor. More...
virtual ~BoxVolumeDebugDrawRequest ()
 Destructor. More...
virtual void applyToObject (DebugDrawObject &debugDrawObject) const override
 Apply this request to a debug draw object instance. More...

Protected Member Functions

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

Protected Attributes

Transform mTransform
float mBorderWidth
Color4 mColor
 Draw color. More...
float mFilledOpacity
 Opacity of filled area. More...

Detailed Description

Box volume debug draw request implementation.

TODO(fw): Parameter "filledOpacity" is not supported yet

Definition at line 39 of file BoxVolumeDebugDrawRequest.h.

Constructor & Destructor Documentation

qsf::BoxVolumeDebugDrawRequest::BoxVolumeDebugDrawRequest ( const glm::vec3 &  center,
const glm::quat &  rotation,
const glm::vec3 &  extents,
float  borderWidth = 0.1f,
const Color4 color = Color4::WHITE,
float  filledOpacity = 0.0f 


[in]centerCenter of the box
[in]rotationOrientation of the box
[in]extentsExtents vector, i.e. full size of the box
[in]borderWidthRelative width of the box's border, between 0.0f and 1.0f
[in]colorDraw color, filled area is drawn in the same color made transparent
[in]filledOpacityOpacity between 0.0f and 1.0f of the inner area; if 0.0f (or below), the inner area will not be drawn at all

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

qsf::BoxVolumeDebugDrawRequest::~BoxVolumeDebugDrawRequest ( )


Definition at line 23 of file BoxVolumeDebugDrawRequest-inl.h.

qsf::BoxVolumeDebugDrawRequest::BoxVolumeDebugDrawRequest ( )

Default constructor creating an illegal state that is only needed for using these requests inside a std::vector

Definition at line 32 of file BoxVolumeDebugDrawRequest-inl.h.

Member Function Documentation

virtual void qsf::BoxVolumeDebugDrawRequest::applyToObject ( DebugDrawObject debugDrawObject) const

Apply this request to a debug draw object instance.

[in]debugDrawObjectDebugDrawObject instance to apply the request to

Implements qsf::DebugDrawRequest.

Member Data Documentation

float qsf::BoxVolumeDebugDrawRequest::mBorderWidth

Definition at line 100 of file BoxVolumeDebugDrawRequest.h.

Color4 qsf::BoxVolumeDebugDrawRequest::mColor

Draw color.

Definition at line 101 of file BoxVolumeDebugDrawRequest.h.

float qsf::BoxVolumeDebugDrawRequest::mFilledOpacity

Opacity of filled area.

Definition at line 102 of file BoxVolumeDebugDrawRequest.h.

Transform qsf::BoxVolumeDebugDrawRequest::mTransform

Definition at line 99 of file BoxVolumeDebugDrawRequest.h.

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