OpendTect
7.0
|
Calculated property. More...
Public Member Functions | |
MathProperty (const MathProperty &) | |
MathProperty (const PropertyRef &, const char *def=nullptr) | |
~MathProperty () | |
MathProperty * | clone () const override |
const char * | def () const override |
bool | dependsOn (const Property &) const override |
uiString | errMsg () const override |
const char * | factoryKeyword () const override |
const char * | formText (bool user_display=false) const |
Math::Formula & | getForm () |
const Math::Formula & | getForm () const |
bool | hasCyclicalDependency (BufferStringSet &inputnms) const |
bool | haveInput (int idx) const |
bool | init (const PropertySet &) const override |
clears 'memory' and makes property usable More... | |
const Mnemonic * | inputMnemonic (int) const |
const char * | inputName (int) const |
Mnemonic::StdType | inputType (int) const |
const UnitOfMeasure * | inputUnit (int) const |
bool | isConst (int) const |
bool | isFormula () const override |
bool | isUdf () const override |
int | nrInputs () const |
void | setDef (const char *) override |
void | setInput (int, const Property *) |
Must be done for all inputs after each setDef() More... | |
mDeprecatedObs void | setUnit (const UnitOfMeasure *) |
const char * | type () const override |
const UnitOfMeasure * | unit () const |
Public Member Functions inherited from Property | |
Property (const PropertyRef &) | |
virtual | ~Property () |
void | fillPar (IOPar &) const |
bool | isEqualTo (const Property &) const |
virtual bool | isRange () const |
virtual bool | isValue () const |
bool | matches (const char *nm, bool matchaliases) const |
bool | matches (const char *nm, bool matchaliases, float *matchval) const |
const Mnemonic & | mn () const |
const char * | name () const |
const PropertyRef & | ref () const |
virtual void | reset () |
const UnitOfMeasure * | unit () 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 CallBacker * | trueCaller () |
Static Public Member Functions | |
static Property * | create (const PropertyRef &pr) |
static const Math::SpecVarSet & | getSpecVars () |
static void | initClass () |
static const char * | typeStr () |
Static Public Member Functions inherited from Property | |
static Property * | get (const IOPar &) |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Protected Member Functions | |
float | gtVal (EvalOpts) const override |
void | setPreV5Def (const char *) |
Protected Attributes | |
uiString | errmsg_ |
Math::Formula & | form_ |
BufferString | fulldef_ |
ObjectSet< const Property > | inps_ |
Protected Attributes inherited from Property | |
float | lastval_ = mUdf(float) |
const PropertyRef & | ref_ |
Private Member Functions | |
void | doUnitChange (const UnitOfMeasure *olduom, const UnitOfMeasure *newuom) override |
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.
<>
MathProperty::MathProperty | ( | const PropertyRef & | , |
const char * | def = nullptr |
||
) |
MathProperty::MathProperty | ( | const MathProperty & | ) |
MathProperty::~MathProperty | ( | ) |
|
inlineoverridevirtual |
Implements Property.
|
inlinestatic |
|
overridevirtual |
Implements Property.
|
overridevirtual |
Reimplemented from Property.
|
overrideprivatevirtual |
Reimplemented from Property.
|
inlineoverride |
const char* MathProperty::formText | ( | bool | user_display = false | ) | const |
|
inline |
|
inline |
|
static |
bool MathProperty::hasCyclicalDependency | ( | BufferStringSet & | inputnms | ) | const |
|
inline |
|
overridevirtual |
clears 'memory' and makes property usable
Reimplemented from Property.
|
inlinestatic |
const Mnemonic* MathProperty::inputMnemonic | ( | int | ) | const |
const char* MathProperty::inputName | ( | int | ) | const |
Mnemonic::StdType MathProperty::inputType | ( | int | ) | const |
const UnitOfMeasure* MathProperty::inputUnit | ( | int | ) | const |
bool MathProperty::isConst | ( | int | ) | const |
|
inlineoverridevirtual |
Reimplemented from Property.
|
overridevirtual |
Implements Property.
int MathProperty::nrInputs | ( | ) | const |
|
overridevirtual |
Implements Property.
void MathProperty::setInput | ( | int | , |
const Property * | |||
) |
Must be done for all inputs after each setDef()
|
protected |
mDeprecatedObs void MathProperty::setUnit | ( | const UnitOfMeasure * | ) |
|
inlineoverridevirtual |
Implements Property.
|
inlinestatic |
const UnitOfMeasure* MathProperty::unit | ( | ) | const |
|
mutableprotected |
|
protected |
|
mutableprotected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024