///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
// All rights reserved.
//
// This software and its documentation and related materials are owned by
// the Alliance. The software may only be incorporated into application
// programs owned by members of the Alliance, subject to a signed
// Membership Agreement and Supplemental Software License Agreement with the
// Alliance. The structure and organization of this software are the valuable
// trade secrets of the Alliance and its suppliers. The software is also
// protected by copyright law and international treaty provisions. Application
// programs incorporating this software must include the following statement
// with their copyright notices:
//
// This application incorporates Open Design Alliance software pursuant to a license
// agreement with Open Design Alliance.
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
// All rights reserved.
//
// By use of this software, its documentation or related materials, you
// acknowledge and accept the above terms.
///////////////////////////////////////////////////////////////////////////////
// This file is generated automatically.
#ifndef _IFC4X2_IFCSTRUCTURALACTIVITY_AUTO_IMPL_H
#define _IFC4X2_IFCSTRUCTURALACTIVITY_AUTO_IMPL_H
#include "IfcProductAutoImpl.h"
#include "IfcStructuralLoadAutoImpl.h"
#include "TD_PackPush.h"
/** \details
The namespace contains schema-dependent classes, definitions and sub routines
for work with IFC4X2 express schema definitions.
*/
namespace OdIfc4x2 {
/** \details
The abstract entity IfcStructuralActivity combines the definition of actions (such as forces, displacements, etc.)
and reactions (support reactions, internal forces, deflections, etc.)
which are specified by using the basic load definitions from the IfcStructuralLoadResource.
- Coordinate Systems -
The following coordinate systems are distinguished:
* The so-called global coordinate system is the coordinate system shared
by all items and activities which are grouped in a common IfcStructuralAnalysisModel.
This coordinate system is established by SELF\IfcProduct.ObjectPlacement.
(This coordinate system is not necessarily the same as the IfcProject's world coordinate system.)
* The so-called local coordinate system is a coordinate system local to a structural item.
This coordinate system is established by a Representation (attribute inherited from IfcProduct)
in conjunction with further use definitions and attributes of subtypes of IfcStructuralItem.
Representation items in topology representations are always given within the ObjectPlacement,
i.e. in so-called global coordinates (global with respect to the IfcStructuralAnalysisModel to which this item belongs).
The usage of local coordinate systems is further defined in subtypes.
- Topology Use Definitions -
Instances of IfcStructuralItem have a topology representation.
It includes a placement and a product representation.
The IfcProductRepresentation is given by an item in a Representation of type IfcTopologyRepresentation.
- Local Placement -
The local placement for IfcStructuralItem is defined in its supertype IfcProduct.
It is defined by the IfcLocalPlacement, which establishes a global coordinate system which is common to all items and activities in an IfcStructuralAnalysisModel.
- Topology Representation -
Instances of IfcStructuralItem have a topology representation given by an instance of a subtype of IfcTopologicalRepresentationItem,
which should be the single item of IfcTopologyRepresentation.Items.
Depending on the dimensionality of the structural item, one of the following types of toplogical representation items is used:
* Point connections are represented by an IfcVertexPoint with an underlying IfcCartesianPoint.
The Cartesian point is the reference point of the connection in the so-called global coordinate system.
The following labels are used in the IfcTopologyRepresentation:
* RepresentationIdentifier: 'Reference'
* RepresentationType: 'Vertex'
* Curve members and curve connections can either be represented by an IfcOrientedEdge, IfcEdgeCurve, or IfcEdge.
The curve to which the IfcEdgeCurve (or an IfcOrientedEdge's underlying IfcEdgeCurve)
refers to is the reference curve of the structural item in the global coordinate system.
Start and end vertex of the edge is _IfcVertexPoint_s with underlying _IfcCartesianPoint_s.
The following labels are used in the IfcTopologyRepresentation:
* RepresentationIdentifier: 'Reference'
* RepresentationType: 'Edge'
* Surface members and surface connections is represented by an IfcFaceSurface.
The underlying surface defines the reference surface of the structural surface item in the global coordiante system.
All edges in the bounds of the face conform to the rules for edge representations of structural curve item.
The following labels are used in the IfcTopologyRepresentation:
* RepresentationIdentifier: 'Reference'
* RepresentationType: 'Face'
The reference point, reference curve, or reference surface partially or completely defines the local coordinate system
of the represented structural item according to the following rules.
In all cases, The local x,y,z directions form a right-handed Cartesian coordinate system.
Structural point items
* The reference point in the representation is the origin of the local coordinate system of the structural item.
* The axes of the local coordinate system are either parallel with and directed like the so-called global coordinate axes,
or are oriented according to definitions at the respective subtype of IfcStructuralItem.
Structural curve items
* The u parameter origin of the reference curve in the representation is the origin of the local coordinate system of the structural item.
* The local x axis is parallel with the tangent on the curve and directed like the u parameter direction.
* The local y and z axes are oriented according to definitions at the respective subtypes of IfcStructuralItem.
Structural surface items
* The u,v parameter origin of the reference surface in the representation is the origin of the local coordinate system of the structural item.
* The local x and y directions follow the tangents on the surface and are in parallel with and directed like u and v respectively.
* The local z direction is in parallel with and directed like the surface normal.
\changes
* IFC4 changes:
* Type of the inverse attribute AssignedToStructuralItem changed from
"IfcRelConnectsStructuralActivity FOR RelatedStructuralActivity" to "SET OF [0:1] IfcRelConnectsStructuralActivity FOR RelatedStructuralActivity"
*/
class IFC4X2_EXPORT IfcStructuralActivity : public IfcProduct
{
//DOM-IGNORE-BEGIN
OD_EXP_NON_INSTANTIABLE_DECLARE_MEMBERS(OdIfc4x2::IfcStructuralActivity);
//DOM-IGNORE-END
public:
//
// OdDAI early binding accessors
//
/** \details
Returns the value of AppliedLoad attribute.
This attribute represents load or result resource object which defines the load type, direction, and load values.
In case of activities which are variably distributed over curves or surfaces,
IfcStructuralLoadConfiguration is used which provides a list of load samples and their locations within the load distribution,
measured in local coordinates of the curve or surface on which this activity acts.
The contents of this load or result distribution can be further restricted by definitions at subtypes of IfcStructuralActivity.
\returns
Returns the value of AppliedLoad attribute.
*/
const OdDAIObjectId& getAppliedLoad() const;
/** \details
Sets the value of AppliedLoad attribute.
This attribute represents load or result resource object which defines the load type, direction, and load values.
In case of activities which are variably distributed over curves or surfaces,
IfcStructuralLoadConfiguration is used which provides a list of load samples and their locations within the load distribution,
measured in local coordinates of the curve or surface on which this activity acts.
The contents of this load or result distribution can be further restricted by definitions at subtypes of IfcStructuralActivity.
\param AppliedLoad [in] AppliedLoad attribute to set.
*/
void setAppliedLoad(const OdDAIObjectId& AppliedLoad);
/** \details
Returns the value of GlobalOrLocal attribute.
This attribute represents indicates whether the load directions refer to the global coordinate system
(global to the analysis model, i.e. as established by IfcStructuralAnalysisModel.SharedPlacement)
or to the local coordinate system (local to the activity or connected item, as established by an explicit or implied representation and its parameter space).
\returns
Returns the value of GlobalOrLocal attribute.
\remarks
The informal definition of IfcRepresentationResource.IfcGlobalOrLocalEnum does not distinguish between global coordinate system and world coordinate system.
On the other hand, this distinction is necessary in the IfcStructuralAnalysisDomain where the shared global coordinate system of an analysis model
not be the same as the project-wide world coordinate system.
*/
IfcGlobalOrLocalEnum getGlobalOrLocal() const;
/** \details
Sets the value of GlobalOrLocal attribute.
This attribute represents indicates whether the load directions refer to the global coordinate system
(global to the analysis model, i.e. as established by IfcStructuralAnalysisModel.SharedPlacement)
or to the local coordinate system (local to the activity or connected item, as established by an explicit or implied representation and its parameter space).
\param GlobalOrLocal [in] GlobalOrLocal attribute to set.
\remarks
The informal definition of IfcRepresentationResource.IfcGlobalOrLocalEnum does not distinguish between global coordinate system and world coordinate system.
On the other hand, this distinction is necessary in the IfcStructuralAnalysisDomain where the shared global coordinate system of an analysis model
not be the same as the project-wide world coordinate system.
*/
void setGlobalOrLocal(IfcGlobalOrLocalEnum GlobalOrLocal);
/** \details
Returns the value of AssignedToStructuralItem attribute.
This attribute represents reference to the IfcRelConnectsStructuralActivity relationship by which activities are connected with structural items.
\param AssignedToStructuralItem [in] Receives the AssignedToStructuralItem attribute.
*/
void getInvAssignedToStructuralItem(OdDAIObjectIds& AssignedToStructuralItem) const;
public:
/** \details
Default constructor for the IfcStructuralActivity class.
*/
IfcStructuralActivity();
/** \details
Reads object's data from the specified filer.
\param rdFiler [in] Pointer to a filer from which to read the data.
\returns
A value of OdResult type that contains the result of the method execution.
*/
virtual OdResult inFields(OdDAI::OdSpfFilerBase* rdFiler) override;
/** \details
Writes object's data the the specified filer.
\param wrFiler [in] Pointer to a filer to which to write the data.
\returns
A value of OdResult type that contains the result of the method execution.
*/
virtual OdResult outFields(OdDAI::OdSpfFilerBase* wrFiler) override;
/** \details
Returns a type of a class instance.
\returns
Pointer to the OdDAI::Entity type that determines an entity definition within a schema.
*/
virtual OdDAI::Entity* getInstanceType() const override;
/** \details
Returns an attribute value for the specified attribute name.
\param attrName [in] Name of an attribute to query.
\returns
OdRxValue object that represents a generic variant type value.
*/
virtual OdRxValue getAttr(const char * attrName) const override;
/** \details
Resets a value for the specified attribute.
\param explicitAttrName [in] Explicit name of the attribute to reset.
*/
virtual void unsetAttr(const char * explicitAttrName) override;
/** \details
Checks whether the specified attribute is set.
\param explicitAttrName [in] Explicit name of the attribute to test.
\returns
true if the specified attribute is set, false otherwise.
*/
virtual bool testAttr(const char * explicitAttrName) const override;
/** \details
Sets the specified attribute with a given value.
\param explicitAttrName [in] Explicit name of the attribute to set.
\param val [in] Value to set.
\returns
true if the value is successfully set for the specified attribute, false otherwise.
*/
virtual bool putAttr(const char * explicitAttrName, const OdRxValue &val) override;
/** \details
Checks whether the specified instance is the object derived from or belongs to this class.
\param entityType [in] Entity to check.
\returns
true if the specified instance is the object derived from or belongs to this class, false otherwise.
*/
virtual bool isKindOf(OdIfc::OdIfcEntityType entityType) const override;
/** \details
Returns the type of this entity.
\returns
A value of the OdIfc::OdIfcEntityType type that represents type of this entity.
*/
virtual OdIfc::OdIfcEntityType type() const override;
/** \details
Returns an attribute value for the specified attribute definition.
\param attrDef [in] Attribute definition to query.
\returns
OdRxValue object that represents a generic variant type value.
*/
virtual OdRxValue getAttr(const OdIfc::OdIfcAttribute attrDef) const override;
/** \details
Resets a value for the specified attribute.
\param explicitAttrDef [in] Explicit definition that represents an attribute to reset.
*/
virtual void unsetAttr(const OdIfc::OdIfcAttribute explicitAttrDef) override;
/** \details
Checks whether the specified attribute is set.
\param explicitAttrDef [in] Attribute definition to test.
\returns
true if the specified attribute is set, false otherwise.
*/
virtual bool testAttr(const OdIfc::OdIfcAttribute explicitAttrDef) const override;
/** \details
Sets the specified attribute with a given value.
\param explicitAttrDef [in] Explicit attribute definition to set.
\param val [in] Value to set.
\returns
true if the value is successfully set for the specified attribute, false otherwise.
*/
virtual bool putAttr(const OdIfc::OdIfcAttribute explicitAttrDef, const OdRxValue &val) override;
protected:
// Fields declaration:
OdDAIObjectId m_AppliedLoad; // IfcStructuralLoad
OdDAI::Enum m_GlobalOrLocal; // IfcGlobalOrLocalEnum
// Declare friend classes for inverse attributes functionality:
friend class IfcRelConnectsStructuralActivity;
};
/** \details
A data type that represents a smart pointer to a IfcStructuralActivity object.
*/
typedef OdSmartPtr IfcStructuralActivityPtr;
} // namespace
#include "TD_PackPop.h"
#endif // _IFC4X2_IFCSTRUCTURALACTIVITY_AUTO_IMPL_H