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

Detailed Description

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>

Inheritance diagram for makVre::DebugDrawSphereCommand:
[legend]

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
 

Constructor & Destructor Documentation

◆ DebugDrawSphereCommand()

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.

Parameters
positionCenter position of the sphere
radiusRadius of the sphere
cColor of the sphere
fillFill mode (solid, wireframe, etc.)
clipWhether to clip the sphere against the view frustum
timeDuration in seconds for this command to remain active

◆ ~DebugDrawSphereCommand()

virtual makVre::DebugDrawSphereCommand::~DebugDrawSphereCommand ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ draw()

virtual void makVre::DebugDrawSphereCommand::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

◆ myPosition

DtVector makVre::DebugDrawSphereCommand::myPosition
protected

Center position of the sphere.

◆ myRadius

double makVre::DebugDrawSphereCommand::myRadius
protected

Radius of the sphere.


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