#include <OdUnitsFormatter.h>
|
| static bool | isZeroFeetSuppressed (int dimzin) |
| |
| static bool | isZeroInchesSuppressed (int dimzin) |
| |
| static bool | isZeroFeetSuppressed2 (int dimzin) |
| |
| static bool | isZeroInchesSuppressed2 (int dimzin) |
| |
| static OdString | formatL (double value, LUnits lUnits, int precision, int dimzin, int unitMode, const OdChar *decsep=0, const OdChar *thsep=0, bool useStdRound=true) |
| |
| static OdString | formatArea (double value, LUnits lUnits, int precision, int dimzin, int unitMode, const OdChar *decsep=0, const OdChar *thsep=0) |
| |
| static double | unformatL (const OdString &string) |
| |
| static OdString | formatA (double value, AUnits aUnits, int precision, int dimazin, int unitMode, const OdChar *decsep=0) |
| |
| static OdString | formatA_unnorm (double value, AUnits aUnits, int precision, int dimazin, int unitMode, const OdChar *decsep=0) |
| |
| static double | unformatA (const OdString &string) |
| |
| static double | unformatA_unnorm (const OdString &string, bool refuseDots=false) |
| |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| |
| static OdRxClass * | desc () |
| |
| static void | rxInit () |
| |
| static void | rxUninit () |
| |
<group Other_Classes>
Definition at line 61 of file OdUnitsFormatter.h.
◆ AUnits
| Enumerator |
|---|
| kDegrees | |
| kDegMinSec | |
| kGrads | |
| kRadians | |
| kSurveyors | |
Definition at line 219 of file OdUnitsFormatter.h.
◆ LUnits
| Enumerator |
|---|
| kScientific | |
| kDecimal | |
| kEngineering | |
| kArchitectural | |
| kFractional | |
| kWindowsDesktop | |
Definition at line 66 of file OdUnitsFormatter.h.
◆ formatA()
| static OdString OdUnitsFormatter::formatA |
( |
double | value, |
|
|
AUnits | aUnits, |
|
|
int | precision, |
|
|
int | dimazin, |
|
|
int | unitMode, |
|
|
const OdChar * | decsep = 0 ) |
|
static |
Converts angular value to string using specified formatting settings.
- Returns
- specified angular value as a string.
- Parameters
-
| value | [in] Value to format. |
| aUnits | [in] Angle units. |
| precision | [in] Number of decimal places. |
| dimazin | [in] A combination of ZeroSuppressionFlags from OdDbDatabase variable dimazin. |
| unitMode | [in] UNITMODE value. |
| decsep | [in] Decimal separator. |
◆ formatA_unnorm()
| static OdString OdUnitsFormatter::formatA_unnorm |
( |
double | value, |
|
|
AUnits | aUnits, |
|
|
int | precision, |
|
|
int | dimazin, |
|
|
int | unitMode, |
|
|
const OdChar * | decsep = 0 ) |
|
static |
Converts angular value to string using specified formatting settings without normalizing it to [0, 2*Pi] range.
- Returns
- the specified angular value as a string.
- Parameters
-
| value | [in] Value to format. |
| aUnits | [in] Angle units. |
| precision | [in] Number of decimal places. |
| dimazin | [in] A combination of ZeroSuppressionFlags from OdDbDatabase variable dimazin. |
| unitMode | [in] UNITMODE value. |
| decsep | [in] Decimal separator. |
◆ formatAngle()
| virtual OdString OdUnitsFormatter::formatAngle |
( |
double | value | ) |
const |
|
pure virtual |
◆ formatArea()
| static OdString OdUnitsFormatter::formatArea |
( |
double | value, |
|
|
LUnits | lUnits, |
|
|
int | precision, |
|
|
int | dimzin, |
|
|
int | unitMode, |
|
|
const OdChar * | decsep = 0, |
|
|
const OdChar * | thsep = 0 ) |
|
static |
Converts area value to string using specified formatting settings.
- Returns
- specified area value as a string.
- Parameters
-
| value | [in] Value to format. |
| lUnits | [in] Length units. |
| precision | [in] Number of decimal places. |
| dimzin | [in] A combination of ZeroSuppressionFlags. |
| unitMode | [in] UNITMODE value. |
| decsep | [in] Decimal separator. |
| thsep | [in] Thousands separator. |
◆ formatCmColor()
◆ formatL()
| static OdString OdUnitsFormatter::formatL |
( |
double | value, |
|
|
LUnits | lUnits, |
|
|
int | precision, |
|
|
int | dimzin, |
|
|
int | unitMode, |
|
|
const OdChar * | decsep = 0, |
|
|
const OdChar * | thsep = 0, |
|
|
bool | useStdRound = true ) |
|
static |
Converts linear value to string using specified formatting settings.
- Returns
- specified linear value as a string.
- Parameters
-
| value | [in] Value to format. |
| lUnits | [in] Length units. |
| precision | [in] Number of decimal places. |
| dimzin | [in] A combination of ZeroSuppressionFlags. |
| unitMode | [in] UNITMODE value. |
| decsep | [in] Decimal separator. |
| thsep | [in] Thousands separator. |
| useStdRound | [in] Usage of std::round. |
◆ formatLinear()
| virtual OdString OdUnitsFormatter::formatLinear |
( |
double | value | ) |
const |
|
pure virtual |
◆ isZeroFeetSuppressed()
| static bool OdUnitsFormatter::isZeroFeetSuppressed |
( |
int | dimzin | ) |
|
|
static |
Checks if dimzin value specifies zero feet suppression.
- Returns
- true if the specified dimzin values contains kIncludesZeroFeetAndPreciselyZeroInches flag.
- Parameters
-
| dimzin | [in] Value to check. |
◆ isZeroFeetSuppressed2()
| static bool OdUnitsFormatter::isZeroFeetSuppressed2 |
( |
int | dimzin | ) |
|
|
static |
Checks if dimzin value specifies zero feet suppression.
- Returns
- true if the specified dimzin values contains kIncludesZeroFeetAndPreciselyZeroInches flag.
- Parameters
-
| dimzin | [in] Value to check. |
◆ isZeroInchesSuppressed()
| static bool OdUnitsFormatter::isZeroInchesSuppressed |
( |
int | dimzin | ) |
|
|
static |
Checks if dimzin value specifies zero inch suppression.
- Returns
- true if the specified dimzin values contains kIncludesZeroFeetAndSuppressesZeroInches flag.
- Parameters
-
| dimzin | [in] Value to check. |
◆ isZeroInchesSuppressed2()
| static bool OdUnitsFormatter::isZeroInchesSuppressed2 |
( |
int | dimzin | ) |
|
|
static |
Checks if dimzin value specifies zero inch suppression.
- Returns
- true if the specified dimzin values contains kIncludesZeroFeetAndSuppressesZeroInches flag.
- Parameters
-
| dimzin | [in] Value to check. |
◆ ODRX_DECLARE_MEMBERS()
◆ unformatA()
| static double OdUnitsFormatter::unformatA |
( |
const OdString & | string | ) |
|
|
static |
Converts string to angular value using specified formatting settings.
- Returns
- specified string as an angular value.
- Parameters
-
| string | [in] String to unformat. |
◆ unformatA_unnorm()
| static double OdUnitsFormatter::unformatA_unnorm |
( |
const OdString & | string, |
|
|
bool | refuseDots = false ) |
|
static |
Converts string to angular value using specified formatting settings without normalizing it to [0, 2*Pi] range.
- Returns
- specified string as an angular value.
- Parameters
-
| string | [in] String to unformat. |
| refuseDots | [in] Specifies whether to refuse having dots in formatted value. |
◆ unformatAngle()
| virtual double OdUnitsFormatter::unformatAngle |
( |
const OdString & | string | ) |
const |
|
pure virtual |
◆ unformatCmColor()
◆ unformatL()
| static double OdUnitsFormatter::unformatL |
( |
const OdString & | string | ) |
|
|
static |
Returns the specified length string as a length value.
- Parameters
-
| string | [in] String to unformat. |
◆ unformatLinear()
| virtual double OdUnitsFormatter::unformatLinear |
( |
const OdString & | string | ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: