File indexing completed on 2025-01-18 10:05:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _UnitsMethods_HeaderFile
0015 #define _UnitsMethods_HeaderFile
0016
0017 #include <Standard.hxx>
0018 #include <Standard_DefineAlloc.hxx>
0019 #include <Standard_Handle.hxx>
0020 #include <UnitsMethods_LengthUnit.hxx>
0021
0022
0023 class UnitsMethods
0024 {
0025 public:
0026
0027 DEFINE_STANDARD_ALLOC
0028
0029
0030
0031
0032
0033 Standard_EXPORT static Standard_Real GetLengthFactorValue(const Standard_Integer theUnit);
0034
0035
0036
0037 Standard_EXPORT static Standard_Real GetCasCadeLengthUnit(const UnitsMethods_LengthUnit theBaseUnit = UnitsMethods_LengthUnit_Millimeter);
0038
0039
0040 Standard_EXPORT static void SetCasCadeLengthUnit(const Standard_Real theUnitValue,
0041 const UnitsMethods_LengthUnit theBaseUnit = UnitsMethods_LengthUnit_Millimeter);
0042
0043
0044
0045
0046 Standard_EXPORT static void SetCasCadeLengthUnit(const Standard_Integer theUnit);
0047
0048
0049 Standard_EXPORT static Standard_Real GetLengthUnitScale(const UnitsMethods_LengthUnit theFromUnit,
0050 const UnitsMethods_LengthUnit theToUnit);
0051
0052
0053 Standard_EXPORT static UnitsMethods_LengthUnit GetLengthUnitByFactorValue(const Standard_Real theFactorValue,
0054 const UnitsMethods_LengthUnit theBaseUnit = UnitsMethods_LengthUnit_Millimeter);
0055
0056
0057 Standard_EXPORT static Standard_CString DumpLengthUnit(const Standard_Real theScaleFactor,
0058 const UnitsMethods_LengthUnit theBaseUnit = UnitsMethods_LengthUnit_Millimeter);
0059
0060
0061 Standard_EXPORT static Standard_CString DumpLengthUnit(const UnitsMethods_LengthUnit theUnit);
0062
0063
0064 Standard_EXPORT static UnitsMethods_LengthUnit LengthUnitFromString(Standard_CString theStr,
0065 const Standard_Boolean theCaseSensitive);
0066
0067 };
0068
0069 #endif