16 #if !defined(OPENNURBS_STRING_VALUE_INC_) 17 #define OPENNURBS_STRING_VALUE_INC_ 88 const wchar_t*
string,
90 const wchar_t** string_end
110 #pragma region RH_C_SHARED_ENUM [ON_LengthValue::StringFormat] [Rhino.LengthValue.StringFormat] [nested:byte] 120 ExactProperFraction = 1,
123 ExactImproperFraction = 2,
129 CleanProperFraction = 4,
132 CleanImproperFraction = 5
137 unsigned int string_format_as_unsigned
161 unsigned int locale_id,
183 const ON::LengthUnitSystem length_unit_system,
184 unsigned int locale_id,
215 ON::LengthUnitSystem context_unit_system
233 const wchar_t* LengthAsStringPointer()
const;
247 unsigned int ContextLocaleId()
const;
253 ON::AngleUnitSystem ContextAngleUnitSystem()
const;
263 unsigned int m_context_locale_id = 0;
264 ON::AngleUnitSystem m_context_angle_unit_system = ON::AngleUnitSystem::Unset;
268 double m_length = ON_DBL_QNAN;
293 bool IsUnset()
const;
316 unsigned int string_format_as_unsigned
338 const wchar_t*
string 367 const wchar_t*
string,
369 const wchar_t** string_end
390 ON::AngleUnitSystem angle_unit_system,
391 unsigned int locale_id,
410 ON::AngleUnitSystem context_unit_system
417 ON::AngleUnitSystem AngleUnitSystem()
const;
428 const wchar_t* AngleAsStringPointer()
const;
434 unsigned int m_context_locale_id = 0;
435 ON::LengthUnitSystem m_context_length_unit_system;
438 ON::AngleUnitSystem m_angle_unit_system = ON::AngleUnitSystem::Unset;
439 double m_angle = ON_DBL_QNAN;
455 bool IsUnset()
const;
466 #pragma region RH_C_SHARED_ENUM [ON_ScaleValue::ScaleStringFormat] [Rhino.ScaleValue.ScaleStringFormat] [nested:byte] 502 unsigned int scale_string_format_as_unsigned
544 const wchar_t*
string 595 const wchar_t*
string,
597 const wchar_t** string_end
646 double LeftToRightScale()
const;
677 double RightToLeftScale()
const;
691 const wchar_t* ScaleAsStringPointer()
const;
699 void SwapLeftAndRight();
709 double m_left_to_right_scale = ON_DBL_QNAN;
710 double m_right_to_left_scale = ON_DBL_QNAN;
713 unsigned int m_context_locale_id = 0;
714 ON::LengthUnitSystem m_context_length_unit_system;
715 ON::AngleUnitSystem m_context_angle_unit_system;
static const ON_LengthValue Unset
Definition: opennurbs_string_value.h:27
ScaleStringFormat
Specifies prefered formats for automatically created string descriptions of a scale value...
Definition: opennurbs_string_value.h:454
Definition: opennurbs_string_value.h:261
Definition: opennurbs_parse.h:176
Definition: opennurbs_sha1.h:19
Definition: opennurbs_string.h:2020
static int Compare(const ON_LengthValue &lhs, const ON_LengthValue &rhs)
const ON_SHA1_Hash ContentHash() const
Definition: opennurbs_parse.h:315
ON_ScaleValue::ScaleStringFormat::Unset is used to indicate no preference is set. This condition is d...
StringFormat
Formatting to apply when creating a length value from a double.
Definition: opennurbs_string_value.h:111
StringFormat
ON_AngleValue::StringFormat identifies the formatting to apply when creating a length value from a do...
Definition: opennurbs_string_value.h:287
Definition: opennurbs_string_value.h:19
static const ON_UnitSystem Unset
unit system = ON::LengthUnitSystem::Unset and meters/unit = ON_DBL_QNAN
Definition: opennurbs_string.h:3813
Use exact decimal string.
Definition: opennurbs_string.h:3739
Definition: opennurbs_string_value.h:427
Definition: opennurbs_archive.h:1783
Use exact decimal string.
Definition: opennurbs_parse.h:455
static const ON_LengthValue Zero
Definition: opennurbs_string_value.h:28