worked on windows
This commit is contained in:
@@ -38,6 +38,7 @@ namespace Floorplan {
|
||||
private:
|
||||
|
||||
static std::string toString(const ObstacleType t) { return std::to_string((int)t); }
|
||||
static std::string toString(const WindowType t) { return std::to_string((int)t); }
|
||||
static std::string toString(const DoorType t) { return std::to_string((int)t); }
|
||||
static std::string toString(const Material m) { return std::to_string((int)m); }
|
||||
static std::string toString(const OutlineMethod m) { return std::to_string((int)m); }
|
||||
@@ -349,7 +350,7 @@ namespace Floorplan {
|
||||
|
||||
oDoor->SetAttribute("type", toString(door->type).c_str());
|
||||
oDoor->SetAttribute("material", toString(door->material).c_str());
|
||||
oDoor->SetAttribute("at", door->atLinePos);
|
||||
oDoor->SetAttribute("x01", door->atLinePos);
|
||||
oDoor->SetAttribute("width", door->width);
|
||||
oDoor->SetAttribute("height", door->height);
|
||||
oDoor->SetAttribute("io", door->inOut);
|
||||
@@ -357,6 +358,22 @@ namespace Floorplan {
|
||||
|
||||
}
|
||||
|
||||
// windows?
|
||||
for (const FloorObstacleWallWindow* win : wall->windows) {
|
||||
|
||||
XMLElem* oDoor = doc.NewElement("window");
|
||||
oWall->InsertEndChild(oDoor);
|
||||
|
||||
oDoor->SetAttribute("type", toString(win->type).c_str());
|
||||
oDoor->SetAttribute("material", toString(win->material).c_str());
|
||||
oDoor->SetAttribute("x01", win->atLinePos);
|
||||
oDoor->SetAttribute("y", win->startsAtHeight);
|
||||
oDoor->SetAttribute("width", win->width);
|
||||
oDoor->SetAttribute("height", win->height);
|
||||
oDoor->SetAttribute("io", win->inOut);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** write a line obstacle (old walls, handrail, ..) */
|
||||
|
||||
Reference in New Issue
Block a user