39 lines
561 B
C++
39 lines
561 B
C++
#ifndef GRIDMODEL_H
|
|
#define GRIDMODEL_H
|
|
|
|
#include <Indoor/floorplan/v2/Floorplan.h>
|
|
#include <Indoor/grid/Grid.h>
|
|
#include <Indoor/grid/factory/v2/GridFactory.h>
|
|
|
|
|
|
#include "MyNode.h"
|
|
|
|
/**
|
|
* used for 3D grid rendering
|
|
*/
|
|
class GridModel {
|
|
|
|
private:
|
|
|
|
int gridSize_cm = 40;
|
|
Grid<MyNode> grid;
|
|
Floorplan::IndoorMap* im;
|
|
|
|
public:
|
|
|
|
GridModel() : grid(gridSize_cm) {
|
|
;
|
|
}
|
|
|
|
Grid<MyNode>* getGrid() {return &grid;}
|
|
|
|
void rebuild(Floorplan::IndoorMap* im) {
|
|
GridFactory<MyNode> fac(grid);
|
|
fac.build(im);
|
|
int i = 0;(void) i;
|
|
}
|
|
|
|
};
|
|
|
|
#endif // GRIDMODEL_H
|