#include <opennurbs_string.h>
Public Member Functions | |
ON_UnitSystem ()=default | |
Default construction sets this to ON_UnitSystem::Meters. More... | |
ON_UnitSystem (const ON_UnitSystem &)=default | |
ON_UnitSystem (ON::LengthUnitSystem length_unit_system) | |
~ON_UnitSystem ()=default | |
void | Dump (class ON_TextLog &) const |
bool | IsCustomUnitSystem () const |
bool | IsSet () const |
bool | IsValid () const |
| |
double | MetersPerUnit () const |
bool | operator!= (const ON_UnitSystem &) const |
ON_UnitSystem & | operator= (const ON_UnitSystem &)=default |
ON_UnitSystem & | operator= (ON::LengthUnitSystem length_unit_system) |
bool | operator== (const ON_UnitSystem &) const |
bool | Read (class ON_BinaryArchive &) |
void | SetCustomUnitSystem (const wchar_t *custom_unit_name, double meters_per_custom_unit) |
void | SetCustomUnitSystemName (const wchar_t *custom_unit_name) |
Changes the unit system to custom units and sets the custom unit scale. More... | |
void | SetCustomUnitSystemScale (double meters_per_custom_unit) |
Changes the unit system to custom units and sets the custom unit scale. More... | |
void | SetUnitSystem (ON::LengthUnitSystem us) |
ON::LengthUnitSystem | UnitSystem () const |
const ON_wString & | UnitSystemName () const |
bool | Write (class ON_BinaryArchive &) const |
Static Public Member Functions | |
static ON_UnitSystem | CreateCustomUnitSystem (const wchar_t *custom_unit_name, double meters_per_custom_unit) |
Static Public Attributes | |
static const ON_UnitSystem | Angstroms |
static const ON_UnitSystem | AstronomicalUnits |
static const ON_UnitSystem | Centimeters |
static const ON_UnitSystem | Decimeters |
static const ON_UnitSystem | Dekameters |
static const ON_UnitSystem | Feet |
unit system = ON::LengthUnitSystem::Feet and meters/unit = 0.3048 exactly More... | |
static const ON_UnitSystem | Gigameters |
static const ON_UnitSystem | Hectometers |
static const ON_UnitSystem | Inches |
unit system = ON::LengthUnitSystem::Inches and meters/unit = 0.0254 exactly More... | |
static const ON_UnitSystem | Kilometers |
static const ON_UnitSystem | LightYears |
static const ON_UnitSystem | Megameters |
static const ON_UnitSystem | Meters |
unit system = ON::LengthUnitSystem::Meters and meters/unit = 1 More... | |
static const ON_UnitSystem | Microinches |
static const ON_UnitSystem | Microns |
static const ON_UnitSystem | Miles |
static const ON_UnitSystem | Millimeters |
unit system = ON::LengthUnitSystem::Millimeters and meters/unit = 0.001 exactly More... | |
static const ON_UnitSystem | Mils |
static const ON_UnitSystem | Nanometers |
static const ON_UnitSystem | NauticalMiles |
static const ON_UnitSystem | None |
unit system = ON::LengthUnitSystem::None. Scale to or from any valid unit = 1 More... | |
static const ON_UnitSystem | Parsecs |
static const ON_UnitSystem | PrinterPicas |
static const ON_UnitSystem | PrinterPoints |
static const ON_UnitSystem | Unset |
unit system = ON::LengthUnitSystem::Unset and meters/unit = ON_DBL_QNAN More... | |
static const ON_UnitSystem | Yards |
|
default |
Default construction sets this to ON_UnitSystem::Meters.
|
default |
|
default |
ON_UnitSystem::ON_UnitSystem | ( | ON::LengthUnitSystem | length_unit_system | ) |
|
static |
custom_unit_name | [in] length unit name (no spaces) |
meters_per_custom_unit | [in] a positive number |
void ON_UnitSystem::Dump | ( | class ON_TextLog & | ) | const |
bool ON_UnitSystem::IsCustomUnitSystem | ( | ) | const |
bool ON_UnitSystem::IsSet | ( | ) | const |
bool ON_UnitSystem::IsValid | ( | ) | const |
double ON_UnitSystem::MetersPerUnit | ( | ) | const |
bool ON_UnitSystem::operator!= | ( | const ON_UnitSystem & | ) | const |
|
default |
ON_UnitSystem& ON_UnitSystem::operator= | ( | ON::LengthUnitSystem | length_unit_system | ) |
bool ON_UnitSystem::operator== | ( | const ON_UnitSystem & | ) | const |
bool ON_UnitSystem::Read | ( | class ON_BinaryArchive & | ) |
void ON_UnitSystem::SetCustomUnitSystem | ( | const wchar_t * | custom_unit_name, |
double | meters_per_custom_unit | ||
) |
custom_unit_name | [in] length unit name (no spaces) |
meters_per_custom_unit | [in] a positive number |
void ON_UnitSystem::SetCustomUnitSystemName | ( | const wchar_t * | custom_unit_name | ) |
Changes the unit system to custom units and sets the custom unit scale.
Avoid using this function. Use SetCustomUnitSystem() or SetUnitSystem() instead.
void ON_UnitSystem::SetCustomUnitSystemScale | ( | double | meters_per_custom_unit | ) |
Changes the unit system to custom units and sets the custom unit scale.
Avoid using this function. Use SetCustomUnitSystem() or SetUnitSystem() instead.
void ON_UnitSystem::SetUnitSystem | ( | ON::LengthUnitSystem | us | ) |
ON::LengthUnitSystem ON_UnitSystem::UnitSystem | ( | ) | const |
const ON_wString& ON_UnitSystem::UnitSystemName | ( | ) | const |
bool ON_UnitSystem::Write | ( | class ON_BinaryArchive & | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
unit system = ON::LengthUnitSystem::Feet and meters/unit = 0.3048 exactly
|
static |
|
static |
|
static |
unit system = ON::LengthUnitSystem::Inches and meters/unit = 0.0254 exactly
|
static |
|
static |
|
static |
|
static |
unit system = ON::LengthUnitSystem::Meters and meters/unit = 1
|
static |
|
static |
|
static |
|
static |
unit system = ON::LengthUnitSystem::Millimeters and meters/unit = 0.001 exactly
|
static |
|
static |
|
static |
|
static |
unit system = ON::LengthUnitSystem::None. Scale to or from any valid unit = 1
|
static |
|
static |
|
static |
|
static |
unit system = ON::LengthUnitSystem::Unset and meters/unit = ON_DBL_QNAN
|
static |