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

Detailed Description

Renders a set of triangles defined by a list of vertex points

#include <debugRenderCommands.h>

Inheritance diagram for makVre::DebugDrawTrisCommand:
[legend]

Public Member Functions

 DebugDrawTrisCommand (const std::vector< DtVector > &points, const DtColor &c, DtColor::Fill fill, bool clip, const double &time)
 
virtual ~DebugDrawTrisCommand () 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

std::vector< DtVector > myPoints
 
- Protected Attributes inherited from makVre::DtDebugDrawCommand
DtVector myEyepoint
 
DtColor myColor
 
DtColor::Fill myFill
 
double myTime
 
bool myClip
 
bool my3D
 

Constructor & Destructor Documentation

◆ DebugDrawTrisCommand()

makVre::DebugDrawTrisCommand::DebugDrawTrisCommand ( const std::vector< DtVector > & points,
const DtColor & c,
DtColor::Fill fill,
bool clip,
const double & time )

Constructor for triangle drawing command.

Parameters
pointsList of triangle vertices (should be multiples of 3)
cColor of the triangles
fillFill mode (solid, wireframe, etc.)
clipWhether to clip the triangles against the view frustum
timeDuration in seconds for this command to remain active

◆ ~DebugDrawTrisCommand()

virtual makVre::DebugDrawTrisCommand::~DebugDrawTrisCommand ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ draw()

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

◆ myPoints

std::vector<DtVector> makVre::DebugDrawTrisCommand::myPoints
protected

List of triangle vertices.


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