MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / addStyleAssignment_2x3

Function addStyleAssignment_2x3

src/ifcparse/IfcHierarchyHelper.cpp:501–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499
500template <typename Schema>
501typename Schema::IfcPresentationStyleAssignment* addStyleAssignment_2x3(IfcHierarchyHelper<Schema>& file, double r, double g, double b, double a = 1.0) {
502 auto surface_style = getSurfaceStyle<Schema>(file, r, g, b, a);
503 typename Schema::IfcPresentationStyleSelect::list::ptr surface_styles(new typename Schema::IfcPresentationStyleSelect::list);
504 surface_styles->push(surface_style);
505 typename Schema::IfcPresentationStyleAssignment* style_assignment =
506 new typename Schema::IfcPresentationStyleAssignment(surface_styles);
507 file.addEntity(style_assignment);
508 return style_assignment;
509}
510
511template <typename Schema>
512typename Schema::IfcPresentationStyle* addStyleAssignment_4x3(IfcHierarchyHelper<Schema>& file, double r, double g, double b, double a = 1.0) {

Callers 2

setSurfaceColour_2x3Function · 0.85
addStyleAssignmentFunction · 0.85

Calls 2

addEntityMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected