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

Box volume debug draw request implementation. More...

#include <BoxVolumeDebugDrawRequest.h>

Inheritance diagram for qsf::BoxVolumeDebugDrawRequest:
Inheritance graph
Collaboration diagram for qsf::BoxVolumeDebugDrawRequest:
Collaboration graph

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

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


qsf::BoxVolumeDebugDrawRequest::BoxVolumeDebugDrawRequest ( )

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

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
Color4 qsf::BoxVolumeDebugDrawRequest::mColor

Draw color.

float qsf::BoxVolumeDebugDrawRequest::mFilledOpacity

Opacity of filled area.

Transform qsf::BoxVolumeDebugDrawRequest::mTransform

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