VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DebugDrawCubeCommand Class Reference

Detailed Description

Renders an axis-aligned cube defined by its min and max corner points

#include <debugRenderCommands.h>

Inheritance diagram for makVre::DebugDrawCubeCommand:
[legend]

Public Member Functions

 DebugDrawCubeCommand (const DtVector &start, const DtVector &end, const DtColor &c, DtColor::Fill fill, bool clip, const double &time)
 
virtual ~DebugDrawCubeCommand () override
 
virtual void draw (DtDebugCanvas &canvas) override
 
- Public Member Functions inherited from makVre::DtDebugDrawCommand
 DtDebugDrawCommand (DtColor color, DtColor::Fill fill, bool clip, const double &time, bool is3D)
 
virtual ~DtDebugDrawCommand ()
 
virtual void reduceTime (double delta)
 
virtual bool ended ()
 
virtual bool get3D ()
 

Protected Attributes

DtVector myStart
 
DtVector myEnd
 
- Protected Attributes inherited from makVre::DtDebugDrawCommand
DtVector myEyepoint
 
DtColor myColor
 
DtColor::Fill myFill
 
double myTime
 
bool myClip
 
bool my3D
 

Constructor & Destructor Documentation

◆ DebugDrawCubeCommand()

makVre::DebugDrawCubeCommand::DebugDrawCubeCommand ( const DtVector & start,
const DtVector & end,
const DtColor & c,
DtColor::Fill fill,
bool clip,
const double & time )

Constructor for cube drawing command.

Parameters
startMinimum corner point of the cube
endMaximum corner point of the cube
cColor of the cube
fillFill mode (solid, wireframe, etc.)
clipWhether to clip the cube against the view frustum
timeDuration in seconds for this command to remain active

◆ ~DebugDrawCubeCommand()

virtual makVre::DebugDrawCubeCommand::~DebugDrawCubeCommand ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ draw()

virtual void makVre::DebugDrawCubeCommand::draw ( DtDebugCanvas & drawList)
overridevirtual

Pure virtual draw method that must be implemented by derived classes.

Parameters
drawListCanvas to draw the debug visual on

Implements makVre::DtDebugDrawCommand.

Member Data Documentation

◆ myStart

DtVector makVre::DebugDrawCubeCommand::myStart
protected

◆ myEnd

DtVector makVre::DebugDrawCubeCommand::myEnd
protected

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