some refactoring

hopefully improved rendering speed
added support to add .obj obstacles
This commit is contained in:
2018-02-17 17:39:18 +01:00
parent 839401edb7
commit 52ab71fac5
25 changed files with 538 additions and 12 deletions

View File

@@ -0,0 +1,42 @@
#ifndef MV3DELEMENTFLOOROBSTACLEOBJECT_H
#define MV3DELEMENTFLOOROBSTACLEOBJECT_H
#include <Indoor/floorplan/v2/Floorplan.h>
#include <Indoor/math/Math.h>
#include "misc/Cube.h"
#include "misc/Window.h"
#include "misc/Handrail.h"
#include "MV3DElement.h"
class MV3DElementFloorObstacleObject : public MV3DElement {
Floorplan::Floor* f;
Floorplan::FloorObstacleObject* fo;
public:
/** ctor */
MV3DElementFloorObstacleObject(Floorplan::Floor* f, Floorplan::FloorObstacleObject* fo) : f(f), fo(fo) {
;
}
protected:
/** repaint me */
void render(const RenderSettings& rs) override {
// TODO
}
bool isTransparent() const override {
return false;
}
};
#endif // MV3DELEMENTFLOOROBSTACLEOBJECT_H