@@ -584,6 +584,14 @@ Ifc4x3_add1::IfcStyledItem* create_styled_item(Ifc4x3_add1::IfcRepresentationIte
584584}
585585#endif
586586
587+ #ifdef HAS_SCHEMA_4x3_add2
588+ Ifc4x3_add2::IfcStyledItem* create_styled_item (Ifc4x3_add2::IfcRepresentationItem* item, Ifc4x3_add2::IfcPresentationStyle* style) {
589+ boost::shared_ptr<aggregate_of<Ifc4x3_add2::IfcPresentationStyle>> styles (new aggregate_of<Ifc4x3_add2::IfcPresentationStyle>());
590+ styles->push (style);
591+ return new Ifc4x3_add2::IfcStyledItem (item, styles, boost::none);
592+ }
593+ #endif
594+
587595template <typename Schema>
588596void setSurfaceColour_2x3 (IfcHierarchyHelper<Schema>& file, typename Schema::IfcRepresentation* rep, typename Schema::IfcPresentationStyleAssignment* style_assignment)
589597{
@@ -905,6 +913,33 @@ void setSurfaceColour(IfcHierarchyHelper<Ifc4x3_add1>& file, Ifc4x3_add1::IfcRep
905913}
906914#endif
907915
916+ #ifdef HAS_SCHEMA_4x3_add2
917+ Ifc4x3_add2::IfcPresentationStyle* addStyleAssignment (IfcHierarchyHelper<Ifc4x3_add2>& file, double r, double g, double b, double a)
918+ {
919+ return addStyleAssignment_4x3 (file, r, g, b, a);
920+ }
921+
922+ Ifc4x3_add2::IfcPresentationStyle* setSurfaceColour (IfcHierarchyHelper<Ifc4x3_add2>& file, Ifc4x3_add2::IfcProductRepresentation* shape, double r, double g, double b, double a)
923+ {
924+ return setSurfaceColour_4x3 (file, shape, r, g, b, a);
925+ }
926+
927+ Ifc4x3_add2::IfcPresentationStyle* setSurfaceColour (IfcHierarchyHelper<Ifc4x3_add2>& file, Ifc4x3_add2::IfcRepresentation* shape, double r, double g, double b, double a)
928+ {
929+ return setSurfaceColour_4x3 (file, shape, r, g, b, a);
930+ }
931+
932+ void setSurfaceColour (IfcHierarchyHelper<Ifc4x3_add2>& file, Ifc4x3_add2::IfcProductRepresentation* shape, Ifc4x3_add2::IfcPresentationStyle* style)
933+ {
934+ setSurfaceColour_4x3 (file, shape, style);
935+ }
936+
937+ void setSurfaceColour (IfcHierarchyHelper<Ifc4x3_add2>& file, Ifc4x3_add2::IfcRepresentation* shape, Ifc4x3_add2::IfcPresentationStyle* style)
938+ {
939+ setSurfaceColour_4x3 (file, shape, style);
940+ }
941+ #endif
942+
908943template <typename Schema>
909944typename Schema::IfcProductDefinitionShape* IfcHierarchyHelper<Schema>::addMappedItem(
910945 typename Schema::IfcShapeRepresentation* rep,
@@ -1036,3 +1071,6 @@ template IFC_PARSE_API class IfcHierarchyHelper<Ifc4x3_tc1>;
10361071#ifdef HAS_SCHEMA_4x3_add1
10371072template IFC_PARSE_API class IfcHierarchyHelper <Ifc4x3_add1>;
10381073#endif
1074+ #ifdef HAS_SCHEMA_4x3_add2
1075+ template IFC_PARSE_API class IfcHierarchyHelper <Ifc4x3_add2>;
1076+ #endif
0 commit comments