OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
ElasticFormula Class Reference

Elastic formula def to generate elastic layers. More...

Inheritance diagram for ElasticFormula:
[legend]

Public Types

enum  Type {
  Den , PVel , SVel , FracRho ,
  FracAzi , Undef
}
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 ElasticFormula (const char *nm, const char *expr, Type)
 
 ~ElasticFormula ()
 
const char * expression () const
 
void fillPar (IOPar &) const
 
bool hasType (Type) const
 
mDeprecatedObs const char * parseVariable (int idx, float &) const
 
void setExpression (const char *)
 
void setType (Type)
 
Type type () const
 
mDeprecatedObs BufferStringSet units ()
 
mDeprecatedObs const BufferStringSet units () const
 
void usePar (const IOPar &)
 
mDeprecatedObs BufferStringSet variables ()
 
mDeprecatedObs const BufferStringSet variables () const
 
- Public Member Functions inherited from Math::Formula
 Formula (bool inputsareseries, const SpecVarSet &, const char *txt=nullptr)
 
 Formula (bool inputsareseries=true, const char *txt=nullptr)
 
 Formula (const Formula &)
 
 ~Formula ()
 
void clearAllDefs ()
 
void clearInputDefs ()
 
FormulacopyFrom (const Math::Formula &)
 *< Does not use the description and values More...
 
const char * description () const
 
const char * errMsg () const
 
const Expressionexpression () const
 
void fillPar (IOPar &) const
 
double getConstVal (int) const
 if isConst returns toDouble(inputDef(i)), else Udf More...
 
void getInputMnemonics (MnemonicSelection &) const
 
const TypeSet< int > & getShifts (int iinp) const
 
double getValue (const double *) const
 
double getValue (const double *vals, bool internuns) const
 
float getValue (const float *vals, bool internuns=true) const
 
bool hasFixedUnits () const
 
const char * inputDef (int iinp) const
 
const char * inputDescription (int iinp) const
 
const UnitOfMeasureinputFormUnit (int iinp) const
 
const MnemonicinputMnemonic (int iinp) const
 
bool inputsAreSeries () const
 
const char * inputVar (int iinp) const
 
bool isBad () const
 
bool isCompatibleWith (const Formula &) const
 
bool isCompatibleWith (const Mnemonic &, const MnemonicSelection *inps=nullptr) const
 
bool isConst (int iinp) const
 
bool isOK () const
 
bool isRecursive () const
 
bool isSpec (int iinp) const
 
int maxRecShift () const
 
int nrConsts () const
 
int nrExternalInputs () const
 
int nrInputs () const
 
int nrSpecs () const
 
int nrValues2Provide () const
 
bool operator!= (const Formula &) const
 *< Does not use the description More...
 
Formulaoperator= (const Formula &)
 *< Does not use the description More...
 
bool operator== (const Formula &) const
 
const UnitOfMeasureoutputFormUnit () const
 
const MnemonicoutputMnemonic () const
 
TypeSet< double > & recStartVals ()
 
void setDescription (const char *descstr)
 *< Does not copy input definitions and descriptions More...
 
void setInputDef (int, const char *)
 
void setInputDescription (int, const char *)
 Optional description of an input. More...
 
void setInputFormUnit (int, const UnitOfMeasure *)
 The input unit within the expression. More...
 
void setInputMnemonic (int, const Mnemonic *)
 
void setInputValUnit (int, const UnitOfMeasure *)
 The input unit of incoming values. More...
 
void setOutputFormUnit (const UnitOfMeasure *uom)
 The output unit of the math expression. More...
 
void setOutputMnemonic (const Mnemonic *mn)
 
void setOutputValUnit (const UnitOfMeasure *uom)
 The unit of the returned value (getValue) More...
 
virtual void setText (const char *)
 
Interval< int > shiftRange (int iinp) const
 
int specIdx (int) const
 
const SpecVarSetspecVars () const
 
void startNewSeries () const
 
const char * text () const
 
void usePar (const IOPar &)
 
const char * userDispText () const
 
const char * variableName (int iinp) const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static ElasticFormulagetFrom (const RockPhysics::Formula &)
 
static const MnemonicgetMnemonic (Type)
 
static Mnemonic::StdType getStdType (Type)
 
static Type getType (const Mnemonic &)
 
- Static Public Member Functions inherited from Math::Formula
static const char * sKeyExpression ()
 
static const char * sKeyFileType ()
 
static const char * sKeyRecStartVals ()
 

Friends

class ElasticFormulaRepository
 
class ElasticPropGuess
 

Additional Inherited Members

- Protected Member Functions inherited from Math::Formula
void addShift (int, int, int &, TypeSet< TypeSet< int > > &)
 
int varNameIdx (const char *varnm) const
 
- Protected Attributes inherited from Math::Formula
BufferString desc_
 
BufferString errmsg_
 
Expressionexpr_ = nullptr
 
Threads::Lock formlock_
 
TypeSet< int > inpidxs_
 
ObjectSet< InpDefinps_
 
const bool inputsareseries_
 
const Mnemonicoutputformmn_ = nullptr
 
const UnitOfMeasureoutputformunit_ = nullptr
 
const UnitOfMeasureoutputvalunit_ = nullptr
 
TypeSet< double > prevvals_
 
TypeSet< int > recshifts_
 
TypeSet< double > recstartvals_
 
const SpecVarSetspecvars_
 
BufferString text_
 
TypeSet< int > validxs_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Elastic formula def to generate elastic layers.

<>

Member Enumeration Documentation

◆ Type

Enumerator
Den 
PVel 
SVel 
FracRho 
FracAzi 
Undef 

Constructor & Destructor Documentation

◆ ElasticFormula()

ElasticFormula::ElasticFormula ( const char *  nm,
const char *  expr,
Type   
)

◆ ~ElasticFormula()

ElasticFormula::~ElasticFormula ( )

Member Function Documentation

◆ expression()

const char* ElasticFormula::expression ( ) const

◆ fillPar()

void ElasticFormula::fillPar ( IOPar ) const

◆ getFrom()

static ElasticFormula* ElasticFormula::getFrom ( const RockPhysics::Formula )
static

◆ getMnemonic()

static const Mnemonic& ElasticFormula::getMnemonic ( Type  )
static

◆ getStdType()

static Mnemonic::StdType ElasticFormula::getStdType ( Type  )
static

◆ getType()

static Type ElasticFormula::getType ( const Mnemonic )
static

◆ hasType()

bool ElasticFormula::hasType ( Type  ) const

◆ parseVariable()

mDeprecatedObs const char* ElasticFormula::parseVariable ( int  idx,
float &   
) const

◆ setExpression()

void ElasticFormula::setExpression ( const char *  )

◆ setType()

void ElasticFormula::setType ( Type  )

◆ type()

Type ElasticFormula::type ( ) const

◆ units() [1/2]

mDeprecatedObs BufferStringSet ElasticFormula::units ( )

◆ units() [2/2]

mDeprecatedObs const BufferStringSet ElasticFormula::units ( ) const

◆ usePar()

void ElasticFormula::usePar ( const IOPar )

◆ variables() [1/2]

mDeprecatedObs BufferStringSet ElasticFormula::variables ( )

◆ variables() [2/2]

mDeprecatedObs const BufferStringSet ElasticFormula::variables ( ) const

Friends And Related Function Documentation

◆ ElasticFormulaRepository

friend class ElasticFormulaRepository
friend

◆ ElasticPropGuess

friend class ElasticPropGuess
friend

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