![]() |
OpendTect-6_4
6.4
|
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) |
bool | isImperial () const |
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) |
![]() | |
NamedObject (const char *nm=0) | |
NamedObject (const NamedObject *linkedto) | |
NamedObject (const NamedObject &) | |
virtual | ~NamedObject () |
void | setLinkedTo (NamedObject *) |
bool | operator== (const NamedObject &oth) const |
virtual const OD::String & | name () const |
virtual const OD::String & | annotName () const |
virtual void | setName (const char *) |
void | setCleanName (const char *) |
cleans string first More... | |
void | deleteNotify (const CallBack &) |
![]() | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static const UnitOfMeasure * | getGuessed (const char *) |
static const UnitOfMeasure * | surveyDefZUnit () |
Default unit in displays (ms,m,ft) More... | |
static const UnitOfMeasure * | surveyDefZStorageUnit () |
Default unit in storage (s,m,ft) More... | |
static const UnitOfMeasure * | surveyDefTimeUnit () |
Default time unit in displays (ms) More... | |
static const UnitOfMeasure * | surveyDefDepthUnit () |
Default depth unit in displays (m,ft) More... | |
static const UnitOfMeasure * | surveyDefDepthStorageUnit () |
Default depth unit in storage (m,ft) More... | |
static const UnitOfMeasure * | surveyDefVelUnit () |
Default velocity unit in displays (m/s,ft/s) More... | |
static uiString | surveyDefZUnitAnnot (bool symbol, bool withparens) |
static uiString | surveyDefTimeUnitAnnot (bool symbol, bool withparens) |
static uiString | surveyDefDepthUnitAnnot (bool symbol, bool withparens) |
static uiString | surveyDefVelUnitAnnot (bool symbol, bool withparens) |
static uiString | zUnitAnnot (bool time, bool symbol, bool withparens) |
static IOPar & | currentDefaults () |
static void | saveCurrentDefaults () |
Protected Attributes | |
BufferString | symbol_ |
LinScaler | scaler_ |
PropertyRef::StdType | proptype_ |
Repos::Source | source_ |
![]() | |
BufferString * | name_ |
NamedObject * | linkedto_ |
CallBackSet * | delnotify_ |
Private Member Functions | |
mODTextTranslationClass (UnitOfMeasure) | |
Additional Inherited Members | |
![]() | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
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 |
|
inline |
|
inline |
|
inline |
bool UnitOfMeasure::isImperial | ( | ) | const |
|
private |
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 12/02/2019 10:57:21 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019