OpendTect
7.0
|
Unit of Measure. More...
Public Types | |
typedef Mnemonic::StdType | PropType |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Public Member Functions | |
UnitOfMeasure () | |
UnitOfMeasure (const char *n, const char *s, double f, PropType t=Mnemonic::Other) | |
UnitOfMeasure (const UnitOfMeasure &) | |
~UnitOfMeasure () | |
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 | isCompatibleWith (const UnitOfMeasure &) const |
bool | isImperial () const |
int | nrTypes () const |
UnitOfMeasure & | operator= (const UnitOfMeasure &) |
PropType | propType (int idx=0) const |
const LinScaler & | scaler () const |
mDeprecatedDef void | setPropType (PropType prtyp) |
mDeprecatedDef void | setScaler (const LinScaler &s) |
mDeprecatedDef void | setSource (Repos::Source s) |
mDeprecatedDef 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 &) |
const name_type & | name () const override |
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 * | degreesUnit () |
static const UnitOfMeasure * | feetSecondUnit () |
static const UnitOfMeasure * | feetUnit () |
static const UnitOfMeasure * | getGuessed (const char *) |
static BufferString | getUnitLbl (const UnitOfMeasure *, const char *deflbl=nullptr) |
static const UnitOfMeasure * | meterSecondUnit () |
static const UnitOfMeasure * | meterUnit () |
static const UnitOfMeasure * | millisecondsUnit () |
static const UnitOfMeasure * | radiansUnit () |
static void | saveCurrentDefaults () |
static const UnitOfMeasure * | secondsUnit () |
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 * | surveyDefOffsetUnit () |
static const UnitOfMeasure * | surveyDefSRDStorageUnit () |
Default srd unit in storage (m,ft) More... | |
static const UnitOfMeasure * | surveyDefSRDUnit () |
Default srd unit in displays (m,ft) More... | |
static const UnitOfMeasure * | surveyDefTimeStorageUnit () |
Survey storage time unit (s) More... | |
static const UnitOfMeasure * | surveyDefTimeUnit () |
Default time unit in displays (ms) More... | |
static uiString | surveyDefTimeUnitAnnot (bool symbol, bool withparens) |
static const UnitOfMeasure * | surveyDefVelStorageUnit () |
Default velocity unit in storage (m/s,ft/s) More... | |
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 const UnitOfMeasure * | zUnit (const ZDomain::Info &, bool storage=true) |
static uiString | zUnitAnnot (bool time, bool symbol, bool withparens) |
Private Member Functions | |
UnitOfMeasure (const char *nm, const char *symb, double shft, double fact, const TypeSet< PropType > &, Repos::Source) | |
Private Attributes | |
TypeSet< PropType > | proptypes_ |
LinScaler | scaler_ |
Repos::Source | source_ |
BufferString | symbol_ |
Friends | |
class | UnitOfMeasureRepository |
Additional Inherited Members | |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
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 | ( | const UnitOfMeasure & | ) |
UnitOfMeasure::~UnitOfMeasure | ( | ) |
|
private |
|
inline |
|
inline |
|
static |
just a list of key -> unit of measure key can be property name or whatever seems good
|
static |
|
static |
|
static |
|
static |
const char* UnitOfMeasure::getLabel | ( | ) | const |
Symbol or name if no symbol, for IOPar I/O.
|
inline |
|
static |
|
inline |
|
inline |
bool UnitOfMeasure::isCompatibleWith | ( | const UnitOfMeasure & | ) | const |
bool UnitOfMeasure::isImperial | ( | ) | const |
|
static |
|
static |
|
static |
|
inline |
UnitOfMeasure& UnitOfMeasure::operator= | ( | const UnitOfMeasure & | ) |
PropType UnitOfMeasure::propType | ( | int | idx = 0 | ) | const |
|
static |
|
static |
store as a user setting on Survey level this will be done automatically at survey changes
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Default depth unit in storage (m,ft)
|
static |
Default depth unit in displays (m,ft)
|
static |
|
static |
Default offset unit for real datasets (m,ft) Not used for synthetic gathers
|
static |
Default srd unit in storage (m,ft)
|
static |
Default srd unit in displays (m,ft)
|
static |
Survey storage time unit (s)
|
static |
Default time unit in displays (ms)
|
static |
|
static |
Default velocity unit in storage (m/s,ft/s)
|
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 |
|
static |
|
friend |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024