Flair
Framework Libre Air
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties
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  std::vector<core::GeoCoordinate *> checkpoints;
80  std::vector<const core::GeoCoordinate *> to_draw;
81  // std::vector<xmlNodePtr> checkpoints_node;
82  // bool init;
83 };
84 
85 } // end namespace gui
86 } // end namespace flair
87 
88 #endif // MAP_H
~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