added support for fingerprint adding/editing
some visualization changes
This commit is contained in:
@@ -25,6 +25,7 @@ protected:
|
||||
void paintGL() override {
|
||||
|
||||
Cube cube(ap->getPos(f), 0.25);
|
||||
glColor3f(0,0,1);
|
||||
cube.paintGL();
|
||||
|
||||
}
|
||||
|
||||
36
mapview/3D/MV3DElementFingerprintLocation.h
Normal file
36
mapview/3D/MV3DElementFingerprintLocation.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#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();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // MV3DELEMENTFINGERPRINTLOCATION_H
|
||||
@@ -25,8 +25,6 @@ public:
|
||||
glPushMatrix();
|
||||
glTranslatef(pos.x, pos.z, pos.y);
|
||||
|
||||
glColor3f(0,0,1);
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
|
||||
// bottom
|
||||
|
||||
Reference in New Issue
Block a user