added earth-registration support
This commit is contained in:
34
mapview/3D/MV3DElementRegistrationPoint.h
Normal file
34
mapview/3D/MV3DElementRegistrationPoint.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#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();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // MV3DELEMENTREGISTRATIONPOINT_H
|
||||
Reference in New Issue
Block a user