43 lines
731 B
C++
43 lines
731 B
C++
#ifndef FLOORPLANRENDERERMODEL_H
|
|
#define FLOORPLANRENDERERMODEL_H
|
|
|
|
#include <Indoor/floorplan/v2/Floorplan.h>
|
|
#include <Indoor/floorplan/3D/FloorplanMesh.h>
|
|
|
|
#include "RenderTriangle.h"
|
|
|
|
/**
|
|
* model for rendering the floorplan
|
|
*/
|
|
class FloorplanRendererModel {
|
|
|
|
private:
|
|
|
|
Floorplan::IndoorMap* im;
|
|
Floorplan3D::FloorplanMesh mesh;
|
|
|
|
RenderTriangle triaSolid;
|
|
RenderTriangle triaTransp;
|
|
|
|
int getMaterial(const Floorplan3D::Obstacle3D& o) const;
|
|
|
|
|
|
public:
|
|
|
|
bool showDoors = false;
|
|
|
|
/** ctor */
|
|
FloorplanRendererModel();
|
|
|
|
Floorplan3D::FloorplanMesh& getMesh();
|
|
|
|
const RenderTriangle& getTriaSolid();
|
|
|
|
const RenderTriangle& getTriaTransp();
|
|
|
|
void rebuild(Floorplan::IndoorMap* im);
|
|
|
|
};
|
|
|
|
#endif // FLOORPLANRENDERERMODEL_H
|