5959#ifdef HAS_SCHEMA_4x3
6060#include " ../ifcparse/Ifc4x3.h"
6161#endif
62+ #ifdef HAS_SCHEMA_4x3_tc1
63+ #include " ../ifcparse/Ifc4x3_tc1.h"
64+ #endif
6265#ifdef HAS_SCHEMA_4x3_add1
6366#include " ../ifcparse/Ifc4x3_add1.h"
6467#endif
@@ -266,6 +269,28 @@ namespace {
266269 }
267270#endif
268271
272+ #ifdef HAS_SCHEMA_4x3_tc1
273+ Ifc4x3_tc1::IfcObjectDefinition* get_parent_of_relation (Ifc4x3_tc1::IfcRelContainedInSpatialStructure* t) {
274+ return t->RelatingStructure ();
275+ }
276+
277+ aggregate_of_instance::ptr get_children_of_relation (Ifc4x3_tc1::IfcRelContainedInSpatialStructure* t) {
278+ return t->RelatedElements ()->generalize ();
279+ }
280+
281+ aggregate_of_instance::ptr get_children_of_relation (Ifc4x3_tc1::IfcRelAggregates* t) {
282+ return t->RelatedObjects ()->generalize ();
283+ }
284+
285+ void set_children_of_relation (Ifc4x3_tc1::IfcRelContainedInSpatialStructure* t, aggregate_of_instance::ptr& cs) {
286+ t->setRelatedElements (cs->as <Ifc4x3_tc1::IfcProduct>());
287+ }
288+
289+ void set_children_of_relation (Ifc4x3_tc1::IfcRelAggregates* t, aggregate_of_instance::ptr& cs) {
290+ t->setRelatedObjects (cs->as <Ifc4x3_tc1::IfcObjectDefinition>());
291+ }
292+ #endif
293+
269294#ifdef HAS_SCHEMA_4x3_add1
270295 Ifc4x3_add1::IfcObjectDefinition* get_parent_of_relation (Ifc4x3_add1::IfcRelContainedInSpatialStructure* t) {
271296 return t->RelatingStructure ();
@@ -523,6 +548,14 @@ IFC_PARSE_API void setSurfaceColour(IfcHierarchyHelper<Ifc4x3>& file, Ifc4x3::If
523548IFC_PARSE_API void setSurfaceColour (IfcHierarchyHelper<Ifc4x3>& file, Ifc4x3::IfcRepresentation* shape, Ifc4x3::IfcPresentationStyle* style);
524549#endif
525550
551+ #ifdef HAS_SCHEMA_4x3_tc1
552+ IFC_PARSE_API Ifc4x3_tc1::IfcPresentationStyle* addStyleAssignment (IfcHierarchyHelper<Ifc4x3_tc1>& file, double r, double g, double b, double a = 1.0 );
553+ IFC_PARSE_API Ifc4x3_tc1::IfcPresentationStyle* setSurfaceColour (IfcHierarchyHelper<Ifc4x3_tc1>& file, Ifc4x3_tc1::IfcProductRepresentation* shape, double r, double g, double b, double a = 1.0 );
554+ IFC_PARSE_API Ifc4x3_tc1::IfcPresentationStyle* setSurfaceColour (IfcHierarchyHelper<Ifc4x3_tc1>& file, Ifc4x3_tc1::IfcRepresentation* shape, double r, double g, double b, double a = 1.0 );
555+ IFC_PARSE_API void setSurfaceColour (IfcHierarchyHelper<Ifc4x3_tc1>& file, Ifc4x3_tc1::IfcProductRepresentation* shape, Ifc4x3_tc1::IfcPresentationStyle* style);
556+ IFC_PARSE_API void setSurfaceColour (IfcHierarchyHelper<Ifc4x3_tc1>& file, Ifc4x3_tc1::IfcRepresentation* shape, Ifc4x3_tc1::IfcPresentationStyle* style);
557+ #endif
558+
526559#ifdef HAS_SCHEMA_4x3_add1
527560IFC_PARSE_API Ifc4x3_add1::IfcPresentationStyle* addStyleAssignment (IfcHierarchyHelper<Ifc4x3_add1>& file, double r, double g, double b, double a = 1.0 );
528561IFC_PARSE_API Ifc4x3_add1::IfcPresentationStyle* setSurfaceColour (IfcHierarchyHelper<Ifc4x3_add1>& file, Ifc4x3_add1::IfcProductRepresentation* shape, double r, double g, double b, double a = 1.0 );
@@ -531,7 +564,6 @@ IFC_PARSE_API void setSurfaceColour(IfcHierarchyHelper<Ifc4x3_add1>& file, Ifc4x
531564IFC_PARSE_API void setSurfaceColour (IfcHierarchyHelper<Ifc4x3_add1>& file, Ifc4x3_add1::IfcRepresentation* shape, Ifc4x3_add1::IfcPresentationStyle* style);
532565#endif
533566
534-
535567/*
536568template <>
537569inline void IfcHierarchyHelper::addRelatedObject <typename Schema::IfcRelContainedInSpatialStructure> (typename Schema::IfcObjectDefinition* relating_structure,
0 commit comments