#include <DbUnitsFormatterImpl.h>
|
enum | LUnits {
kScientific = 1
, kDecimal = 2
, kEngineering = 3
, kArchitectural = 4
,
kFractional = 5
, kWindowsDesktop = 6
} |
|
enum | DimzinValues {
kSuppressesZeroFeetAndPreciselyZeroInches = 0
, kIncludesZeroFeetAndPreciselyZeroInches = 1
, kIncludesZeroFeetAndSuppressesZeroInches = 2
, kIncludesZeroInchesAndSuppressesZeroFeet = 3
,
kSuppressesLeadingZeros = 4
, kSuppressesTrailingZeros = 8
, kSuppressesBothLeadingAndTrailingZeros = 12
} |
|
enum | AUnits {
kDegrees = 0
, kDegMinSec = 1
, kGrads = 2
, kRadians = 3
,
kSurveyors = 4
} |
|
static OdString | formatColor (const OdCmColor &value) |
|
static OdCmColor | unformatColor (const OdString &string) |
|
static bool | isZeroFeetSuppressed (int dimzin) |
|
static bool | isZeroInchesSuppressed (int dimzin) |
|
static OdString | formatL (double value, LUnits lUnits, int precision, int dimzin, int unitMode, const OdChar *decsep=0, const OdChar *thsep=0) |
|
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 dimzin, 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 () |
|
This class provides default implementation for OdDbUnitsFormatter. <group OdDb_Classes>
Definition at line 37 of file DbUnitsFormatterImpl.h.
◆ OdDbUnitsFormatterImpl()
OdDbUnitsFormatterImpl::OdDbUnitsFormatterImpl |
( |
| ) |
|
|
protected |
◆ formatAngle()
virtual OdString OdDbUnitsFormatterImpl::formatAngle |
( |
double |
value | ) |
const |
|
virtual |
Returns the specified angle value as a string.
- Parameters
-
value | [in] Value to format. |
Reimplemented from OdDbBaseUnitsFormatter.
◆ formatCmColor()
◆ formatLinear()
virtual OdString OdDbUnitsFormatterImpl::formatLinear |
( |
double |
value | ) |
const |
|
virtual |
Returns the specified distance value as a string.
- Parameters
-
value | [in] Value to format. |
Reimplemented from OdDbBaseUnitsFormatter.
◆ formatPoint()
Returns the specified 3D point value as a string.
- Parameters
-
value | [in] Value to format. |
Implements OdDbUnitsFormatter.
◆ fromUCS()
◆ fromUserAngle()
virtual double OdDbUnitsFormatterImpl::fromUserAngle |
( |
double |
ucsAngle | ) |
const |
|
virtual |
Returns the specified UCS angle as an angle in the WCS.
- Parameters
-
Implements OdDbUnitsFormatter.
◆ ODRX_DECLARE_MEMBERS()
◆ setDatabase()
◆ toUCS()
◆ toUserAngle()
virtual double OdDbUnitsFormatterImpl::toUserAngle |
( |
double |
wcsAngle | ) |
const |
|
virtual |
Returns the specified WCS angle as an angle in the UCS.
- Parameters
-
Implements OdDbUnitsFormatter.
◆ unformatAngle()
virtual double OdDbUnitsFormatterImpl::unformatAngle |
( |
const OdString & |
string | ) |
const |
|
virtual |
Returns the specified string as an angle value.
- Parameters
-
string | [in] String to unformat. |
Reimplemented from OdDbBaseUnitsFormatter.
◆ unformatCmColor()
◆ unformatLinear()
virtual double OdDbUnitsFormatterImpl::unformatLinear |
( |
const OdString & |
string | ) |
const |
|
virtual |
Returns the specified string as a distance value.
- Parameters
-
string | [in] String to unformat. |
Reimplemented from OdDbBaseUnitsFormatter.
◆ unformatPoint()
Returns the specified string as a point value.
- Parameters
-
string | [in] String to unformat. |
Implements OdDbUnitsFormatter.
◆ m_pDb
The documentation for this class was generated from the following file: