Flair
Framework Libre Air
DataPlot1D.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 DATAPLOT1D_H
14 #define DATAPLOT1D_H
15 
16 #include <DataPlot.h>
17 #include <stdint.h>
18 
19 namespace flair {
20 namespace core {
21 class IODataElement;
22 }
23 
24 namespace gui {
25 
26 class LayoutPosition;
27 
33 class DataPlot1D : private DataPlot {
34 public:
45  DataPlot1D(const LayoutPosition *position, std::string name, float ymin,
46  float ymax);
47 
52  ~DataPlot1D();
53 
64  void AddCurve(const core::IODataElement *element, Color_t color,
65  std::string curve_name = "");
66 
79  void AddCurve(const core::IODataElement *element, uint8_t r = 255,
80  uint8_t g = 0, uint8_t b = 0, std::string curve_name = "");
81 };
82 
83 } // end namespace gui
84 } // end namespace flair
85 
86 #endif // DATAPLOT1D_H
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class to display plots on ground station.
Definition: DataPlot.h:34
DataPlot1D(const LayoutPosition *position, std::string name, float ymin, float ymax)
Constructor.
void AddCurve(const core::IODataElement *element, Color_t color, std::string curve_name="")
Add a curve from an IODataElement to the plot.
~DataPlot1D()
Destructor.
Abstract class for accessing an element of an io_data.
Definition: IODataElement.h:27
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
Color_t
Types of colors.
Definition: DataPlot.h:40
Abstract class to display plots on ground station.
Class displaying a 1D plot on the ground station.
Definition: DataPlot1D.h:33