added support for fingerprint adding/editing

some visualization changes
This commit is contained in:
2017-03-10 15:32:05 +01:00
parent f40fc9a823
commit 8180764809
14 changed files with 436 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ protected:
void paintGL() override {
Cube cube(ap->getPos(f), 0.25);
glColor3f(0,0,1);
cube.paintGL();
}

View 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

View File

@@ -25,8 +25,6 @@ public:
glPushMatrix();
glTranslatef(pos.x, pos.z, pos.y);
glColor3f(0,0,1);
glBegin(GL_QUADS);
// bottom