36 lines
640 B
C++
36 lines
640 B
C++
#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
|