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

Detailed Description

Renders a straight line between two points

#include <debugRenderCommands.h>

Inheritance diagram for makVre::DebugDrawLineCommand:
[legend]

Public Member Functions

 DebugDrawLineCommand (const DtVector &start, const DtVector &end, const DtColor &c, bool clip, const double &time)
 
virtual ~DebugDrawLineCommand () 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

◆ DebugDrawLineCommand()

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

Constructor for line drawing command.

Parameters
startStart point of the line
endEnd point of the line
cColor of the line
clipWhether to clip the line against the view frustum
timeDuration in seconds for this command to remain active

◆ ~DebugDrawLineCommand()

virtual makVre::DebugDrawLineCommand::~DebugDrawLineCommand ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ draw()

virtual void makVre::DebugDrawLineCommand::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::DebugDrawLineCommand::myStart
protected

◆ myEnd

DtVector makVre::DebugDrawLineCommand::myEnd
protected

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