OpendTect-6_4  6.4
Macros
paramsetget.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mSetFloatInterval(str, newval)
 used to set parameters More...
 
#define mSetFloat(str, newval)
 
#define mSetDouble(str, newval)
 
#define mSetInt(str, newval)
 
#define mSetBool(str, newval)
 
#define mSetEnum(str, newval)
 
#define mSetBinID(str, newval)
 
#define mSetString(str, newval)
 
#define mIfGetBool(str, var, setfunc)
 
#define mIfGetFloat(str, var, setfunc)
 
#define mIfGetDouble(str, var, setfunc)
 
#define mIfGetInt(str, var, setfunc)
 
#define mIfGetEnum(str, var, setfunc)
 
#define mIfGetString(str, var, setfunc)
 
#define mIfGetBinID(str, var, setfunc)
 
#define mIfGetFloatInterval(str, var, setfunc)
 

Macro Definition Documentation

#define mIfGetBinID (   str,
  var,
  setfunc 
)
Value:
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(desc.getValParam(str));\
mDynamicCastGet(Attrib::BinIDParam*,binidparam##var,valparam##var);\
if ( binidparam##var ) \
{ \
BinID var; \
var = binidparam##var->getValue(); \
if ( mIsUdf(var.inl()) || mIsUdf(var.crl()) )\
var = binidparam##var->getDefaultBinIDValue();\
setfunc; \
}
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 mIfGetBool (   str,
  var,
  setfunc 
)
Value:
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(desc.getValParam(str));\
mDynamicCastGet(Attrib::BoolParam*,boolparam##var,valparam##var);\
if ( boolparam##var ) \
{\
bool var;\
if ( boolparam##var->isSet() )\
var = boolparam##var->getBoolValue(0);\
else\
var = boolparam##var->getDefaultBoolValue(0);\
setfunc;\
}
Attribute Value Parameter.
Definition: attribparambase.h:94
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662
Bool parameter that is used by an attribute.
Definition: attribparam.h:65
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
#define mIfGetDouble (   str,
  var,
  setfunc 
)
Value:
if ( desc.getValParam(str) ) \
{\
double var = desc.getValParam(str)->getDValue(0);\
if ( mIsUdf(var) )\
var = desc.getValParam(str)->getDefaultdValue(0);\
setfunc;\
}
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
#define mIfGetEnum (   str,
  var,
  setfunc 
)
Value:
Attrib::ValParam* valparam##var = \
const_cast<Attrib::ValParam*>(desc.getValParam(str));\
mDynamicCastGet(Attrib::EnumParam*,enumparam##var,valparam##var);\
if ( enumparam##var ) \
{\
int var;\
if ( enumparam##var->isSet() )\
var = enumparam##var->getIntValue(0);\
else\
var = enumparam##var->getDefaultIntValue(0);\
setfunc;\
}
Attribute Value Parameter.
Definition: attribparambase.h:94
Enum parameter that is used by an attribute.
Definition: attribparam.h:84
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
#define mIfGetFloat (   str,
  var,
  setfunc 
)
Value:
if ( desc.getValParam(str) ) \
{\
float var = desc.getValParam(str)->getFValue(0);\
if ( mIsUdf(var) )\
var = desc.getValParam(str)->getDefaultfValue(0);\
setfunc;\
}
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
#define mIfGetFloatInterval (   str,
  var,
  setfunc 
)
Value:
Attrib::ValParam* valparam##var =\
const_cast<Attrib::ValParam*>(desc.getValParam(str));\
if ( valparam##var ) \
{ \
Interval<float> var; \
var.start = valparam##var->getFValue(0); \
var.stop = valparam##var->getFValue(1); \
if ( mIsUdf(var.start) || mIsUdf(var.stop) )\
{\
mDynamicCastGet(Attrib::FloatGateParam*,gateparam##var,valparam##var);\
if ( gateparam##var ) \
var = gateparam##var->getDefaultGateValue();\
}\
setfunc; \
}
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 mIfGetInt (   str,
  var,
  setfunc 
)
Value:
if ( desc.getValParam(str) ) \
{\
int var = desc.getValParam(str)->getIntValue(0);\
if ( mIsUdf(var) )\
var = desc.getValParam(str)->getDefaultIntValue(0);\
setfunc;\
}
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
#define mIfGetString (   str,
  var,
  setfunc 
)
Value:
if ( desc.getValParam(str) ) \
{ \
BufferString var = desc.getValParam(str)->getStringValue(0); \
if ( var.isEmpty() ) \
var = desc.getValParam(str)->getDefaultStringValue(0); \
setfunc;\
}
#define mSetBinID (   str,
  newval 
)
Value:
{ \
mDynamicCastGet(Attrib::BinIDParam*,param,desc.getValParam(str)) \
const BinID oldval = param->getValue(); \
if ( chtr_.set(oldval,newval) ) \
{ param->setValue( newval.inl(), 0 ); param->setValue( newval.crl(), 1 ); } \
}
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
A parameter that is used by an attribute.
Definition: attribparam.h:37
#define mSetBool (   str,
  newval 
)
Value:
{ \
mDynamicCastGet(Attrib::BoolParam*,param,desc.getValParam(str)) \
const bool oldval = param->getBoolValue(); \
if ( chtr_.set(oldval,newval) ) \
param->setValue( newval ); \
else\
param->setSet();\
}
Bool parameter that is used by an attribute.
Definition: attribparam.h:65
#define mSetDouble (   str,
  newval 
)
Value:
{ \
Attrib::ValParam* param = desc.getValParam( str ); \
const double oldval = param->getDValue(); \
if ( chtr_.set(oldval,newval) ) \
param->setValue( newval ); \
}
#define mSetEnum (   str,
  newval 
)
Value:
{ \
mDynamicCastGet(Attrib::EnumParam*,param,desc.getValParam(str)) \
const int oldval = param->getIntValue(); \
if ( chtr_.set(oldval,newval) ) \
param->setValue( newval ); \
else\
param->setSet();\
}
Enum parameter that is used by an attribute.
Definition: attribparam.h:84
#define mSetFloat (   str,
  newval 
)
Value:
{ \
Attrib::ValParam* param = desc.getValParam( str ); \
const float oldval = param->getFValue(); \
if ( chtr_.set(oldval,newval) ) \
param->setValue( newval ); \
}
#define mSetFloatInterval (   str,
  newval 
)
Value:
{ \
mDynamicCastGet(Attrib::FloatGateParam*,param,desc.getParam(str)) \
const Interval<float> oldval( param->getFValue(0), param->getFValue(1) ); \
if ( chtr_.set(oldval,newval) ) param->setValue( newval ); \
}
Gate parameter that is used by an attribute. For example: IntGateParam, FloatGateParam, DoubleGateParam and ZGateParam.
Definition: attribparam.h:252

used to set parameters

#define mSetInt (   str,
  newval 
)
Value:
{ \
Attrib::ValParam* param = desc.getValParam( str ); \
const int oldval = param->getIntValue(); \
if ( chtr_.set(oldval,newval) ) \
param->setValue( newval ); \
}
#define mSetString (   str,
  newval 
)
Value:
{ \
Attrib::ValParam* param = desc.getValParam( str ); \
BufferString oldval = param->getStringValue(); \
if ( chtr_.set(oldval,newval) ) \
param->setValue( newval ); \
}

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