OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MathProperty Class Reference

Calculated property. More...

Inheritance diagram for MathProperty:
[legend]

Public Member Functions

 MathProperty (const MathProperty &)
 
 MathProperty (const PropertyRef &, const char *def=0)
 
 ~MathProperty ()
 
virtual MathPropertyclone () const
 
virtual const char * def () const
 
virtual bool dependsOn (const Property &) const
 
virtual uiString errMsg () const
 
virtual const char * factoryKeyword () const
 
const char * formText (bool user_display=false) const
 
Math::FormulagetForm ()
 
const Math::FormulagetForm () const
 
bool hasCyclicalDependency (BufferStringSet &inputnms) const
 
bool haveInput (int idx) const
 
virtual bool init (const PropertySet &) const
 clears 'memory' and makes property usable More...
 
const char * inputName (int) const
 
PropertyRef::StdType inputType (int) const
 
const UnitOfMeasureinputUnit (int) const
 
bool isConst (int) const
 
virtual bool isUdf () const
 
int nrInputs () const
 
virtual void setDef (const char *)
 
void setInput (int, const Property *)
 Must be done for all inputs after each setDef() More...
 
void setUnit (const UnitOfMeasure *)
 
virtual const char * type () const
 
const UnitOfMeasureunit () const
 
- Public Member Functions inherited from Property
 Property (const PropertyRef &pr)
 
virtual ~Property ()
 
void fillPar (IOPar &) const
 
bool isEqualTo (const Property &) const
 
virtual bool isValue () const
 
const Mnemonicmnem () const
 
const char * name () const
 
const PropertyRefref () const
 
virtual void reset ()
 
void usePar (const IOPar &)
 
float value (EvalOpts eo=EvalOpts()) const
 

Static Public Member Functions

static Propertycreate (const PropertyRef &r)
 
static const Math::SpecVarSetgetSpecVars ()
 
static void initClass ()
 
static const char * typeStr ()
 
- Static Public Member Functions inherited from Property
static Propertyget (const IOPar &)
 

Protected Member Functions

virtual float gtVal (EvalOpts) const
 
void setPreV5Def (const char *)
 

Protected Attributes

uiString errmsg_
 
Math::Formulaform_
 
BufferString fulldef_
 
ObjectSet< const Propertyinps_
 
- Protected Attributes inherited from Property
float lastval_
 
const Mnemonicmn_
 
const PropertyRefref_
 

Detailed Description

Calculated property.

When creating a formula, be sure to use ensureGoodVariableName() on the property names. This will be done on the available properties too to create the match. In theory, this may create ambiguous formulas, but at least we can keep things simple this way.

<>

Constructor & Destructor Documentation

◆ MathProperty() [1/2]

MathProperty::MathProperty ( const PropertyRef ,
const char *  def = 0 
)

◆ MathProperty() [2/2]

MathProperty::MathProperty ( const MathProperty )

◆ ~MathProperty()

MathProperty::~MathProperty ( )

Member Function Documentation

◆ clone()

virtual MathProperty* MathProperty::clone ( ) const
inlinevirtual

Implements Property.

◆ create()

static Property* MathProperty::create ( const PropertyRef r)
inlinestatic

◆ def()

virtual const char* MathProperty::def ( ) const
virtual

Implements Property.

◆ dependsOn()

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

Reimplemented from Property.

◆ errMsg()

virtual uiString MathProperty::errMsg ( ) const
inlinevirtual

Reimplemented from Property.

◆ factoryKeyword()

virtual const char* MathProperty::factoryKeyword ( ) const
inlinevirtual

◆ formText()

const char* MathProperty::formText ( bool  user_display = false) const

◆ getForm() [1/2]

Math::Formula& MathProperty::getForm ( )
inline

◆ getForm() [2/2]

const Math::Formula& MathProperty::getForm ( ) const
inline

◆ getSpecVars()

static const Math::SpecVarSet& MathProperty::getSpecVars ( )
static

◆ gtVal()

virtual float MathProperty::gtVal ( EvalOpts  ) const
protectedvirtual

Implements Property.

◆ hasCyclicalDependency()

bool MathProperty::hasCyclicalDependency ( BufferStringSet inputnms) const

◆ haveInput()

bool MathProperty::haveInput ( int  idx) const
inline

◆ init()

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

clears 'memory' and makes property usable

Reimplemented from Property.

◆ initClass()

static void MathProperty::initClass ( )
inlinestatic

◆ inputName()

const char* MathProperty::inputName ( int  ) const

◆ inputType()

PropertyRef::StdType MathProperty::inputType ( int  ) const

◆ inputUnit()

const UnitOfMeasure* MathProperty::inputUnit ( int  ) const

◆ isConst()

bool MathProperty::isConst ( int  ) const

◆ isUdf()

virtual bool MathProperty::isUdf ( ) const
virtual

Implements Property.

◆ nrInputs()

int MathProperty::nrInputs ( ) const

◆ setDef()

virtual void MathProperty::setDef ( const char *  )
virtual

Implements Property.

◆ setInput()

void MathProperty::setInput ( int  ,
const Property  
)

Must be done for all inputs after each setDef()

◆ setPreV5Def()

void MathProperty::setPreV5Def ( const char *  )
protected

◆ setUnit()

void MathProperty::setUnit ( const UnitOfMeasure )

◆ type()

virtual const char* MathProperty::type ( ) const
inlinevirtual

Implements Property.

◆ typeStr()

static const char* MathProperty::typeStr ( )
inlinestatic

◆ unit()

const UnitOfMeasure* MathProperty::unit ( ) const

Member Data Documentation

◆ errmsg_

uiString MathProperty::errmsg_
mutableprotected

◆ form_

Math::Formula& MathProperty::form_
protected

◆ fulldef_

BufferString MathProperty::fulldef_
mutableprotected

◆ inps_

ObjectSet<const Property> MathProperty::inps_
mutableprotected

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