|
CFx SDK Documentation 2026 SP0
|
#include <IfcMetricAutoImpl.h>
Public Member Functions | |
| IfcBenchmarkEnum | getBenchmark () const |
| void | setBenchmark (IfcBenchmarkEnum Benchmark) |
| const OdAnsiString & | getValueSource () const |
| void | setValueSource (const OdAnsiString &ValueSource) |
| IfcMetricValueSelect | dataValue () |
| const OdDAIObjectId & | getReferencePath () const |
| void | setReferencePath (const OdDAIObjectId &ReferencePath) |
| IfcMetric () | |
| 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 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 OdIfc4x1::IfcConstraint | |
| 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 () | |
Public Member Functions inherited from OdIfc4x1::OdIfc4x1Instance | |
| 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 | |
| OdDAI::Enum | m_Benchmark |
| OdAnsiString | m_ValueSource |
| OdDAI::Select | m_DataValue |
| OdDAIObjectId | m_ReferencePath |
Protected Attributes inherited from OdIfc4x1::IfcConstraint | |
| 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 |
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 IfcMetric is used to capture quantitative resultant metrics that can be applied to objectives. IfcMetric definition captures the quantitative aspects of a constraint.
<IMAGE ifcmetric_userdefined_constraint>
\changes
IFC4 changes: Attribute DataValue is optional
Definition at line 52 of file Ifc4x1/IfcMetricAutoImpl.h.
| OdIfc4x1::IfcMetric::IfcMetric | ( | ) |
Default constructor for the IfcMetric class.
| IfcMetricValueSelect OdIfc4x1::IfcMetric::dataValue | ( | ) |
Returns the value of DataValue attribute. This attribute represents a value to be compared on associated objects. A null value indicates comparison to null.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc4x1::IfcConstraint.
| IfcBenchmarkEnum OdIfc4x1::IfcMetric::getBenchmark | ( | ) | const |
Returns the value of Benchmark attribute. This attribute represents the type of benchmark data.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc4x1::IfcConstraint.
| const OdDAIObjectId & OdIfc4x1::IfcMetric::getReferencePath | ( | ) | const |
Returns the value of ReferencePath attribute. This attribute represents optional path to an attribute to be constrained on associated objects. If provided, the metric can be validated by resolving the path to the current value on associated object(s), and comparing such value with DataValue according to the Benchmark.
| const OdAnsiString & OdIfc4x1::IfcMetric::getValueSource | ( | ) | const |
Returns the value of ValueSource attribute. This attribute represents reference source for data values. If DataValue refers to an IfcTable, this attribute identifies the relevant column identified by IfcTableColumn.Identifier.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
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 OdIfc4x1::IfcConstraint.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x1::IfcConstraint.
| void OdIfc4x1::IfcMetric::setBenchmark | ( | IfcBenchmarkEnum | Benchmark | ) |
Sets the value of Benchmark attribute. This attribute represents the type of benchmark data.
| Benchmark | [in] Benchmark to set. |
| void OdIfc4x1::IfcMetric::setReferencePath | ( | const OdDAIObjectId & | ReferencePath | ) |
Sets the value of ReferencePath attribute. This attribute represents optional path to an attribute to be constrained on associated objects. If provided, the metric can be validated by resolving the path to the current value on associated object(s), and comparing such value with DataValue according to the Benchmark.
| ReferencePath | [in] Reference path to set. |
| void OdIfc4x1::IfcMetric::setValueSource | ( | const OdAnsiString & | ValueSource | ) |
Sets the value of ValueSource attribute. This attribute represents reference source for data values. If DataValue refers to an IfcTable, this attribute identifies the relevant column identified by IfcTableColumn.Identifier.
| ValueSource | [in] Value source to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc4x1::IfcConstraint.
|
protected |
Definition at line 236 of file Ifc4x1/IfcMetricAutoImpl.h.
|
protected |
Definition at line 238 of file Ifc4x1/IfcMetricAutoImpl.h.
|
protected |
Definition at line 239 of file Ifc4x1/IfcMetricAutoImpl.h.
|
protected |
Definition at line 237 of file Ifc4x1/IfcMetricAutoImpl.h.