Unit of Measure. More...
Public Member Functions | |
| UnitOfMeasure () | |
| UnitOfMeasure (const char *n, const char *s, double f, PropertyRef::StdType t=PropertyRef::Other) | |
| UnitOfMeasure (const UnitOfMeasure &uom) | |
| UnitOfMeasure & | operator= (const UnitOfMeasure &) |
| const char * | symbol () const |
| PropertyRef::StdType | propType () const |
| const LinScaler & | scaler () const |
| void | setSymbol (const char *s) |
| void | setScaler (const LinScaler &s) |
| void | setPropType (PropertyRef::StdType t) |
| template<class T > | |
| T | getSIValue (T inp) const |
| template<class T > | |
| T | getUserValueFromSI (T inp) const |
| template<class T > | |
| T | internalValue (T inp) const |
| template<class T > | |
| T | userValue (T inp) const |
| Repos::Source | source () const |
| void | setSource (Repos::Source s) |
Static Public Member Functions | |
| static const UnitOfMeasure * | getGuessed (const char *) |
| static const UnitOfMeasure * | surveyDefZUnit () |
| static const char * | surveyDefZUnitAnnot (bool symbol, bool withparens) |
| static const UnitOfMeasure * | surveyDefDepthUnit () |
| static const char * | surveyDefDepthUnitAnnot (bool symbol, bool withparens) |
| static const char * | zUnitAnnot (bool time, bool symbol, bool withparens) |
Protected Attributes | |
| BufferString | symbol_ |
| LinScaler | scaler_ |
| PropertyRef::StdType | proptype_ |
| Repos::Source | source_ |
Unit of Measure.
Only linear transformations to SI units supported.
All units of measure in OpendTect are available through the UoMR() instance accessor of the singleton UnitOfMeasureRepository instance.
| UnitOfMeasure::UnitOfMeasure | ( | ) | [inline] |
| UnitOfMeasure::UnitOfMeasure | ( | const char * | n, | |
| const char * | s, | |||
| double | f, | |||
| PropertyRef::StdType | t = PropertyRef::Other | |||
| ) | [inline] |
| UnitOfMeasure::UnitOfMeasure | ( | const UnitOfMeasure & | uom | ) | [inline] |
| static const UnitOfMeasure* UnitOfMeasure::getGuessed | ( | const char * | ) | [static] |
| T UnitOfMeasure::getSIValue | ( | T | inp | ) | const [inline] |
| T UnitOfMeasure::getUserValueFromSI | ( | T | inp | ) | const [inline] |
| T UnitOfMeasure::internalValue | ( | T | inp | ) | const |
| UnitOfMeasure& UnitOfMeasure::operator= | ( | const UnitOfMeasure & | ) |
| PropertyRef::StdType UnitOfMeasure::propType | ( | ) | const [inline] |
| const LinScaler& UnitOfMeasure::scaler | ( | ) | const [inline] |
| void UnitOfMeasure::setPropType | ( | PropertyRef::StdType | t | ) | [inline] |
| void UnitOfMeasure::setScaler | ( | const LinScaler & | s | ) | [inline] |
| void UnitOfMeasure::setSource | ( | Repos::Source | s | ) | [inline] |
| void UnitOfMeasure::setSymbol | ( | const char * | s | ) | [inline] |
| Repos::Source UnitOfMeasure::source | ( | ) | const [inline] |
| static const UnitOfMeasure* UnitOfMeasure::surveyDefDepthUnit | ( | ) | [static] |
| static const char* UnitOfMeasure::surveyDefDepthUnitAnnot | ( | bool | symbol, | |
| bool | withparens | |||
| ) | [static] |
| static const UnitOfMeasure* UnitOfMeasure::surveyDefZUnit | ( | ) | [static] |
| static const char* UnitOfMeasure::surveyDefZUnitAnnot | ( | bool | symbol, | |
| bool | withparens | |||
| ) | [static] |
| const char* UnitOfMeasure::symbol | ( | ) | const [inline] |
| T UnitOfMeasure::userValue | ( | T | inp | ) | const |
| static const char* UnitOfMeasure::zUnitAnnot | ( | bool | time, | |
| bool | symbol, | |||
| bool | withparens | |||
| ) | [static] |
PropertyRef::StdType UnitOfMeasure::proptype_ [protected] |
LinScaler UnitOfMeasure::scaler_ [protected] |
Repos::Source UnitOfMeasure::source_ [protected] |
BufferString UnitOfMeasure::symbol_ [protected] |
1.7.1