a lot of work on th map-creator
This commit is contained in:
35
mapview/3D/MV3DElementFloorObstacleDoor.h
Normal file
35
mapview/3D/MV3DElementFloorObstacleDoor.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef MV3DELEMENTFLOOROBSTACLEDOOR_H
|
||||
#define MV3DELEMENTFLOOROBSTACLEDOOR_H
|
||||
|
||||
#include <Indoor/floorplan/v2/Floorplan.h>
|
||||
#include <Indoor/math/Math.h>
|
||||
|
||||
#include "MV3DElement.h"
|
||||
#include "misc/Plane.h"
|
||||
|
||||
|
||||
|
||||
class MV3DElementFloorObstacleDoor : public MV3DElement {
|
||||
|
||||
Floorplan::Floor* f;
|
||||
Floorplan::FloorObstacleDoor* fo;
|
||||
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
MV3DElementFloorObstacleDoor(Floorplan::Floor* f, Floorplan::FloorObstacleDoor* fo) : f(f), fo(fo) {
|
||||
;
|
||||
}
|
||||
|
||||
/** repaint me */
|
||||
void paintGL() override {
|
||||
|
||||
glColor3f(0,1,0);
|
||||
Plane p(fo->from, fo->to, f->atHeight, fo->height);
|
||||
p.paintGL();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // MV3DELEMENTFLOOROBSTACLEDOOR_H
|
||||
Reference in New Issue
Block a user