Flair
Framework Libre Air
DataPlot.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 DATAPLOT_H
14 #define DATAPLOT_H
15 
16 #include <SendData.h>
17 
18 class DataPlot_impl;
19 
20 namespace flair {
21 namespace core {
22 class IODataElement;
23 }
24 }
25 namespace flair {
26 namespace gui {
27 class LayoutPosition;
28 
34 class DataPlot : public SendData {
35 public:
40  typedef enum {
41  Red ,
42  Blue ,
47  } Color_t;
48 
61  DataPlot(const LayoutPosition *position, std::string name, std::string type);
62 
67  ~DataPlot();
68 
69 protected:
77  void AddDataToSend(const core::IODataElement *element);
78 
79 private:
87  void CopyDatas(char *buf) const;
88 
94  void ExtraXmlEvent(void){};
95 
96  class DataPlot_impl *pimpl_;
97 };
98 
108 void RGBFromColor(DataPlot::Color_t color, uint8_t &r, uint8_t &g, uint8_t &b);
109 
110 } // end namespace gui
111 } // end namespace flair
112 
113 #endif // DATAPLOT_H
Definition: DataPlot.h:43
void AddDataToSend(const core::IODataElement *element)
Add an IODataElement to the plot.
namespace of the flair Framework
Definition: Ahrs.h:19
Definition: DataPlot.h:41
Abstract class to display plots on ground station.
Definition: DataPlot.h:34
DataPlot(const LayoutPosition *position, std::string name, std::string type)
Constructor.
Definition: DataPlot.h:45
~DataPlot()
Destructor.
Definition: DataPlot.h:44
Definition: DataPlot.h:46
Definition: DataPlot.h:42
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
Abstract class for sending datas to ground station.
Color_t
Types of colors.
Definition: DataPlot.h:40
void RGBFromColor(DataPlot::Color_t color, uint8_t &r, uint8_t &g, uint8_t &b)
Get RGB components from color type.
Abstract class for sending datas to ground station.
Definition: SendData.h:29