|
VR-Engage
2.2
|
Command for drawing a debug sphere in 3D space
Renders a sphere at the specified position with the given radius and color
#include <debugRenderCommands.h>
Public Member Functions | |
| DebugDrawSphereCommand (const DtVector &position, const double &radius, const DtColor &c, DtColor::Fill fill, bool clip, const double &time) | |
| virtual | ~DebugDrawSphereCommand () 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 | myPosition |
| double | myRadius |
Protected Attributes inherited from makVre::DtDebugDrawCommand | |
| DtVector | myEyepoint |
| DtColor | myColor |
| DtColor::Fill | myFill |
| double | myTime |
| bool | myClip |
| bool | my3D |
| makVre::DebugDrawSphereCommand::DebugDrawSphereCommand | ( | const DtVector & | position, |
| const double & | radius, | ||
| const DtColor & | c, | ||
| DtColor::Fill | fill, | ||
| bool | clip, | ||
| const double & | time ) |
Constructor for sphere drawing command.
| position | Center position of the sphere |
| radius | Radius of the sphere |
| c | Color of the sphere |
| fill | Fill mode (solid, wireframe, etc.) |
| clip | Whether to clip the sphere against the view frustum |
| time | Duration in seconds for this command to remain active |
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Pure virtual draw method that must be implemented by derived classes.
| drawList | Canvas to draw the debug visual on |
Implements makVre::DtDebugDrawCommand.
|
protected |
Center position of the sphere.
|
protected |
Radius of the sphere.