|
CFx SDK Documentation 2026 SP0
|
#include <IfcConversionBasedUnitAutoImpl.h>
Public Member Functions | |
| const OdAnsiString & | getName () const |
| void | setName (const OdAnsiString &Name) |
| const OdDAIObjectId & | getConversionFactor () const |
| void | setConversionFactor (const OdDAIObjectId &ConversionFactor) |
| void | getInvHasExternalReference (OdDAIObjectIds &HasExternalReference) const |
| IfcConversionBasedUnit () | |
| 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 OdIfc4x4::IfcNamedUnit | |
| const OdDAIObjectId & | getDimensions () const |
| void | setDimensions (const OdDAIObjectId &Dimensions) |
| IfcUnitEnum | getUnitType () const |
| void | setUnitType (IfcUnitEnum UnitType) |
| IfcNamedUnit () | |
Public Member Functions inherited from OdIfc4x4::OdIFC4X4Instance | |
| 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 |
| OdDAIObjectId | m_ConversionFactor |
Protected Attributes inherited from OdIfc4x4::IfcNamedUnit | |
| OdDAIObjectId | m_Dimensions |
| OdDAI::Enum | m_UnitType |
Protected Attributes inherited from OdIfc::OdIfcInstance | |
| void * | m_resPtr |
| IfcOpResult | m_resolved |
Friends | |
| class | IfcExternalReferenceRelationship |
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 IfcConversionBasedUnit is used to define a unit that has a conversion rate to a base unit. To identify some commonly used conversion based units, the standard designations (case insensitive) for the Name attribute are indicated in the table below.
Name Description inch Indicates project directives issued by the actor. foot Indicates groups for which the actor is responsible. US survey foot Indicates products for which the actor is responsible. yard Indicates processes for which the actor is responsible. mile Indicates resources for which the actor is responsible. square inch Area measure equal to 0.0006452 square meters square foot Area measure equal to 0.09290 square meters square yard Area measure equal to 0.83612736 square meters acre Area measure equal to 4046.86 square meters square mile Area measure equal to 2 588 881 square meters cubic inch Volume measure equal to 0.00001639 cubic meters cubic foot Volume measure equal to 0.02832 cubic meters cubic yard Volume measure equal to 0.7636 cubic meters litre Volume measure equal to 0.001 cubic meters fluid ounce UK Volume measure equal to 0.0000284130625 cubic meters fluid ounce US Volume measure equal to 0.00002957353 cubic meters pint UK Volume measure equal to 0.000568 cubic meters pint US Volume measure equal to 0.000473 cubic meters gallon UK Volume measure equal to 0.004546 cubic meters gallon US Volume measure equal to 0.003785 cubic meters degree Angle measure equal to π/180 rad ounce Mass measure equal to 28.35 g pound Mass measure equal to 0.454 kg ton UK Mass measure equal to 1016.0469088 kg, also known as long ton, gross ton, shipper's ton ton US Mass measure equal to 907.18474 kg, also known as short ton, net ton lbf Force measure equal to 4.4482216153 N, pound-force kip Force measure equal to 4448.2216153 N, kilopound-force psi Pressure measure equal to 6894.7572932 Pa, pound-force per square inch ksi Pressure measure equal to 6894757.2932 Pa, kilopound-force per square inch minute Time measure equal to 60 s hour Time measure equal to 3600 s day Time measure equal to 86400 s btu Energy measure equal to 1055.056 J, British Thermal Unit
Definition at line 79 of file IFC4X4/IfcConversionBasedUnitAutoImpl.h.
| OdIfc4x4::IfcConversionBasedUnit::IfcConversionBasedUnit | ( | ) |
Default constructor for the IfcConversionBasedUnit class.
|
overridevirtual |
Early-bound version of instances comparison.
| pOther | [in] Other application instance. |
| ordering | [out] Receives the ordering (comparison) status. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
| const OdDAIObjectId & OdIfc4x4::IfcConversionBasedUnit::getConversionFactor | ( | ) | const |
Returns the value of ConversionFactor attribute. This attribute represents the physical quantity from which the converted unit is derived.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
| void OdIfc4x4::IfcConversionBasedUnit::getInvHasExternalReference | ( | OdDAIObjectIds & | HasExternalReference | ) | const |
Returns the value of HasExternalReference attribute. This attribute represents reference to external information, e.g. library, classification, or document information, which is associated with the conversion-based unit.
| HasExternalReference | [out] Receives the value of HasExternalReference attribute. |
| const OdAnsiString & OdIfc4x4::IfcConversionBasedUnit::getName | ( | ) | const |
Returns the value of Name attribute. This attribute represents the word, or group of words, by which the conversion based unit is referred to.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
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 OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
| void OdIfc4x4::IfcConversionBasedUnit::setConversionFactor | ( | const OdDAIObjectId & | ConversionFactor | ) |
Sets the value of ConversionFactor attribute. This attribute represents the physical quantity from which the converted unit is derived.
| ConversionFactor | [in] Conversion factor to set. |
| void OdIfc4x4::IfcConversionBasedUnit::setName | ( | const OdAnsiString & | Name | ) |
Sets the value of Name attribute. This attribute represents the word, or group of words, by which the conversion based unit is referred to.
| Name | [in] Name to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc4x4::IfcNamedUnit.
Reimplemented in OdIfc4x4::IfcConversionBasedUnitWithOffset.
|
friend |
Definition at line 264 of file IFC4X4/IfcConversionBasedUnitAutoImpl.h.
|
protected |
Definition at line 261 of file IFC4X4/IfcConversionBasedUnitAutoImpl.h.
|
protected |
Definition at line 260 of file IFC4X4/IfcConversionBasedUnitAutoImpl.h.