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/MV3DElementRegistrationPoint.h
kazu 29d5ce19ff improved 3d rendering, minor changes
added support for thick 3d walls
2017-08-02 14:30:01 +02:00

39 lines
612 B
C++

#ifndef MV3DELEMENTREGISTRATIONPOINT_H
#define MV3DELEMENTREGISTRATIONPOINT_H
#include <Indoor/floorplan/v2/Floorplan.h>
#include "misc/Cube.h"
#include "MV3DElement.h"
class MV3DElementRegistrationPoint : public MV3DElement {
Floorplan::EarthPosMapPos* reg;
public:
/** ctor */
MV3DElementRegistrationPoint(Floorplan::EarthPosMapPos* reg) : reg(reg) {
;
}
protected:
/** repaint me */
void paintGL() override {
Cube cube(reg->posOnMap_m, 0.5);
glColor3f(0,0,0);
cube.paintGL();
}
bool isTransparent() const override {
return false;
}
};
#endif // MV3DELEMENTREGISTRATIONPOINT_H