Flair
Framework Libre Air
DataPlot2D.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef DATAPLOT2D_H
14 #define DATAPLOT2D_H
15 
16 #include <DataPlot.h>
17 #include <stdint.h>
18 
19 namespace flair {
20 namespace core {
21 class IODataElement;
22 }
23 }
24 namespace flair {
25 namespace gui {
26 
27 class LayoutPosition;
28 
34 class DataPlot2D : private DataPlot {
35 public:
50  DataPlot2D(const LayoutPosition *position, std::string name,
51  std::string x_name, float xmin, float xmax, std::string y_name,
52  float ymin, float ymax);
53 
58  ~DataPlot2D();
59 
70  void AddCurve(const core::IODataElement *x_element,
71  const core::IODataElement *y_element, Color_t color,
72  std::string curve_name = "");
73 
86  void AddCurve(const core::IODataElement *x_element,
87  const core::IODataElement *y_element, uint8_t r = 255,
88  uint8_t g = 0, uint8_t b = 0, std::string curve_name = "");
89 };
90 
91 } // end namespace gui
92 } // end namespace flair
93 
94 #endif // DATAPLOT2D_H
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class to display plots on ground station.
Definition: DataPlot.h:34
DataPlot2D(const LayoutPosition *position, std::string name, std::string x_name, float xmin, float xmax, std::string y_name, float ymin, float ymax)
Constructor.
Abstract class for accessing an element of an io_data.
Definition: IODataElement.h:27
~DataPlot2D()
Destructor.
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
void AddCurve(const core::IODataElement *x_element, const core::IODataElement *y_element, Color_t color, std::string curve_name="")
Add a curve from elements to the plot.
Color_t
Types of colors.
Definition: DataPlot.h:40
Abstract class to display plots on ground station.
Class displaying a 2D plot on the ground station.
Definition: DataPlot2D.h:34