15 #include "generalmod.h" 29 enum Type { Den, PVel, SVel };
34 , expression_(expr ? expr : "")
42 {
return name() == pr.
name(); }
44 {
return name() != pr.
name(); }
47 const char*
expression()
const {
return expression_.str();}
56 const char* parseVariable(
int idx,
float&)
const;
80 void addFormula(
const char* nm,
const char* expr,
87 void clear() { formulas_.erase(); }
95 void addRockPhysicsFormulas();
96 void addPreDefinedFormulas();
98 mGlobal(General) friend ElasticFormulaRepository&
ElFR();
101 mGlobal(General) ElasticFormulaRepository& ElFR();
115 { stdtype_ = elasticToStdType(formula_.type()); }
#define mExpClass(module)
Definition: commondefs.h:160
ElasticPropertyRef(const char *nm, const ElasticFormula &f)
Definition: elasticprop.h:111
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
#define mGlobal(module)
Definition: commondefs.h:163
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:42
ElasticFormula & formula()
Definition: elasticprop.h:120
ElasticFormulaRepository & ElFR()
ElasticFormula formula_
Definition: elasticprop.h:128
Set of BufferString objects.
Definition: bufstringset.h:28
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Source
Definition: repos.h:25
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Object with a name.
Definition: namedobj.h:35
ElasticFormula::Type elasticType() const
Definition: elasticprop.h:124
const ElasticFormula & formula() const
Definition: elasticprop.h:121
StdType
Definition: propertyref.h:46
ElasticFormula::Type elasticType()
Definition: elasticprop.h:123
Elastic property reference data.
Definition: elasticprop.h:108
virtual const OD::String & name() const
Definition: namedobj.h:47