OpendTect  7.0
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
Property Class Referenceabstract

A (usually petrophysical) property of some object. More...

Inheritance diagram for Property:
[legend]

Classes

class  EvalOpts
 

Public Member Functions

 Property (const PropertyRef &)
 
virtual ~Property ()
 
virtual Propertyclone () const =0
 
virtual const char * def () const =0
 
virtual bool dependsOn (const Property &) const
 
virtual uiString errMsg () const
 
void fillPar (IOPar &) const
 
virtual bool init (const PropertySet &) const
 clears 'memory' and makes property usable More...
 
bool isEqualTo (const Property &) const
 
virtual bool isFormula () const
 
virtual bool isRange () const
 
virtual bool isUdf () const =0
 
virtual bool isValue () const
 
bool matches (const char *nm, bool matchaliases) const
 
bool matches (const char *nm, bool matchaliases, float *matchval) const
 
const Mnemonicmn () const
 
const char * name () const
 
const PropertyRefref () const
 
virtual void reset ()
 
virtual void setDef (const char *)=0
 
virtual const char * type () const =0
 
const UnitOfMeasureunit () const
 
void usePar (const IOPar &)
 
float value (EvalOpts eo=EvalOpts()) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Static Public Member Functions

static Propertyget (const IOPar &)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

virtual void doUnitChange (const UnitOfMeasure *olduom, const UnitOfMeasure *newuom)
 
virtual float gtVal (EvalOpts) const =0
 

Protected Attributes

float lastval_ = mUdf(float)
 
const PropertyRefref_
 

Private Member Functions

void unitChangedCB (CallBacker *)
 

Detailed Description

A (usually petrophysical) property of some object.

Its purpose is to provide a value when asked. Some Property's have a 'memory'. These can be cleared using reset(). Most Properties do not return constant values. The parameters can be set in EvalOpts.

<>

Constructor & Destructor Documentation

◆ Property()

Property::Property ( const PropertyRef )

◆ ~Property()

virtual Property::~Property ( )
virtual

Member Function Documentation

◆ clone()

virtual Property* Property::clone ( ) const
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

◆ def()

virtual const char* Property::def ( ) const
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

◆ dependsOn()

virtual bool Property::dependsOn ( const Property ) const
inlinevirtual

Reimplemented in MathProperty.

◆ doUnitChange()

virtual void Property::doUnitChange ( const UnitOfMeasure olduom,
const UnitOfMeasure newuom 
)
protectedvirtual

Reimplemented in RangeProperty, ValueProperty, and MathProperty.

◆ errMsg()

virtual uiString Property::errMsg ( ) const
inlinevirtual

Reimplemented in MathProperty.

◆ fillPar()

void Property::fillPar ( IOPar ) const

◆ get()

static Property* Property::get ( const IOPar )
static

◆ gtVal()

virtual float Property::gtVal ( EvalOpts  ) const
protectedpure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

◆ init()

virtual bool Property::init ( const PropertySet ) const
virtual

clears 'memory' and makes property usable

Reimplemented in MathProperty.

◆ isEqualTo()

bool Property::isEqualTo ( const Property ) const

◆ isFormula()

virtual bool Property::isFormula ( ) const
inlinevirtual

Reimplemented in MathProperty.

◆ isRange()

virtual bool Property::isRange ( ) const
inlinevirtual

Reimplemented in RangeProperty.

◆ isUdf()

virtual bool Property::isUdf ( ) const
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

◆ isValue()

virtual bool Property::isValue ( ) const
inlinevirtual

Reimplemented in ValueProperty.

◆ matches() [1/2]

bool Property::matches ( const char *  nm,
bool  matchaliases 
) const

◆ matches() [2/2]

bool Property::matches ( const char *  nm,
bool  matchaliases,
float *  matchval 
) const

◆ mn()

const Mnemonic& Property::mn ( ) const
inline

◆ name()

const char* Property::name ( ) const

◆ ref()

const PropertyRef& Property::ref ( ) const
inline

◆ reset()

virtual void Property::reset ( )
inlinevirtual

◆ setDef()

virtual void Property::setDef ( const char *  )
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

◆ type()

virtual const char* Property::type ( ) const
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

◆ unit()

const UnitOfMeasure* Property::unit ( ) const
inline

◆ unitChangedCB()

void Property::unitChangedCB ( CallBacker )
private

◆ usePar()

void Property::usePar ( const IOPar )

◆ value()

float Property::value ( EvalOpts  eo = EvalOpts()) const
inline

Member Data Documentation

◆ lastval_

float Property::lastval_ = mUdf(float)
mutableprotected

◆ ref_

const PropertyRef& Property::ref_
protected

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