Flair
Framework Libre Air
Map.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 MAP_H
14 #define MAP_H
15 
16 #include <SendData.h>
17 #include <stdint.h>
18 
19 namespace flair {
20 namespace core {
21 class GeoCoordinate;
22 }
23 
24 namespace gui {
25 
26 class LayoutPosition;
27 
33 class Map : public SendData {
34 public:
46  Map(const LayoutPosition *position, std::string name);
47 
52  ~Map();
53 
60  void AddPoint(const core::GeoCoordinate *point, std::string name = "");
61 
69  void CopyDatas(char *buf) const;
70 
71 private:
77  void ExtraXmlEvent(void);
78 
79  void removeCheckpoint(size_t index);
80 
81  std::vector<core::GeoCoordinate *> checkpoints;
82  std::vector<const core::GeoCoordinate *> to_draw;
83  // std::vector<xmlNodePtr> checkpoints_node;
84  // bool init;
85 };
86 
87 } // end namespace gui
88 } // end namespace flair
89 
90 #endif // MAP_H
namespace of the flair Framework
Definition: Ahrs.h:19
~Map()
Destructor.
void AddPoint(const core::GeoCoordinate *point, std::string name="")
Add a point to the map.
Map(const LayoutPosition *position, std::string name)
Constructor.
Class displaying a GPS map on the ground station.
Definition: Map.h:33
Class defining a point by its lla coordinates.
Definition: GeoCoordinate.h:24
void CopyDatas(char *buf) const
Copy datas to specified buffer.
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
Abstract class for sending datas to ground station.
Abstract class for sending datas to ground station.
Definition: SendData.h:29