OpendTect  6.6
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
PropertyRef Class Reference

Ref Data for a (usually petrophysical) property. More...

Inheritance diagram for PropertyRef:
[legend]

Public Types

enum  StdType {
  Anis , Area , Class , Comp ,
  Den , Dist , ElaRa , ElPot ,
  GR , Imp , Perm , Pres ,
  PresGrad , PresWt , Res , Son ,
  Temp , Time , Vel , Volum ,
  Vol , Other , Ang
}
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 PropertyRef (const char *nm, StdType t=Other)
 
 PropertyRef (const PropertyRef &pr)
 
virtual ~PropertyRef ()
 
BufferStringSetaliases ()
 
const BufferStringSetaliases () const
 
float commonValue () const
 
const MathPropertyfixedDef () const
 be sure hasFixedDef() returns true! More...
 
BufferString getMnemonic () const
 
BufferString getStorUnitLbl () const
 In memory. More...
 
bool hasFixedDef () const
 
bool hasType (StdType t) const
 
bool isCompatibleWith (const PropertyRef &pr) const
 
bool isKnownAs (const char *) const
 
bool isThickness () const
 
bool operator!= (const PropertyRef &pr) const
 
PropertyRefoperator= (const PropertyRef &)
 
bool operator== (const PropertyRef &pr) const
 
void setFixedDef (const MathProperty *)
 copy will be made More...
 
void setMnemonic (BufferString mn)
 
void setStdType (StdType t)
 
StdType stdType () const
 
const UnitOfMeasurestorUnit () const
 In memory. More...
 
- 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_typename () const
 
NamedObjectoperator= (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 void setThickness (const PropertyRef *)
 
static const char * standardPVelAliasStr ()
 
static const char * standardPVelStr ()
 
static const char * standardSVelAliasStr ()
 
static const char * standardSVelStr ()
 
static StdType surveyZType ()
 
static const PropertyRefthickness ()
 use this always. It has automatic defaults from SI() More...
 
static const PropertyRefundef ()
 

Public Attributes

Propertydefval_
 

Protected Member Functions

void fillPar (IOPar &) const
 
void usePar (const IOPar &)
 

Protected Attributes

BufferStringSet aliases_
 
MathPropertymathdef_
 
BufferString mn_
 
StdType stdtype_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class PropertyRefSet
 

Detailed Description

Ref Data for a (usually petrophysical) property.

We prepare for many variants of the name as is not uncommon in practice (Density, Den, Rho, RhoB, ... you know the drill). The names will be unique

Member Enumeration Documentation

◆ StdType

Enumerator
Anis 
Area 
Class 
Comp 
Den 
Dist 
ElaRa 
ElPot 
GR 
Imp 
Perm 
Pres 
PresGrad 
PresWt 
Res 
Son 
Temp 
Time 
Vel 
Volum 
Vol 
Other 
Ang 

Constructor & Destructor Documentation

◆ PropertyRef() [1/2]

PropertyRef::PropertyRef ( const char *  nm,
StdType  t = Other 
)
inline

◆ PropertyRef() [2/2]

PropertyRef::PropertyRef ( const PropertyRef pr)
inline

◆ ~PropertyRef()

virtual PropertyRef::~PropertyRef ( )
virtual

Member Function Documentation

◆ aliases() [1/2]

BufferStringSet& PropertyRef::aliases ( )
inline

◆ aliases() [2/2]

const BufferStringSet& PropertyRef::aliases ( ) const
inline

◆ commonValue()

float PropertyRef::commonValue ( ) const

◆ fillPar()

void PropertyRef::fillPar ( IOPar ) const
protected

◆ fixedDef()

const MathProperty& PropertyRef::fixedDef ( ) const
inline

be sure hasFixedDef() returns true!

◆ getMnemonic()

BufferString PropertyRef::getMnemonic ( ) const

◆ getStorUnitLbl()

BufferString PropertyRef::getStorUnitLbl ( ) const

In memory.

◆ hasFixedDef()

bool PropertyRef::hasFixedDef ( ) const
inline

◆ hasType()

bool PropertyRef::hasType ( StdType  t) const
inline

◆ isCompatibleWith()

bool PropertyRef::isCompatibleWith ( const PropertyRef pr) const
inline

◆ isKnownAs()

bool PropertyRef::isKnownAs ( const char *  ) const

◆ isThickness()

bool PropertyRef::isThickness ( ) const
inline

◆ operator!=()

bool PropertyRef::operator!= ( const PropertyRef pr) const
inline

◆ operator=()

PropertyRef& PropertyRef::operator= ( const PropertyRef )

◆ operator==()

bool PropertyRef::operator== ( const PropertyRef pr) const
inline

◆ setFixedDef()

void PropertyRef::setFixedDef ( const MathProperty )

copy will be made

◆ setMnemonic()

void PropertyRef::setMnemonic ( BufferString  mn)
inline

◆ setStdType()

void PropertyRef::setStdType ( StdType  t)
inline

◆ setThickness()

static void PropertyRef::setThickness ( const PropertyRef )
static

◆ standardPVelAliasStr()

static const char* PropertyRef::standardPVelAliasStr ( )
inlinestatic

◆ standardPVelStr()

static const char* PropertyRef::standardPVelStr ( )
inlinestatic

◆ standardSVelAliasStr()

static const char* PropertyRef::standardSVelAliasStr ( )
inlinestatic

◆ standardSVelStr()

static const char* PropertyRef::standardSVelStr ( )
inlinestatic

◆ stdType()

StdType PropertyRef::stdType ( ) const
inline

◆ storUnit()

const UnitOfMeasure* PropertyRef::storUnit ( ) const

In memory.

◆ surveyZType()

static StdType PropertyRef::surveyZType ( )
static

◆ thickness()

static const PropertyRef& PropertyRef::thickness ( )
static

use this always. It has automatic defaults from SI()

◆ undef()

static const PropertyRef& PropertyRef::undef ( )
static

◆ usePar()

void PropertyRef::usePar ( const IOPar )
protected

Friends And Related Function Documentation

◆ PropertyRefSet

friend class PropertyRefSet
friend

Member Data Documentation

◆ aliases_

BufferStringSet PropertyRef::aliases_
protected

◆ defval_

Property* PropertyRef::defval_

◆ mathdef_

MathProperty* PropertyRef::mathdef_
protected

◆ mn_

BufferString PropertyRef::mn_
protected

◆ stdtype_

StdType PropertyRef::stdtype_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022