42 lines
931 B
C++
42 lines
931 B
C++
#ifndef MMFLOOROUTLINEPOLYGONCOMBINED_H
|
|
#define MMFLOOROUTLINEPOLYGONCOMBINED_H
|
|
|
|
#include "MapLayer.h"
|
|
#include "MMFloorOutlinePolygon.h"
|
|
//#include "../3D/MV3DElementFloorOutline.h"
|
|
|
|
|
|
#include <Indoor/floorplan/v2/Floorplan.h>
|
|
|
|
/**
|
|
* this element combines all polygons of one layer
|
|
* into one large, 3D renderable polygon
|
|
*/
|
|
class MMFloorOutlinePolygonCombined : public MapModelElement {
|
|
|
|
private:
|
|
|
|
/** the underlying model */
|
|
Floorplan::Floor* floor;
|
|
|
|
//MV3DElementFloorOutline mv3d;
|
|
|
|
public:
|
|
|
|
/** ctor with the underlying model */
|
|
MMFloorOutlinePolygonCombined(MapLayer* parent, Floorplan::Floor* floor) :
|
|
MapModelElement(parent), floor(floor) {//, mv3d(floor, &floor->outline) {
|
|
|
|
;
|
|
|
|
}
|
|
|
|
//MV3DElement* getMV3D() const override {return (MV3DElement*) &mv3d;}
|
|
|
|
/** get the corresponding floor from the underlying model */
|
|
Floorplan::Floor* getFloor() {return floor;}
|
|
|
|
};
|
|
|
|
#endif // MMFLOOROUTLINEPOLYGONCOMBINED_H
|