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

Detailed Description

Renders text at a specific 3D position in world space

#include <debugRenderCommands.h>

Inheritance diagram for makVre::DebugDrawText3dCommand:
[legend]

Public Member Functions

 DebugDrawText3dCommand (const DtVector &position, const std::string &text, const DtColor &c, bool clip, const double &time)
 
virtual ~DebugDrawText3dCommand () 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
 
std::string myText
 
- Protected Attributes inherited from makVre::DtDebugDrawCommand
DtVector myEyepoint
 
DtColor myColor
 
DtColor::Fill myFill
 
double myTime
 
bool myClip
 
bool my3D
 

Constructor & Destructor Documentation

◆ DebugDrawText3dCommand()

makVre::DebugDrawText3dCommand::DebugDrawText3dCommand ( const DtVector & position,
const std::string & text,
const DtColor & c,
bool clip,
const double & time )

Constructor for 3D text drawing command.

Parameters
positionPosition in 3D space where the text should appear
textThe text to display
cColor of the text
clipWhether to clip the text against the view frustum
timeDuration in seconds for this command to remain active

◆ ~DebugDrawText3dCommand()

virtual makVre::DebugDrawText3dCommand::~DebugDrawText3dCommand ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ draw()

virtual void makVre::DebugDrawText3dCommand::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::DebugDrawText3dCommand::myPosition
protected

◆ myText

std::string makVre::DebugDrawText3dCommand::myText
protected

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