Merge branch 'master' of https://git.frank-ebner.de/FHWS/IndoorMap
This commit is contained in:
@@ -21,18 +21,25 @@ private:
|
||||
|
||||
struct Color {
|
||||
float r,g,b;
|
||||
Color() : r(1), g(0), b(0) {;}
|
||||
Color(float r, float g, float b) : r(r), g(g), b(b) {;}
|
||||
};
|
||||
|
||||
Color colors[4] = {
|
||||
Color(0.3, 0.3, 0.3), Color(0,0,1), Color(0,0,1), Color(0,0.65,0)
|
||||
};
|
||||
/** node color depending on the node's type. see ctor */
|
||||
Color colors[200];
|
||||
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
GridRenderer() {
|
||||
;
|
||||
|
||||
colors[GridNode::TYPE_FLOOR] = Color(0.4, 0.4, 0.4);
|
||||
colors[GridNode::TYPE_STAIR] = Color(0,0,1);
|
||||
colors[GridNode::TYPE_ELEVATOR] = Color(0,0,1);
|
||||
colors[GridNode::TYPE_DOOR] = Color(0.0, 0.0, 0.0);
|
||||
|
||||
colors[GridNode::TYPE_OUTDOOR] = Color(0.0, 0.5, 0.0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ struct MyNode : public GridNode, public GridPoint, public GridNodeImportance {
|
||||
|
||||
MyNode(float x, float y, float z) : GridPoint(x,y,z) {;}
|
||||
|
||||
float walkImportance;
|
||||
|
||||
};
|
||||
|
||||
#endif // MYNODE_H
|
||||
|
||||
Reference in New Issue
Block a user