SVG --storey-height-line-length

This commit is contained in:
Thomas Krijnen
2021-03-28 21:38:29 +02:00
parent 1ee488b148
commit f1d7cf1dfb
3 changed files with 14 additions and 2 deletions
+7
View File
@@ -386,6 +386,8 @@ int main(int argc, char** argv) {
("draw-storey-heights",
po::value<std::string>(&storey_height_display)->default_value("none")->implicit_value("full"),
"Draws a horizontal line at the height of building storeys in vertical drawings")
("storey-height-line-length", po::value<double>(),
"Length of the line when --draw-storey-heights=left")
("svg-xmlns",
"Stores name and guid in a separate namespace as opposed to data-name, data-guid")
("svg-poly",
@@ -1008,6 +1010,11 @@ int main(int argc, char** argv) {
if (relative_center_x && relative_center_y) {
static_cast<SvgSerializer*>(serializer.get())->setDrawingCenter(*relative_center_x, *relative_center_y);
}
if (vmap.count("storey-height-line-length")) {
static_cast<SvgSerializer*>(serializer.get())->setStoreyHeightLineLength(
vmap["storey-height-line-length"].as<double>()
);
}
}
if (convert_back_units) {