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

Segment debug draw request implementation. More...

#include <SegmentDebugDrawRequest.h>

Public Member Functions

 SegmentDebugDrawRequest (const Segment &segment, const Color4 &color=Color4::WHITE)
 Constructor. More...
 
virtual ~SegmentDebugDrawRequest ()
 Destructor. More...
 
virtual void applyToObject (DebugDrawObject &debugDrawObject) const override
 Apply this request to a debug draw object instance. More...
 

Protected Attributes

Segment mSegment
 The line segment to draw. More...
 
Color4 mColor
 Draw color. More...
 

Additional Inherited Members

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

Detailed Description

Segment 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.

Definition at line 37 of file SegmentDebugDrawRequest.h.

Constructor & Destructor Documentation

qsf::SegmentDebugDrawRequest::SegmentDebugDrawRequest ( const Segment segment,
const Color4 color = Color4::WHITE 
)
inline

Constructor.

Parameters
[in]segmentthe segment to draw
[in]colorDraw color

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

qsf::SegmentDebugDrawRequest::~SegmentDebugDrawRequest ( )
inlinevirtual

Destructor.

Definition at line 21 of file SegmentDebugDrawRequest-inl.h.

Member Function Documentation

virtual void qsf::SegmentDebugDrawRequest::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::SegmentDebugDrawRequest::mColor
protected

Draw color.

Definition at line 82 of file SegmentDebugDrawRequest.h.

Segment qsf::SegmentDebugDrawRequest::mSegment
protected

The line segment to draw.

Definition at line 81 of file SegmentDebugDrawRequest.h.


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