OpendTect
6.6
|
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) | |
const char * | getLabel () const |
Symbol or name if no symbol, for IOPar I/O. More... | |
template<class T > | |
T | getSIValue (T inp) const |
template<class T > | |
T | getUserValueFromSI (T inp) const |
template<class T > | |
T | internalValue (T inp) const |
bool | isImperial () const |
UnitOfMeasure & | operator= (const UnitOfMeasure &) |
PropertyRef::StdType | propType () const |
const LinScaler & | scaler () const |
void | setPropType (PropertyRef::StdType t) |
void | setScaler (const LinScaler &s) |
void | setSource (Repos::Source s) |
void | setSymbol (const char *s) |
Repos::Source | source () const |
const char * | symbol () const |
template<class T > | |
T | userValue (T inp) const |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
virtual const name_type & | name () const |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
static IOPar & | currentDefaults () |
static const UnitOfMeasure * | getGuessed (const char *) |
static BufferString | getUnitLbl (const UnitOfMeasure *, const char *deflbl=nullptr) |
static void | saveCurrentDefaults () |
static const UnitOfMeasure * | surveyDefDepthStorageUnit () |
Default depth unit in storage (m,ft) More... | |
static const UnitOfMeasure * | surveyDefDepthUnit () |
Default depth unit in displays (m,ft) More... | |
static uiString | surveyDefDepthUnitAnnot (bool symbol, bool withparens) |
static const UnitOfMeasure * | surveyDefTimeUnit () |
Default time unit in displays (ms) More... | |
static uiString | surveyDefTimeUnitAnnot (bool symbol, bool withparens) |
static const UnitOfMeasure * | surveyDefVelUnit () |
Default velocity unit in displays (m/s,ft/s) More... | |
static uiString | surveyDefVelUnitAnnot (bool symbol, bool withparens) |
static const UnitOfMeasure * | surveyDefZStorageUnit () |
Default unit in storage (s,m,ft) More... | |
static const UnitOfMeasure * | surveyDefZUnit () |
Default unit in displays (ms,m,ft) More... | |
static uiString | surveyDefZUnitAnnot (bool symbol, bool withparens) |
static uiString | zUnitAnnot (bool time, bool symbol, bool withparens) |
Protected Attributes | |
PropertyRef::StdType | proptype_ |
LinScaler | scaler_ |
Repos::Source | source_ |
BufferString | symbol_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
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.
<>
|
inline |
|
inline |
|
inline |
|
static |
just a list of key -> unit of measure key can be property name or whatever seems good
|
static |
const char* UnitOfMeasure::getLabel | ( | ) | const |
Symbol or name if no symbol, for IOPar I/O.
|
inline |
|
static |
|
inline |
|
inline |
bool UnitOfMeasure::isImperial | ( | ) | const |
UnitOfMeasure& UnitOfMeasure::operator= | ( | const UnitOfMeasure & | ) |
|
inline |
|
static |
store as a user setting on Survey level this will be done automatically at survey changes
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Default depth unit in storage (m,ft)
|
static |
Default depth unit in displays (m,ft)
|
static |
|
static |
Default time unit in displays (ms)
|
static |
|
static |
Default velocity unit in displays (m/s,ft/s)
|
static |
|
static |
Default unit in storage (s,m,ft)
|
static |
Default unit in displays (ms,m,ft)
|
static |
|
inline |
|
inline |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022