![]() |
Flair
Framework Libre Air
|
Class displaying a 1D plot on the ground station. More...
#include <DataPlot1D.h>
Inheritance diagram for flair::gui::DataPlot1D:Public Member Functions | |
| DataPlot1D (const LayoutPosition *position, std::string name, float ymin, float ymax) | |
| Constructor. More... | |
| ~DataPlot1D () | |
| Destructor. More... | |
| void | AddCurve (const core::IODataElement *element, Color_t color, std::string curve_name="") |
| Add a curve from an IODataElement to the plot. More... | |
| void | AddCurve (const core::IODataElement *element, uint8_t r=255, uint8_t g=0, uint8_t b=0, std::string curve_name="") |
| Add a curve from an IODataElement to the plot. More... | |
Class displaying a 1D plot on the ground station.
| flair::gui::DataPlot1D::DataPlot1D | ( | const LayoutPosition * | position, |
| std::string | name, | ||
| float | ymin, | ||
| float | ymax | ||
| ) |
Constructor.
Construct a 1D plot at given position.
| position | position to display the plot |
| name | name |
| ymin | default ymin of the plot |
| ymax | default ymax of the plot |
| flair::gui::DataPlot1D::~DataPlot1D | ( | ) |
Destructor.
| void flair::gui::DataPlot1D::AddCurve | ( | const core::IODataElement * | element, |
| Color_t | color, | ||
| std::string | curve_name = "" |
||
| ) |
Add a curve from an IODataElement to the plot.
Curve's color can be selected by its name.
| element | element to plot |
| color | color of the curve |
| curve_name | name of the curve for the legend, if unspecified, element->ObjectName() will be used |
| void flair::gui::DataPlot1D::AddCurve | ( | const core::IODataElement * | element, |
| uint8_t | r = 255, |
||
| uint8_t | g = 0, |
||
| uint8_t | b = 0, |
||
| std::string | curve_name = "" |
||
| ) |
Add a curve from an IODataElement to the plot.
Curve's color can be selected by its RGB components.
| element | element to plot |
| r | red component of the curve |
| g | green component of the curve |
| b | blue component of the curve |
| curve_name | name of the curve for the legend, if unspecified, element->ObjectName() will be used |