Open CASCADE Technology
7.6.0
|
Class for using global units variables. More...
#include <UnitsMethods.hxx>
Static Public Member Functions | |
static Standard_Real | GetLengthFactorValue (const Standard_Integer theUnit) |
Returns value of unit encoded by parameter theUnit (integer value denoting unit, as described in IGES standard) in millimeters by default. More... | |
static Standard_Real | GetCasCadeLengthUnit (const UnitsMethods_LengthUnit theBaseUnit=UnitsMethods_LengthUnit_Millimeter) |
Returns value of current internal unit for CASCADE in millemeters by default. More... | |
static void | SetCasCadeLengthUnit (const Standard_Real theUnitValue, const UnitsMethods_LengthUnit theBaseUnit=UnitsMethods_LengthUnit_Millimeter) |
Sets value of current internal unit for CASCADE. More... | |
static void | SetCasCadeLengthUnit (const Standard_Integer theUnit) |
Sets value of current internal unit for CASCADE by parameter theUnit (integer value denoting unit, as described in IGES standard) More... | |
static Standard_Real | GetLengthUnitScale (const UnitsMethods_LengthUnit theFromUnit, const UnitsMethods_LengthUnit theToUnit) |
Returns the scale factor for switch from first given unit to second given unit. More... | |
static UnitsMethods_LengthUnit | GetLengthUnitByFactorValue (const Standard_Real theFactorValue, const UnitsMethods_LengthUnit theBaseUnit=UnitsMethods_LengthUnit_Millimeter) |
Returns the enumeration corresponding to the given scale factor. More... | |
static Standard_CString | DumpLengthUnit (const Standard_Real theScaleFactor, const UnitsMethods_LengthUnit theBaseUnit=UnitsMethods_LengthUnit_Millimeter) |
Returns string name for the given scale factor. More... | |
static Standard_CString | DumpLengthUnit (const UnitsMethods_LengthUnit theUnit) |
Returns string for the given value of LengthUnit. More... | |
static UnitsMethods_LengthUnit | LengthUnitFromString (Standard_CString theStr, const Standard_Boolean theCaseSensitive) |
Make conversion of given string to value of LengthUnit. More... | |
Class for using global units variables.
|
static |
Returns string name for the given scale factor.
|
static |
Returns string for the given value of LengthUnit.
|
static |
Returns value of current internal unit for CASCADE in millemeters by default.
|
static |
Returns value of unit encoded by parameter theUnit (integer value denoting unit, as described in IGES standard) in millimeters by default.
|
static |
Returns the enumeration corresponding to the given scale factor.
|
static |
Returns the scale factor for switch from first given unit to second given unit.
|
static |
Make conversion of given string to value of LengthUnit.
|
static |
Sets value of current internal unit for CASCADE by parameter theUnit (integer value denoting unit, as described in IGES standard)
|
static |
Sets value of current internal unit for CASCADE.