OpendTect
7.0
|
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 Types inherited from ObjectWithName | |
typedef OD::String | name_type |
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 |
Public Member Functions inherited from SharedObject | |
SharedObject (const char *nm=nullptr) | |
SharedObject (const SharedObject &) | |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) 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 () |
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_type & | name () const override |
NamedObject & | operator= (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 |
Public Member Functions inherited from RefCount::Referenced | |
void | addObserver (WeakPtrBase *obs) |
Not for normal use. May become private. More... | |
int | nrRefs () const |
Only for expert use. More... | |
void | ref () const |
bool | refIfReffed () const |
Don't use in production, for debugging. More... | |
void | removeObserver (WeakPtrBase *obs) |
Not for normal use. May become private. More... | |
bool | tryRef () const |
Not for normal use. May become private. More... | |
void | unRef () const |
void | unRefNoDelete () 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 () |
Static Public Member Functions inherited from SharedObject | |
static Notifier< SharedObject > & | instanceCreated () |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Static Public Member Functions inherited from RefCount::Referenced | |
static bool | isSane (const Referenced *) |
Protected Member Functions | |
virtual | ~Desc () |
Param * | findParam (const char *key) |
bool | setInput_ (int, Desc *) |
Protected Member Functions inherited from SharedObject | |
virtual | ~SharedObject () |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Member Functions inherited from RefCount::Referenced | |
Referenced () | |
Referenced (const Referenced &) | |
virtual | ~Referenced () |
Referenced & | operator= (const Referenced &) |
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_ |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
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 |
||
) |
|
protectedvirtual |
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-2024