OpendTect-6_4  6.4
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 &pr)
 
virtual Propertyclone () const =0
 
virtual ~Property ()
 
bool isEqualTo (const Property &) const
 
virtual bool isValue () const
 
const PropertyRefref () const
 
const char * name () const
 
virtual void reset ()
 
virtual bool init (const PropertySet &) const
 clears 'memory' and makes property usable More...
 
virtual uiString errMsg () const
 
virtual bool isUdf () const =0
 
virtual bool dependsOn (const Property &) const
 
virtual const char * type () const =0
 
virtual const char * def () const =0
 
virtual void setDef (const char *)=0
 
void fillPar (IOPar &) const
 
void usePar (const IOPar &)
 
 mDefineFactory1ParamInClass (Property, const PropertyRef &, factory)
 
float value (EvalOpts eo=EvalOpts()) const
 

Static Public Member Functions

static Propertyget (const IOPar &)
 

Protected Member Functions

virtual float gtVal (EvalOpts) const =0
 

Protected Attributes

const PropertyRefref_
 
float lastval_
 

Private Member Functions

 mODTextTranslationClass (Property)
 

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 ( const PropertyRef pr)
inline
virtual Property::~Property ( )
inlinevirtual

Member Function Documentation

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

Implemented in RangeProperty, ValueProperty, and MathProperty.

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

Implemented in RangeProperty, ValueProperty, and MathProperty.

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

Reimplemented in MathProperty.

virtual uiString Property::errMsg ( ) const
inlinevirtual

Reimplemented in MathProperty.

void Property::fillPar ( IOPar ) const
static Property* Property::get ( const IOPar )
static
virtual float Property::gtVal ( EvalOpts  ) const
protectedpure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

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

clears 'memory' and makes property usable

Reimplemented in MathProperty.

bool Property::isEqualTo ( const Property ) const
virtual bool Property::isUdf ( ) const
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

virtual bool Property::isValue ( ) const
inlinevirtual

Reimplemented in ValueProperty.

Property::mDefineFactory1ParamInClass ( Property  ,
const PropertyRef ,
factory   
)
Property::mODTextTranslationClass ( Property  )
private
const char* Property::name ( ) const
const PropertyRef& Property::ref ( ) const
inline
virtual void Property::reset ( )
inlinevirtual
virtual void Property::setDef ( const char *  )
pure virtual

Implemented in RangeProperty, ValueProperty, and MathProperty.

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

Implemented in RangeProperty, ValueProperty, and MathProperty.

void Property::usePar ( const IOPar )
float Property::value ( EvalOpts  eo = EvalOpts()) const
inline

Member Data Documentation

float Property::lastval_
mutableprotected
const PropertyRef& Property::ref_
protected

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