OpendTect-6_4  6.4
Classes | Namespaces | Macros | Typedefs
attribdesc.h File Reference
Include dependency graph for attribdesc.h:

Go to the source code of this file.

Classes

class  Attrib::DescSetup
 Setup class for Attrib::Desc. More...
 
class  Attrib::InputSpec
 Specification of input data of an attribute. More...
 
class  Attrib::Desc
 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...
 

Namespaces

 Attrib
 Semblance Attribute.
 

Macros

#define mGetIntFromDesc(__desc, var, varstring)
 
#define mGetFloatFromDesc(__desc, var, varstring)
 
#define mGetDoubleFromDesc(__desc, var, varstring)
 
#define mGetBoolFromDesc(__desc, var, varstring)
 
#define mGetEnumFromDesc(__desc, var, varstring)
 
#define mGetStringFromDesc(__desc, var, varstring)
 
#define mGetBinIDFromDesc(__desc, var, varstring)
 
#define mGetFloatIntervalFromDesc(__desc, var, varstring)
 
#define mGetFloat(var, varstring)   mGetFloatFromDesc( desc_, var, varstring )
 
#define mGetInt(var, varstring)   mGetIntFromDesc( desc_, var, varstring )
 
#define mGetBool(var, varstring)   mGetBoolFromDesc( desc_, var, varstring )
 
#define mGetEnum(var, varstring)   mGetEnumFromDesc( desc_, var, varstring )
 
#define mGetString(var, varstring)   mGetStringFromDesc( desc_, var, varstring )
 
#define mGetBinID(var, varstring)   mGetBinIDFromDesc( desc_, var, varstring )
 
#define mGetFloatInterval(var, varstring)   mGetFloatIntervalFromDesc( desc_, var, varstring )
 
#define mGetDouble(var, varstring)   mGetDoubleFromDesc( desc_, var, varstring )
 

Typedefs

typedef void(* Attrib::DescStatusUpdater) (Desc &)
 
typedef void(* Attrib::DescDefaultsUpdater) (Desc &)
 

Macro Definition Documentation

#define mGetBinID (   var,
  varstring 
)    mGetBinIDFromDesc( desc_, var, varstring )
#define mGetBinIDFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
var.inl() = __desc.getValParam(varstring)->getIntValue(0); \
var.crl() = __desc.getValParam(varstring)->getIntValue(1); \
if ( mIsUdf(var.inl()) || mIsUdf(var.crl()) )\
{\
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(__desc.getValParam(varstring));\
mDynamicCastGet(Attrib::BinIDParam*,binidparam##var,valparam##var);\
if ( binidparam##var ) \
var = binidparam##var->getDefaultBinIDValue();\
}\
if ( __desc.descSet()->is2D() ) \
var.inl() = 0; \
}
Attribute Value Parameter.
Definition: attribparambase.h:94
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
A parameter that is used by an attribute.
Definition: attribparam.h:37
#define mGetBool (   var,
  varstring 
)    mGetBoolFromDesc( desc_, var, varstring )
#define mGetBoolFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(__desc.getValParam(varstring));\
mDynamicCastGet(Attrib::BoolParam*,boolparam##var,valparam##var);\
if ( boolparam##var ) \
var = boolparam##var->isSet() ? boolparam##var->getBoolValue(0)\
: boolparam##var->getDefaultBoolValue(0);\
}
Attribute Value Parameter.
Definition: attribparambase.h:94
Bool parameter that is used by an attribute.
Definition: attribparam.h:65
#define mGetDouble (   var,
  varstring 
)    mGetDoubleFromDesc( desc_, var, varstring )
#define mGetDoubleFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
var = __desc.getValParam(varstring)->getDValue(0); \
if ( mIsUdf(var) )\
var = __desc.getValParam(varstring)->getDefaultdValue(0);\
}
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
#define mGetEnum (   var,
  varstring 
)    mGetEnumFromDesc( desc_, var, varstring )
#define mGetEnumFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(__desc.getValParam(varstring));\
mDynamicCastGet(Attrib::EnumParam*,enumparam##var,valparam##var);\
if ( enumparam##var ) \
var = enumparam##var->isSet() ? enumparam##var->getIntValue(0)\
: enumparam##var->getDefaultIntValue(0);\
}
Attribute Value Parameter.
Definition: attribparambase.h:94
Enum parameter that is used by an attribute.
Definition: attribparam.h:84
#define mGetFloat (   var,
  varstring 
)    mGetFloatFromDesc( desc_, var, varstring )
#define mGetFloatFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
var = __desc.getValParam(varstring)->getFValue(0); \
if ( mIsUdf(var) )\
var = __desc.getValParam(varstring)->getDefaultfValue(0);\
}
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
#define mGetFloatInterval (   var,
  varstring 
)    mGetFloatIntervalFromDesc( desc_, var, varstring )
#define mGetFloatIntervalFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
var.start = __desc.getValParam(varstring)->getFValue(0); \
var.stop = __desc.getValParam(varstring)->getFValue(1); \
if ( mIsUdf(var.start) || mIsUdf(var.stop) )\
{\
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(__desc.getValParam(varstring));\
mDynamicCastGet(Attrib::ZGateParam*,gateparam##var,valparam##var);\
if ( gateparam##var ) \
var = gateparam##var->getDefaultGateValue();\
}\
}
Attribute Value Parameter.
Definition: attribparambase.h:94
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
Gate parameter that is used by an attribute. For example: IntGateParam, FloatGateParam, DoubleGateParam and ZGateParam.
Definition: attribparam.h:252
#define mGetInt (   var,
  varstring 
)    mGetIntFromDesc( desc_, var, varstring )
#define mGetIntFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
var = __desc.getValParam(varstring)->getIntValue(0); \
if ( mIsUdf(var) )\
var = __desc.getValParam(varstring)->getDefaultIntValue(0);\
}
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
#define mGetString (   var,
  varstring 
)    mGetStringFromDesc( desc_, var, varstring )
#define mGetStringFromDesc (   __desc,
  var,
  varstring 
)
Value:
{\
var = __desc.getValParam(varstring)->getStringValue(0); \
if ( FixedString(var).isEmpty() )\
var = __desc.getValParam(varstring)->getDefaultStringValue(0); \
}
OD::String that holds an existing text string.
Definition: fixedstring.h:29
bool isEmpty(const NLAModel *mdl)

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