mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
SVG: preliminary --draw-storey-heights
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user