OpendTect
6.6
|
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected. More...
Public Types | |
enum | Locality { SingleTrace , PossiblyMultiTrace , MultiTrace } |
enum | SatisfyLevel { AllOk , Warning , Error } |
Public Member Functions | |
Desc (const char *attrname, DescStatusUpdater updater=0, DescDefaultsUpdater defupdater=0) | |
Desc (const Desc &) | |
void | addInput (const InputSpec &) |
void | addOutputDataType (Seis::DataType) |
void | addOutputDataTypeSameAs (int) |
void | addParam (Param *) |
const OD::String & | attribName () const |
void | changeOutputDataType (int, Seis::DataType) |
void | changeStoredID (const char *) |
Desc * | cloneDescAndPropagateInput (const DescID &, BufferString) |
Seis::DataType | dataType (int output=-1) const |
DescSet * | descSet () const |
const char * | errMsg () const |
void | getAncestorIDs (DescID cid, TypeSet< DescID > &, TypeSet< int > &) const |
bool | getDefStr (BufferString &) const |
void | getDependencies (TypeSet< Attrib::DescID > &) const |
Desc * | getInput (int) |
const Desc * | getInput (int) const |
void | getInputs (TypeSet< Attrib::DescID > &) const |
DescID | getMultiOutputInputID () const |
Param * | getParam (const char *key) |
const Param * | getParam (const char *key) const |
bool | getParentID (DescID cid, DescID &pid, int &) const |
BufferString | getStoredID (bool recursive=false) const |
Desc * | getStoredInput () const |
BufferString | getStoredType (bool recursive=false) const |
ValParam * | getValParam (const char *key) |
const ValParam * | getValParam (const char *key) const |
DescID | id () const |
DescID | inputId (int idx) const |
InputSpec & | inputSpec (int) |
const InputSpec & | inputSpec (int) const |
bool | is2D () const |
bool | isHidden () const |
bool | isIdenticalTo (const Desc &, bool cmpoutput=true) const |
bool | isIdentifiedBy (const char *) const |
bool | isParamEnabled (const char *key) const |
bool | isParamRequired (const char *key) const |
bool | isPS () const |
SatisfyLevel | isSatisfied () const |
bool | isSteering () const |
bool | isStored () const |
bool | isStoredInMem () const |
Locality | locality () const |
bool | needProvInit () const |
int | nrInputs () const |
int | nrOutputs () const |
bool | parseDefStr (const char *) |
bool | removeInput (int idx) |
void | removeOutputs () |
int | selectedOutput () const |
void | selectOutput (int) |
void | set2D (bool yn) |
void | setDescSet (DescSet *) |
void | setErrMsg (const char *str) |
void | setHidden (bool yn) |
bool | setInput (int, const Desc *) |
void | setLocality (Locality l) |
void | setNeedProvInit (bool yn=true) |
void | setNrOutputs (Seis::DataType, int) |
void | setParamEnabled (const char *key, bool yn=true) |
void | setParamRequired (const char *key, bool yn=true) |
void | setPS (bool yn) |
void | setSteering (bool yn) |
void | setUserRef (const char *) |
void | setUsesTrcPos (bool yn) |
void | updateDefaultParams () |
void | updateParams () |
const char * | userRef () const |
bool | usesTracePosition () const |
Static Public Member Functions | |
static bool | getAttribName (const char *defstr, BufferString &) |
static void | getKeysValsPublic (const char *defstr, BufferStringSet &keys, BufferStringSet &vals, const char *onlyneedkey=0) |
static bool | getParamString (const char *defstr, const char *key, BufferString &) |
static const char * | sKeyAll () |
static const char * | sKeyCrlDipComp () |
static const char * | sKeyInlDipComp () |
static const char * | sKeyLineDipComp () |
static const char * | sKeyOutput () |
Protected Member Functions | |
Param * | findParam (const char *key) |
bool | setInput_ (int, Desc *) |
Static Protected Member Functions | |
static void | getKeysVals (const char *defstr, BufferStringSet &keys, BufferStringSet &vals, const char *onlyneedkey=0) |
Protected Attributes | |
BufferString | attribname_ |
DescDefaultsUpdater | defaultsupdater_ |
DescSet * | descset_ |
BufferString | errmsg_ |
bool | hidden_ |
ObjectSet< Desc > | inputs_ |
TypeSet< InputSpec > | inputspecs_ |
bool | is2d_ |
bool | isps_ |
bool | issteering_ |
Locality | locality_ |
bool | needprovinit_ |
TypeSet< int > | outputtypelinks_ |
TypeSet< Seis::DataType > | outputtypes_ |
ObjectSet< Param > | params_ |
int | seloutput_ |
DescStatusUpdater | statusupdater_ |
BufferString | userref_ |
bool | usestrcpos_ |
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
The attrib name, the parameters and the selected output number together form a definition string that defines what the attribute calculates.
Each Desc has DescID that is unique within it's DescSet.
<>
Attrib::Desc::Desc | ( | const Desc & | ) |
Attrib::Desc::Desc | ( | const char * | attrname, |
DescStatusUpdater | updater = 0 , |
||
DescDefaultsUpdater | defupdater = 0 |
||
) |
void Attrib::Desc::addInput | ( | const InputSpec & | ) |
void Attrib::Desc::addOutputDataType | ( | Seis::DataType | ) |
void Attrib::Desc::addOutputDataTypeSameAs | ( | int | ) |
void Attrib::Desc::addParam | ( | Param * | ) |
Pointer becomes mine
const OD::String& Attrib::Desc::attribName | ( | ) | const |
void Attrib::Desc::changeOutputDataType | ( | int | , |
Seis::DataType | |||
) |
void Attrib::Desc::changeStoredID | ( | const char * | ) |
Desc* Attrib::Desc::cloneDescAndPropagateInput | ( | const DescID & | , |
BufferString | |||
) |
Seis::DataType Attrib::Desc::dataType | ( | int | output = -1 | ) | const |
output | specifies which output is required, or -1 for the selected output. |
DescSet* Attrib::Desc::descSet | ( | ) | const |
const char* Attrib::Desc::errMsg | ( | ) | const |
|
protected |
|
static |
bool Attrib::Desc::getDefStr | ( | BufferString & | ) | const |
void Attrib::Desc::getDependencies | ( | TypeSet< Attrib::DescID > & | ) | const |
Generates list of attributes this attribute is dependant on.
Desc* Attrib::Desc::getInput | ( | int | ) |
const Desc* Attrib::Desc::getInput | ( | int | ) | const |
void Attrib::Desc::getInputs | ( | TypeSet< Attrib::DescID > & | ) | const |
|
staticprotected |
Fills keys and vals with pairs of parameters from the defstr.
|
inlinestatic |
Fills keys and vals with pairs of parameters from the defstr.
DescID Attrib::Desc::getMultiOutputInputID | ( | ) | const |
Param* Attrib::Desc::getParam | ( | const char * | key | ) |
const Param* Attrib::Desc::getParam | ( | const char * | key | ) | const |
|
static |
BufferString Attrib::Desc::getStoredID | ( | bool | recursive = false | ) | const |
Desc* Attrib::Desc::getStoredInput | ( | ) | const |
BufferString Attrib::Desc::getStoredType | ( | bool | recursive = false | ) | const |
ValParam* Attrib::Desc::getValParam | ( | const char * | key | ) |
const ValParam* Attrib::Desc::getValParam | ( | const char * | key | ) | const |
DescID Attrib::Desc::id | ( | ) | const |
DescID Attrib::Desc::inputId | ( | int | idx | ) | const |
InputSpec& Attrib::Desc::inputSpec | ( | int | ) |
const InputSpec& Attrib::Desc::inputSpec | ( | int | ) | const |
|
inline |
|
inline |
If hidden, it won't show up in UI.
bool Attrib::Desc::isIdenticalTo | ( | const Desc & | , |
bool | cmpoutput = true |
||
) | const |
bool Attrib::Desc::isIdentifiedBy | ( | const char * | ) | const |
bool Attrib::Desc::isParamEnabled | ( | const char * | key | ) | const |
bool Attrib::Desc::isParamRequired | ( | const char * | key | ) | const |
|
inline |
SatisfyLevel Attrib::Desc::isSatisfied | ( | ) | const |
Checks whether all inputs are satisfied.
|
inline |
bool Attrib::Desc::isStored | ( | ) | const |
bool Attrib::Desc::isStoredInMem | ( | ) | const |
|
inline |
|
inline |
int Attrib::Desc::nrInputs | ( | ) | const |
int Attrib::Desc::nrOutputs | ( | ) | const |
bool Attrib::Desc::parseDefStr | ( | const char * | ) |
bool Attrib::Desc::removeInput | ( | int | idx | ) |
void Attrib::Desc::removeOutputs | ( | ) |
int Attrib::Desc::selectedOutput | ( | ) | const |
void Attrib::Desc::selectOutput | ( | int | ) |
|
inline |
void Attrib::Desc::setDescSet | ( | DescSet * | ) |
|
inline |
|
inline |
If hidden, it won't show up in UI.
bool Attrib::Desc::setInput | ( | int | , |
const Desc * | |||
) |
|
protected |
|
inline |
|
inline |
void Attrib::Desc::setNrOutputs | ( | Seis::DataType | , |
int | |||
) |
void Attrib::Desc::setParamEnabled | ( | const char * | key, |
bool | yn = true |
||
) |
void Attrib::Desc::setParamRequired | ( | const char * | key, |
bool | yn = true |
||
) |
|
inline |
|
inline |
void Attrib::Desc::setUserRef | ( | const char * | ) |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
void Attrib::Desc::updateDefaultParams | ( | ) |
void Attrib::Desc::updateParams | ( | ) |
const char* Attrib::Desc::userRef | ( | ) | const |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022