|
VR-Engage
2.2
|
Renders a real-time graph to visualize data points over time
#include <debugRenderCommands.h>
Public Member Functions | |
| DebugDrawGraphCommand (const std::string &name, const DtColor &c, const double &time) | |
| virtual | ~DebugDrawGraphCommand () override |
| virtual void | draw (DtDebugCanvas &canvas) override |
| const std::string & | name () |
| void | addPoint (double point) |
| void | setScreenPosition (const DtVector &screenPos) |
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 () |
Static Public Member Functions | |
| static float | theGraphSize () |
Protected Attributes | |
| double | myResetTime |
| std::string | myName |
| std::vector< double > | myPoints |
| int | myCurrentPoint |
| double | myMin |
| double | myMax |
| DtVector | myScreenPosition |
Protected Attributes inherited from makVre::DtDebugDrawCommand | |
| DtVector | myEyepoint |
| DtColor | myColor |
| DtColor::Fill | myFill |
| double | myTime |
| bool | myClip |
| bool | my3D |
| makVre::DebugDrawGraphCommand::DebugDrawGraphCommand | ( | const std::string & | name, |
| const DtColor & | c, | ||
| const double & | time ) |
Constructor for graph drawing command.
| name | Name of the graph |
| c | Color of the graph |
| time | Duration in seconds for this command to remain active |
References name().
|
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.
|
inline |
References myName.
Referenced by DebugDrawGraphCommand().
| void makVre::DebugDrawGraphCommand::addPoint | ( | double | point | ) |
Adds a data point to the graph.
| point | The data point value to add |
|
inline |
References myScreenPosition.
|
inlinestatic |
Gets the default size of the graph.
|
protected |
Time at which the graph should reset.
|
protected |
Name of the graph.
Referenced by name().
|
protected |
Collection of data points to plot.
|
protected |
Current point index.
|
protected |
Minimum value in the graph.
|
protected |
Maximum value in the graph.
|
protected |
Position of the graph on the screen.
Referenced by setScreenPosition().