OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
MathProperty Class Reference

Calculated property. More...

Inheritance diagram for MathProperty:
[legend]

Public Member Functions

virtual const char * type () const
 
virtual const char * factoryKeyword () const
 
virtual MathPropertyclone () const
 
virtual const char * def () const
 
virtual void setDef (const char *)
 
virtual bool isUdf () const
 
const char * formText (bool user_display=false) const
 
int nrInputs () const
 
const char * inputName (int) const
 
const UnitOfMeasureinputUnit (int) const
 
bool isConst (int) const
 
void setUnit (const UnitOfMeasure *)
 
const UnitOfMeasureunit () const
 
- Public Member Functions inherited from Property
 Property (const PropertyRef &pr)
 
virtual ~Property ()
 
bool isEqualTo (const Property &) const
 
virtual bool isValue () const
 
const PropertyRefref () const
 
const char * name () const
 
virtual void reset ()
 
void fillPar (IOPar &) const
 
void usePar (const IOPar &)
 
 mDefineFactory1ParamInClass (Property, const PropertyRef &, factory)
 
float value (EvalOpts eo=EvalOpts()) const
 

Static Public Member Functions

static const char * typeStr ()
 
static Propertycreate (const PropertyRef &r)
 
static void initClass ()
 
static const Math::SpecVarSetgetSpecVars ()
 
- 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

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

Private Member Functions

mODTextTranslationClass(Property) public MathProperty (const MathProperty &)
 
 ~MathProperty ()
 
Math::FormulagetForm ()
 
const Math::FormulagetForm () const
 
PropertyRef::StdType inputType (int) const
 
bool haveInput (int idx) const
 
void setInput (int, const Property *)
 Must be done for all inputs after each setDef() More...
 
virtual bool init (const PropertySet &) const
 clears 'memory' and makes property usable More...
 
virtual uiString errMsg () const
 
virtual bool dependsOn (const Property &) const
 
bool hasCyclicalDependency (BufferStringSet &inputnms) const
 

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

mODTextTranslationClass (Property) public MathProperty::MathProperty ( const MathProperty )
private
MathProperty::~MathProperty ( )
private

Member Function Documentation

virtual MathProperty* MathProperty::clone ( ) const
inlinevirtual

Implements Property.

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

Implements Property.

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

Reimplemented from Property.

virtual uiString MathProperty::errMsg ( ) const
inlineprivatevirtual

Reimplemented from Property.

virtual const char* MathProperty::factoryKeyword ( ) const
inlinevirtual
const char* MathProperty::formText ( bool  user_display = false) const
Math::Formula& MathProperty::getForm ( )
inlineprivate
const Math::Formula& MathProperty::getForm ( ) const
inlineprivate
static const Math::SpecVarSet& MathProperty::getSpecVars ( )
static
virtual float MathProperty::gtVal ( EvalOpts  ) const
protectedvirtual

Implements Property.

bool MathProperty::hasCyclicalDependency ( BufferStringSet inputnms) const
private
bool MathProperty::haveInput ( int  idx) const
inlineprivate
virtual bool MathProperty::init ( const PropertySet ) const
privatevirtual

clears 'memory' and makes property usable

Reimplemented from Property.

static void MathProperty::initClass ( )
inlinestatic
const char* MathProperty::inputName ( int  ) const
PropertyRef::StdType MathProperty::inputType ( int  ) const
private
const UnitOfMeasure* MathProperty::inputUnit ( int  ) const
bool MathProperty::isConst ( int  ) const
virtual bool MathProperty::isUdf ( ) const
virtual

Implements Property.

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

Implements Property.

void MathProperty::setInput ( int  ,
const Property  
)
private

Must be done for all inputs after each setDef()

void MathProperty::setPreV5Def ( const char *  )
protected
void MathProperty::setUnit ( const UnitOfMeasure )
virtual const char* MathProperty::type ( ) const
inlinevirtual

Implements Property.

static const char* MathProperty::typeStr ( )
inlinestatic
const UnitOfMeasure* MathProperty::unit ( ) const

Member Data Documentation

uiString MathProperty::errmsg_
mutableprotected
Math::Formula& MathProperty::form_
protected
BufferString MathProperty::fulldef_
mutableprotected
ObjectSet<const Property> MathProperty::inps_
mutableprotected

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