Go to the source code of this file.
|
#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) |
|
#define mIfGetBinID |
( |
|
str, |
|
|
|
var, |
|
|
|
setfunc |
|
) |
| |
Value:{ \
BinID var; \
var = binidparam##var->getValue(); \
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:{\
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);\
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:{\
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);\
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:{ \
Interval<float> var; \
var.start = valparam##var->getFValue(0); \
var.stop = valparam##var->getFValue(1); \
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);\
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:{ \
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:{ \
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:{ \
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:{ \
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 ); \
}