|
VR-Engage
2.2
|
This abstract base class defines the interface for all debug drawing commands. It provides common functionality for handling color, fill mode, clipping, and lifetime management of debug visuals.
#include <debugRenderer.h>
Public Member Functions | |
| DtDebugDrawCommand (DtColor color, DtColor::Fill fill, bool clip, const double &time, bool is3D) | |
| virtual | ~DtDebugDrawCommand () |
| virtual void | draw (DtDebugCanvas &drawList)=0 |
| virtual void | reduceTime (double delta) |
| virtual bool | ended () |
| virtual bool | get3D () |
Protected Attributes | |
| DtVector | myEyepoint |
| DtColor | myColor |
| DtColor::Fill | myFill |
| double | myTime |
| bool | myClip |
| bool | my3D |
|
inline |
Constructor for debug draw commands.
| color | Color of the debug visual |
| fill | Fill mode (solid, wireframe, etc.) |
| clip | Whether to clip against the view frustum |
| time | Duration in seconds for this command to remain active |
| is3D | Whether this is a 3D or 2D debug visual |
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Pure virtual draw method that must be implemented by derived classes.
| drawList | Canvas to draw the debug visual on |
Implemented in makVre::DebugDrawCubeCommand, makVre::DebugDrawGraphCommand, makVre::DebugDrawLineCommand, makVre::DebugDrawSphereCommand, makVre::DebugDrawText2dCommand, makVre::DebugDrawText3dCommand, makVre::DebugDrawTextPanelCommand, and makVre::DebugDrawTrisCommand.
|
inlinevirtual |
Reduces the remaining display time for this command.
| delta | Time in seconds to subtract from the remaining time |
References myTime.
|
inlinevirtual |
Checks if this command has expired.
References myTime.
|
inlinevirtual |
|
protected |
Eye position for view-dependent debug visuals.
|
protected |
Color of the debug visual.
Referenced by DtDebugDrawCommand().
|
protected |
Fill mode for the debug visual.
Referenced by DtDebugDrawCommand().
|
protected |
Remaining time in seconds for display.
Referenced by DtDebugDrawCommand(), ended(), and reduceTime().
|
protected |
Whether to clip against the view frustum.
Referenced by DtDebugDrawCommand().
|
protected |
Whether this is a 3D visual.
Referenced by DtDebugDrawCommand(), and get3D().