Robowflex
v0.1
Making MoveIt Easy
|
Line plot element. Displays an updated line graph of data. More...
#include <gui.h>
Public Member Functions | |
void | addPoint (float x) |
Add a point to the plot data. More... | |
void | render () const override |
Render method. Renders IMGUI contents. More... | |
Public Attributes | |
std::string | id {"##" + generateUUID()} |
Unique ID. More... | |
std::string | label {""} |
Plot Label. More... | |
std::string | units {""} |
Plot Units. More... | |
bool | show_min {false} |
Display minimum value under plot. More... | |
bool | show_max {false} |
Display maximum value under plot. More... | |
bool | show_avg {false} |
Display average value under plot. More... | |
bool | recent {true} |
Display most recent value on plot. More... | |
std::size_t | max_size {100} |
Maximum size of plot data. More... | |
Eigen::Vector3d | color {1., 1., 1.} |
Color of plot. More... | |
Private Member Functions | |
float | average () const |
Compute the average over the data. More... | |
float | minimum () const |
Compute the minimum over the data. More... | |
float | maximum () const |
Compute the maximum over the data. More... | |
Private Attributes | |
std::size_t | index {0} |
Index in data. More... | |
std::size_t | total_elements {0} |
Total elements inserted in data. More... | |
std::vector< float > | elements |
All data points. More... | |
float | latest |
Last input data point. More... | |
void LinePlotElement::addPoint | ( | float | x | ) |
Add a point to the plot data.
[in] | x | Point to add. |
|
private |
|
private |
|
private |
|
overridevirtual |
Render method. Renders IMGUI contents.
Implements robowflex::darts::ImGuiElement.
Definition at line 339 of file gui.cpp.
Eigen::Vector3d robowflex::darts::LinePlotElement::color {1., 1., 1.} |
|
private |
std::string robowflex::darts::LinePlotElement::id {"##" + generateUUID()} |
|
private |
std::string robowflex::darts::LinePlotElement::label {""} |
|
private |
std::size_t robowflex::darts::LinePlotElement::max_size {100} |
bool robowflex::darts::LinePlotElement::recent {true} |
bool robowflex::darts::LinePlotElement::show_avg {false} |
bool robowflex::darts::LinePlotElement::show_max {false} |
bool robowflex::darts::LinePlotElement::show_min {false} |
|
private |
std::string robowflex::darts::LinePlotElement::units {""} |