initial commit
This commit is contained in:
38
mapview/model/MMRoot.h
Normal file
38
mapview/model/MMRoot.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef MMROOT_H
|
||||
#define MMROOT_H
|
||||
|
||||
#include "MapLayer.h"
|
||||
#include "MMFloors.h"
|
||||
|
||||
#include <Indoor/floorplan/v2/Floorplan.h>
|
||||
|
||||
/**
|
||||
* floor-layer containing one floor
|
||||
* and its outline, obstacles, access-points, ...
|
||||
*/
|
||||
class MMRoot : public MapLayer {
|
||||
|
||||
private:
|
||||
|
||||
/** the underlying data-structure */
|
||||
Floorplan::IndoorMap* map;
|
||||
|
||||
public:
|
||||
|
||||
/** ctor. existing floor */
|
||||
MMRoot(MapLayer* parent, Floorplan::IndoorMap* map) : MapLayer(parent), map(map) {
|
||||
|
||||
// all floors
|
||||
new MMFloors(this, map);
|
||||
|
||||
}
|
||||
|
||||
/** get the underlying model */
|
||||
Floorplan::IndoorMap* getMap() {return map;}
|
||||
|
||||
|
||||
std::string getLayerName() const override {return "root";}
|
||||
|
||||
};
|
||||
|
||||
#endif // MMROOT_H
|
||||
Reference in New Issue
Block a user