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:if ( binidparam##var ) \
{ \
BinID var; \
var = binidparam##var->getValue(); \
var = binidparam##var->getDefaultBinIDValue();\
setfunc; \
}
Attribute Value Parameter.
Definition: attribparambase.h:92
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:285
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:123
A parameter that is used by an attribute.
Definition: attribparam.h:35
| #define mIfGetBool |
( |
|
str, |
|
|
|
var, |
|
|
|
setfunc |
|
) |
| |
Value: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:92
Bool parameter that is used by an attribute.
Definition: attribparam.h:63
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:123
| #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:285
| #define mIfGetEnum |
( |
|
str, |
|
|
|
var, |
|
|
|
setfunc |
|
) |
| |
Value: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:92
Enum parameter that is used by an attribute.
Definition: attribparam.h:82
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:123
| #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:285
| #define mIfGetFloatInterval |
( |
|
str, |
|
|
|
var, |
|
|
|
setfunc |
|
) |
| |
Value:if ( valparam##var ) \
{ \
Interval<float> var; \
var.stop = valparam##var->getFValue(1); \
if ( gateparam##var ) \
var = gateparam##var->getDefaultGateValue();\
}\
setfunc; \
}
Attribute Value Parameter.
Definition: attribparambase.h:92
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:285
virtual float getFValue(int idx=0) const
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:123
Gate parameter that is used by an attribute. For example: IntGateParam, FloatGateParam, DoubleGateParam and ZGateParam.
Definition: attribparam.h:250
| #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:285
| #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:28
A parameter that is used by an attribute.
Definition: attribparam.h:35
| #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:63
| #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:82
| #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:250
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 ); \
}