59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#ifndef MMROOT_H
|
||
#define MMROOT_H
|
||
|
||
#include "MapLayer.h"
|
||
#include "MMFloors.h"
|
||
#include "MMRegistration.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);
|
||
new MMRegistration(this, map);
|
||
|
||
}
|
||
|
||
bool isVisible() const override {
|
||
return true;
|
||
}
|
||
|
||
void setVisible(const bool) override {
|
||
throw "error";
|
||
}
|
||
|
||
/** get the underlying model */
|
||
Floorplan::IndoorMap* getMap() {return map;}
|
||
|
||
|
||
std::string getLayerName() const override {return "root";}
|
||
|
||
};
|
||
|
||
#endif // MMROOT_H
|