--auto-section and --auto-elevation flags

This commit is contained in:
Thomas Krijnen
2020-12-30 14:25:08 +01:00
parent 9def261316
commit de5ce28a78
3 changed files with 169 additions and 37 deletions
+16 -4
View File
@@ -119,7 +119,8 @@ 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_door_arcs_, buffer_elements_, is_floor_plan_;
bool draw_door_arcs_, is_floor_plan_;
bool auto_section_, auto_elevation_;
IfcParse::IfcFile* file;
IfcUtil::IfcBaseEntity* storey_;
@@ -146,8 +147,9 @@ public:
, print_space_names_(false)
, print_space_areas_(false)
, draw_door_arcs_(false)
, buffer_elements_(false)
, is_floor_plan_(true)
, auto_section_(false)
, auto_elevation_(false)
, file(0)
, storey_(0)
, xcoords_begin(0)
@@ -176,15 +178,25 @@ public:
void setPrintSpaceNames(bool b) { print_space_names_ = b; }
void setPrintSpaceAreas(bool b) { print_space_areas_ = b; }
void setDrawDoorArcs(bool b) { draw_door_arcs_ = b; }
void resize();
void resetScale();
void setSectionRef(const boost::optional<std::string>& s) {
section_ref_ = s;
buffer_elements_ = true;
}
void setElevationRef(const boost::optional<std::string>& s) {
elevation_ref_ = s;
buffer_elements_ = true;
}
void setAutoSection(bool b) {
auto_section_ = b;
}
void setAutoElevation(bool b) {
auto_elevation_ = b;
}
void setScale(double s) { scale_ = s; }
void setDrawingCenter(double x, double y) {
center_x_ = x; center_y_ = y;