CFx SDK Documentation 2024 SP0
|
#include <DbUnitsFormatter.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdDbUnitsFormatter) | |
virtual double | toUserAngle (double wcsAngle) const =0 |
virtual double | fromUserAngle (double ucsAngle) const =0 |
virtual OdString | formatPoint (const OdGePoint3d &value) const =0 |
virtual OdGePoint3d | unformatPoint (const OdString &string) const =0 |
virtual OdGePoint3d | toUCS (const OdGePoint3d &wcsPt) const =0 |
virtual OdGePoint3d | fromUCS (const OdGePoint3d &ucsPt) const =0 |
Public Member Functions inherited from OdDbBaseUnitsFormatter | |
ODRX_DECLARE_MEMBERS (OdDbBaseUnitsFormatter) | |
virtual OdString | formatCmColor (const OdCmColorBase &value) const |
virtual OdSharedPtr< OdCmColorBase > | unformatCmColor (const OdString &string) const |
virtual OdString | formatLinear (double value) const |
virtual double | unformatLinear (const OdString &string) const |
virtual OdString | formatAngle (double value) const |
virtual double | unformatAngle (const OdString &string) const |
Public Member Functions inherited from OdUnitsFormatter | |
ODRX_DECLARE_MEMBERS (OdUnitsFormatter) | |
virtual OdString | formatCmColor (const OdCmColorBase &value) const =0 |
virtual OdSharedPtr< OdCmColorBase > | unformatCmColor (const OdString &string) const =0 |
virtual OdString | formatLinear (double value) const =0 |
virtual double | unformatLinear (const OdString &string) const =0 |
virtual OdString | formatAngle (double value) const =0 |
virtual double | unformatAngle (const OdString &string) const =0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static OdString | formatColor (const OdCmColor &value) |
static OdCmColor | unformatColor (const OdString &string) |
Static Public Member Functions inherited from OdUnitsFormatter | |
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 OdString | formatA_unnorm (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 Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Additional Inherited Members | |
Public Types inherited from OdUnitsFormatter | |
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 } |
Protected Member Functions inherited from OdDbBaseUnitsFormatter | |
OdDbBaseUnitsFormatter () | |
Static Protected Member Functions inherited from OdDbBaseUnitsFormatter | |
static bool | unformatTo (const OdString &string, OdCmColorBase &color, enum OdCmEntityColor::ColorMethod withMethodOnly=(enum OdCmEntityColor::ColorMethod) 0) |
This class defines the interface for a Units Formatter. <group OdDb_Classes>
Definition at line 36 of file DbUnitsFormatter.h.
Returns the specified color value or OdDbColor object as a string.
value | [in] Value to format. |
|
pure virtual |
Returns the specified 3D point value as a string.
value | [in] Value to format. |
Implemented in OdDbUnitsFormatterImpl, and CFxUnitsFormatter.
|
pure virtual |
Returns the specified UCS point as a WCS point.
ucsPt | [in] UCS point. |
Implemented in OdDbUnitsFormatterImpl, and CFxUnitsFormatter.
|
pure virtual |
Returns the specified UCS angle as an angle in the WCS.
ucsAngle | [in] UCS angle. |
Implemented in OdDbUnitsFormatterImpl, and CFxUnitsFormatter.
OdDbUnitsFormatter::ODRX_DECLARE_MEMBERS | ( | OdDbUnitsFormatter | ) |
|
pure virtual |
Returns the specified WCS point as a UCS point.
wcsPt | [in] WCS point. |
Implemented in OdDbUnitsFormatterImpl, and CFxUnitsFormatter.
|
pure virtual |
Returns the specified WCS angle as an angle in the UCS.
wcsAngle | [in] WCS angle. |
Implemented in CFxUnitsFormatter, and OdDbUnitsFormatterImpl.
Returns the specified string as an OdCmColor object.
string | [in] String to unformat. |
|
pure virtual |
Returns the specified string as a point value.
string | [in] String to unformat. |
Implemented in OdDbUnitsFormatterImpl, and CFxUnitsFormatter.