50 lines
983 B
C++
50 lines
983 B
C++
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#ifndef MV3DELEMENTACCESSPOINT_H
|
||
#define MV3DELEMENTACCESSPOINT_H
|
||
|
||
#include <Indoor/floorplan/v2/Floorplan.h>
|
||
|
||
#include "misc/Cube.h"
|
||
#include "MV3DElement.h"
|
||
|
||
class MV3DElementAccessPoint : public MV3DElement {
|
||
|
||
Floorplan::Floor* f;
|
||
Floorplan::AccessPoint* ap;
|
||
|
||
public:
|
||
|
||
/** ctor */
|
||
MV3DElementAccessPoint(Floorplan::Floor* f, Floorplan::AccessPoint* ap) : f(f), ap(ap) {
|
||
;
|
||
}
|
||
|
||
protected:
|
||
|
||
|
||
/** repaint me */
|
||
void render(const RenderSettings& rs) override {
|
||
|
||
Cube cube(ap->getPos(f), 0.25);
|
||
cube.setColor(0,0,1);
|
||
cube.render(rs);
|
||
|
||
}
|
||
|
||
bool isTransparent() const override {
|
||
return false;
|
||
}
|
||
|
||
};
|
||
|
||
#endif // MV3DELEMENTACCESSPOINT_H
|