SVG --print-space-names and entity classes

This commit is contained in:
Thomas Krijnen
2020-04-01 12:19:56 +02:00
parent 55f3f20531
commit b41d3ed2e6
3 changed files with 134 additions and 14 deletions
+2 -1
View File
@@ -38,7 +38,7 @@ protected:
std::ofstream svg_file;
double xmin, ymin, xmax, ymax, width, height;
boost::optional<double> section_height;
bool rescale;
bool rescale, print_space_names_;
std::multimap<IfcUtil::IfcBaseEntity*, path_object> paths;
std::vector< boost::shared_ptr<util::string_buffer::float_item> > xcoords;
std::vector< boost::shared_ptr<util::string_buffer::float_item> > ycoords;
@@ -73,6 +73,7 @@ public:
void setFile(IfcParse::IfcFile* f);
void setBoundingRectangle(double width, double height);
void setSectionHeight(double h, IfcUtil::IfcBaseEntity* storey = 0) { section_height = h; storey_ = storey; }
void setPrintSpaceNames(bool b) { print_space_names_ = b; }
std::string nameElement(const IfcGeom::Element<real_t>* elem);
std::string nameElement(const IfcUtil::IfcBaseEntity* elem);
};