#include <IfcUnitConverter.h>
A class that implements conversion of different units to the SI units.
Definition at line 42 of file IfcUnitConverter.h.
◆ appendUnit() [1/2]
void OdIfcUnitConverter::appendUnit |
( |
const OdAnsiString & |
unitType, |
|
|
const OdDAIObjectId & |
unitId |
|
) |
| |
Appends a new convertible unit.
- Parameters
-
unitType | [in] A string that contains the type of the convertible unit. |
unitId | [in] An identifier of the corresponding IfcConversionBasedUnit object. |
◆ appendUnit() [2/2]
void OdIfcUnitConverter::appendUnit |
( |
const OdDAIObjectId & |
unitId | ) |
|
Appends a new convertible unit.
- Parameters
-
unitId | [in] An identifier of the corresponding IfcConversionBasedUnit object. |
◆ clearUnits()
void OdIfcUnitConverter::clearUnits |
( |
| ) |
|
Removes all convertible units.
◆ convertToSIUnit()
double OdIfcUnitConverter::convertToSIUnit |
( |
const OdAnsiString & |
unitType, |
|
|
double |
val |
|
) |
| const |
Performs an attempt to convert a specified unit to the SI unit.
- Parameters
-
unitType | [in] A string that contains the type of the unit to be converted. |
val | [in] A unit value. |
- Returns
- A double value that contains the converted value of the specified unit type.
◆ OdIfcFile
The documentation for this class was generated from the following file: