This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
IndoorMap/mapview/3D/MV3DElementFingerprintLocation.h
kazu 29d5ce19ff improved 3d rendering, minor changes
added support for thick 3d walls
2017-08-02 14:30:01 +02:00

42 lines
689 B
C++

#ifndef MV3DELEMENTFINGERPRINTLOCATION_H
#define MV3DELEMENTFINGERPRINTLOCATION_H
#include <Indoor/floorplan/v2/Floorplan.h>
#include "misc/Cube.h"
#include "MV3DElement.h"
class MV3DElementFingerprintLocation : public MV3DElement {
Floorplan::Floor* f;
Floorplan::FingerprintLocation* fpl;
public:
/** ctor */
MV3DElementFingerprintLocation(Floorplan::Floor* f, Floorplan::FingerprintLocation* fpl) : f(f), fpl(fpl) {
;
}
protected:
/** repaint me */
void paintGL() override {
Cube cube(fpl->getPosition(*f), 0.15);
glColor3f(1,0,1);
cube.paintGL();
}
bool isTransparent() const override {
return false;
}
};
#endif // MV3DELEMENTFINGERPRINTLOCATION_H