SVG: preliminary --draw-storey-heights

This commit is contained in:
Thomas Krijnen
2021-03-05 21:50:32 +01:00
parent f51e0db7fe
commit 4ca64ac42e
3 changed files with 121 additions and 3 deletions
+7
View File
@@ -32,6 +32,7 @@
#include <HLRBRep_PolyAlgo.hxx>
#include <HLRAlgo_Projector.hxx>
#include <gp_Pln.hxx>
#include <Bnd_Box.hxx>
#include <sstream>
#include <string>
@@ -132,6 +133,7 @@ protected:
boost::optional<double> scale_, calculated_scale_, center_x_, center_y_;
bool with_section_heights_from_storey_, rescale, print_space_names_, print_space_areas_;
bool draw_storey_heights_;
bool draw_door_arcs_, is_floor_plan_;
bool auto_section_, auto_elevation_;
bool use_namespace_, use_hlr_poly_, always_project_;
@@ -155,6 +157,10 @@ protected:
std::string namespace_prefix_;
// Used for drawing the storey elevation heights
// @todo maybe better to rely on a screen-space bounding box
Bnd_Box bnd_;
void draw_hlr(const gp_Pln& pln, const drawing_key& drawing_name);
public:
@@ -204,6 +210,7 @@ public:
void setSectionHeightsFromStoreys(double offset=1.);
void setPrintSpaceNames(bool b) { print_space_names_ = b; }
void setPrintSpaceAreas(bool b) { print_space_areas_ = b; }
void setDrawStoreyHeights(bool b) { draw_storey_heights_ = b; }
void setDrawDoorArcs(bool b) { draw_door_arcs_ = b; }
std::array<std::array<double, 3>, 3> resize();