|
CFx SDK Documentation 2026 SP0
|
#include <IfcConstraintAutoImpl.h>
Public Member Functions | |
| const OdAnsiString & | getName () const |
| void | setName (const OdAnsiString &Name) |
| const OdAnsiString & | getDescription () const |
| void | setDescription (const OdAnsiString &Description) |
| IfcConstraintEnum | getConstraintGrade () const |
| void | setConstraintGrade (IfcConstraintEnum ConstraintGrade) |
| const OdAnsiString & | getConstraintSource () const |
| void | setConstraintSource (const OdAnsiString &ConstraintSource) |
| IfcActorSelect | creatingActor () |
| const OdAnsiString & | getCreationTime () const |
| void | setCreationTime (const OdAnsiString &CreationTime) |
| const OdAnsiString & | getUserDefinedGrade () const |
| void | setUserDefinedGrade (const OdAnsiString &UserDefinedGrade) |
| void | getInvHasExternalReferences (OdDAIObjectIds &HasExternalReferences) const |
| void | getInvPropertiesForConstraint (OdDAIObjectIds &PropertiesForConstraint) const |
| IfcConstraint () | |
| virtual OdResult | inFields (OdDAI::OdSpfFilerBase *rdFiler) override |
| virtual OdResult | outFields (OdDAI::OdSpfFilerBase *wrFiler) override |
| virtual OdDAI::Entity * | getInstanceType () const override |
| virtual OdRxValue | getAttr (const char *attrName) const override |
| virtual bool | comparedToEarlyImpl (const OdDAI::ApplicationInstance *pOther, OdRx::Ordering &ordering) const override |
| virtual void | unsetAttr (const char *explicitAttrName) override |
| virtual bool | testAttr (const char *explicitAttrName) const override |
| virtual bool | putAttr (const char *explicitAttrName, const OdRxValue &val) override |
| virtual bool | isKindOf (OdIfc::OdIfcEntityType entityType) const override |
| virtual OdIfc::OdIfcEntityType | type () const override |
| virtual OdRxValue | getAttr (const OdIfc::OdIfcAttribute attrDef) const override |
| virtual void | unsetAttr (const OdIfc::OdIfcAttribute explicitAttrDef) override |
| virtual bool | testAttr (const OdIfc::OdIfcAttribute explicitAttrDef) const override |
| virtual bool | putAttr (const OdIfc::OdIfcAttribute explicitAttrDef, const OdRxValue &val) override |
Public Member Functions inherited from OdIfc4::OdIfc4Instance | |
| void | setInverseCounterParts () override |
Public Member Functions inherited from OdIfc::OdIfcInstance | |
| ODRX_DECLARE_MEMBERS (OdIfcInstance) | |
| OdIfcInstance () | |
| ~OdIfcInstance () | |
| bool | isInstanceOf (OdIfcEntityType entityType) const |
| IfcOpResult | resolved () |
| void | resolve (IfcOpResult resolved, void *resPtr) |
| void | unresolve () |
| virtual void | setGsNode (OdGsCache *pGsNode) |
| virtual OdGsCache * | gsNode () const |
| virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const |
| virtual bool | subWorldDraw (OdGiWorldDraw *wd) const |
| virtual OdDbStub * | ownerId () const |
Protected Attributes | |
| OdAnsiString | m_Name |
| OdAnsiString | m_Description |
| OdDAI::Enum | m_ConstraintGrade |
| OdAnsiString | m_ConstraintSource |
| OdDAI::Select | m_CreatingActor |
| OdAnsiString | m_CreationTime |
| OdAnsiString | m_UserDefinedGrade |
Protected Attributes inherited from OdIfc::OdIfcInstance | |
| void * | m_resPtr |
| IfcOpResult | m_resolved |
Friends | |
| class | IfcExternalReferenceRelationship |
| class | IfcResourceConstraintRelationship |
Additional Inherited Members | |
Static Public Member Functions inherited from OdIfc::OdIfcInstance | |
| static const OdGePoint3d * | asPoint3d (const OdIfcInstance *inst) |
| static const OdGePoint2d * | asPoint2d (const OdIfcInstance *inst) |
| static const OdGeVector3d * | asVector3d (const OdIfcInstance *inst) |
| static const OdGeVector2d * | asVector2d (const OdIfcInstance *inst) |
| static const OdGeMatrix2d * | asMatrix2d (const OdIfcInstance *inst) |
| static const OdGeMatrix3d * | asMatrix3d (const OdIfcInstance *inst) |
| static OdIfcCompoundPtr | asCompound (OdSmartPtr< OdIfcInstance > inst) |
| static const OdCmEntityColor * | asRgbColor (const OdIfcInstance *inst) |
An IfcConstraint is used to define a constraint or limiting value or boundary condition that can be applied to an object or to the value of a property.
Constraints can be subdivided into user-defined constraints and system-defined constraints. User-defined constraints are applied by a user and are restricted to high-level definitions such as object properties. System-defined constraints can apply to any object attribute, are typically defined by an application to enforce data validation or parametric behavior, and are intended to be enforced by applications but not to be directly editable by an end-user.
\changes
IFC4 changes: Type of the CreationTime attribute changed from "IfcDateTimeSelect" to "IfcDateTime" Inverse attribute ClassifiedAs renamed to HasExternalReferences Type of the ClassifiedAs inverse attribute changed from "SET OF [0:?] IfcConstraintClassificationRelationship FOR ClassifiedConstraint" to "SET OF [0:?] IfcExternalReferenceRelationship FOR RelatedResourceObjects" Inverse attribute RelatesConstraints to PropertiesForConstraint Type of the inverse attribute RelatesConstraints changed from "SET OF [0:?] IfcConstraintRelationship FOR RelatingConstraint" to "SET OF [0:?] IfcResourceConstraintRelationship FOR RelatingConstraint"
Definition at line 63 of file Ifc4/IfcConstraintAutoImpl.h.
| OdIfc4::IfcConstraint::IfcConstraint | ( | ) |
Default constructor for the IfcConstraint class.
|
overridevirtual |
Early-bound version of instances comparison.
| pOther | [in] Other application instance. |
| ordering | [out] Receives the ordering (comparison) status. |
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
| IfcActorSelect OdIfc4::IfcConstraint::creatingActor | ( | ) |
Returns the value of CreatingActor attribute. This attribute represents person and/or organization that has created the constraint.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
| IfcConstraintEnum OdIfc4::IfcConstraint::getConstraintGrade | ( | ) | const |
Returns the value of ConstraintGrade attribute. This attribute represents enumeration that qualifies the type of constraint.
| const OdAnsiString & OdIfc4::IfcConstraint::getConstraintSource | ( | ) | const |
Returns the value of ConstraintSource attribute. This attribute represents any source material, such as a code or standard, from which the constraint originated.
| const OdAnsiString & OdIfc4::IfcConstraint::getCreationTime | ( | ) | const |
Returns the value of CreationTime attribute. This attribute represents time when information specifying the constraint instance was created.
| const OdAnsiString & OdIfc4::IfcConstraint::getDescription | ( | ) | const |
Returns the value of Description attribute. This attribute represents a human-readable description that can apply additional information about a constraint.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
| void OdIfc4::IfcConstraint::getInvHasExternalReferences | ( | OdDAIObjectIds & | HasExternalReferences | ) | const |
Returns the value of HasExternalReferences attribute. This attribute represents reference to an external references, e.g. library, classification, or document information, that are associated to the constraint.
| HasExternalReferences | [out] Receives the value of HasExternalReferences attribute. |
| void OdIfc4::IfcConstraint::getInvPropertiesForConstraint | ( | OdDAIObjectIds & | PropertiesForConstraint | ) | const |
Returns the value of PropertiesForConstraint attribute. This attribute represents reference to the properties to which the constraint is applied.
| PropertiesForConstraint | [out] Receives the value of PropertiesForConstraint attribute. |
| const OdAnsiString & OdIfc4::IfcConstraint::getName | ( | ) | const |
Returns the value of Name attribute. This attribute represents a human-readable name that is used for the constraint.
| const OdAnsiString & OdIfc4::IfcConstraint::getUserDefinedGrade | ( | ) | const |
Returns the value of UserDefinedGrade attribute. This attribute allows specification of user-defined grade of the constraint beyond the enumeration values provided by ConstraintGrade attribute of type IfcConstraintEnum. When a value is provided for attribute UserDefinedGrade in parallel the attribute ConstraintGrade has enumeration value USERDEFINED.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrName | [in] Explicit name of the attribute to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
| void OdIfc4::IfcConstraint::setConstraintGrade | ( | IfcConstraintEnum | ConstraintGrade | ) |
Sets the value of ConstraintGrade attribute. This attribute represents enumeration that qualifies the type of constraint.
| ConstraintGrade | [in] Constraint grade to set. |
| void OdIfc4::IfcConstraint::setConstraintSource | ( | const OdAnsiString & | ConstraintSource | ) |
Sets the value of ConstraintSource attribute. This attribute represents any source material, such as a code or standard, from which the constraint originated.
| ConstraintSource | [in] Constraint source to set. |
| void OdIfc4::IfcConstraint::setCreationTime | ( | const OdAnsiString & | CreationTime | ) |
Sets the value of CreationTime attribute. This attribute represents time when information specifying the constraint instance was created.
| CreationTime | [in] Creation time to set. |
| void OdIfc4::IfcConstraint::setDescription | ( | const OdAnsiString & | Description | ) |
Sets the value of Description attribute. This attribute represents a human-readable description that can apply additional information about a constraint.
| Description | [in] Description to set. |
| void OdIfc4::IfcConstraint::setName | ( | const OdAnsiString & | Name | ) |
Sets the value of Name attribute. This attribute represents a human-readable name that is used for the constraint.
| Name | [in] Name to set. |
| void OdIfc4::IfcConstraint::setUserDefinedGrade | ( | const OdAnsiString & | UserDefinedGrade | ) |
Sets the value of UserDefinedGrade attribute. This attribute allows specification of user-defined grade of the constraint beyond the enumeration values provided by ConstraintGrade attribute of type IfcConstraintEnum. When a value is provided for attribute UserDefinedGrade in parallel the attribute ConstraintGrade has enumeration value USERDEFINED.
| UserDefinedGrade | [in] User-defined grade to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4::IfcMetric, and OdIfc4::IfcObjective.
|
friend |
Definition at line 332 of file Ifc4/IfcConstraintAutoImpl.h.
|
friend |
Definition at line 333 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 325 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 326 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 327 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 328 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 324 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 323 of file Ifc4/IfcConstraintAutoImpl.h.
|
protected |
Definition at line 329 of file Ifc4/IfcConstraintAutoImpl.h.