15 #include "uiattributesmod.h" 24 namespace ZDomain {
class Info; }
43 const char* par2=0,
int idx=
mUdf(
int) )
44 : label_(lbl), par1_(par1), par2_(par2), pgidx_(idx)
45 , evaloutput_(false) {}
109 virtual const char* attribName()
const = 0;
121 bool is2D()
const {
return is2d_; }
127 static const char* getInputAttribName(
uiAttrSel*,
const Desc&);
129 static const char* timegatestr();
130 static const char* frequencystr();
131 static const char* stepoutstr();
132 static const char* filterszstr();
143 virtual bool getOutput(
Desc&);
147 void fillOutput(
Desc&,
int selout);
166 bool zIsTime()
const;
169 uiAttrSel* createInpFld(
bool is2d,
const char* txt=0);
187 static const char* sKeyOtherGrp();
188 static const char* sKeyBasicGrp();
189 static const char* sKeyFilterGrp();
190 static const char* sKeyFreqGrp();
191 static const char* sKeyPatternGrp();
192 static const char* sKeyStatsGrp();
193 static const char* sKeyPositionGrp();
194 static const char* sKeyDipGrp();
196 static uiString sInputTypeError(
int input);
209 #define mDeclReqAttribUIFns \ 211 static uiAttrDescEd* createInstance(uiParent*,bool); \ 212 static int factoryid_; \ 214 static void initClass(); \ 215 virtual const char* attribName() const; \ 216 static int factoryID() { return factoryid_; } 219 #define mInitAttribUIPars( clss, attr, displaynm, grp, domtyp, dimtyp ) \ 221 int clss::factoryid_ = -1; \ 223 void clss::initClass() \ 225 if ( factoryid_ < 0 ) \ 226 factoryid_ = uiAF().add( displaynm, attr::attribName(), grp, \ 227 clss::createInstance, (int)domtyp, (int)dimtyp ); \ 230 uiAttrDescEd* clss::createInstance( uiParent* p, bool is2d ) \ 232 uiAttrDescEd* de = new clss( p, is2d ); \ 233 de->setDisplayName( displaynm ); \ 234 de->setDomainType( domtyp ); \ 235 de->setDimensionType( dimtyp ); \ 239 const char* clss::attribName() const \ 241 return attr::attribName(); \ 244 #define mInitAttribUI( clss, attr, displaynm, grp ) \ 245 mInitAttribUIPars(clss,attr,displaynm,grp,uiAttrDescEd::Both, \ 246 uiAttrDescEd::AnyDim)
DescSet * ads_
Definition: uiattrdesced.h:180
BufferString attrnm_
Definition: uiattrdesced.h:176
#define mExpClass(module)
Definition: commondefs.h:160
virtual void getEvalParams(TypeSet< EvalParam > &) const
Definition: uiattrdesced.h:107
bool needinpupd_
Definition: uiattrdesced.h:182
bool is2D() const
Definition: uiattrdesced.h:121
DomainType domtyp_
Definition: uiattrdesced.h:177
HelpKey helpKey()
Definition: uiattrdesced.h:88
bool is2d_
Definition: uiattrdesced.h:181
virtual void setOutputStep(float step)
Definition: uiattrdesced.h:105
virtual bool setInput(const Desc &)
Definition: uiattrdesced.h:140
const Desc * curDesc() const
Definition: uiattrdesced.h:92
DomainType
Definition: uiattrdesced.h:113
uiString gateLabel() const
Definition: uiattrdesced.h:160
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
User interface element for getting attribute with both real and imaginary part.
Definition: uiattrsel.h:247
Manages attribute description set.
Definition: attribdescsetman.h:28
Attribute description editor.
Definition: uiattrdesced.h:83
uiString errmsg_
Definition: uiattrdesced.h:179
Set of attribute descriptions.
Definition: attribdescset.h:35
uiString shiftLabel() const
Definition: uiattrdesced.h:163
Definition: uiattrdesced.h:113
virtual bool areUIParsOK()
Definition: uiattrdesced.h:145
void setDimensionType(DimensionType t)
Definition: uiattrdesced.h:119
static const uiString & emptyString()
Definition: uistring.h:109
virtual bool getInput(Desc &)
Definition: uiattrdesced.h:141
DimensionType dimensionType() const
Definition: uiattrdesced.h:118
int pgidx_
Definition: uiattrdesced.h:56
Definition: uistring.h:89
Definition: uiparent.h:26
ChangeTracker chtr_
Definition: uiattrdesced.h:168
Definition: helpview.h:49
HelpKey helpkey_
Definition: uiioobjsel.h:101
virtual float getOutputValue(int idx) const
Definition: uiattrdesced.h:104
Attribute description editor creator.
Definition: uiattrdesced.h:66
bool needInputUpdate() const
Definition: uiattrdesced.h:156
void setDescSet(DescSet *ds)
Definition: uiattrdesced.h:90
void setNeedInputUpdate()
Definition: uiattrdesced.h:123
const char * displayName() const
Definition: uiattrdesced.h:110
BufferString dispname_
Definition: uiattrdesced.h:202
bool operator==(const EvalParam &ep) const
Definition: uiattrdesced.h:47
Set of (small) copyable elements.
Definition: commontypes.h:30
bool evaloutput_
Definition: uiattrdesced.h:57
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.
Definition: attribdesc.h:89
BufferString label_
Definition: uiattrdesced.h:53
virtual bool getParameters(Desc &)
Definition: uiattrdesced.h:139
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
const ZDomain::Info * zdomaininfo_
Definition: uiattrdesced.h:183
EvalParam(const char *lbl, const char *par1=0, const char *par2=0, int idx=mUdf(int))
Definition: uiattrdesced.h:42
HelpKey helpkey_
Definition: uiattrdesced.h:175
virtual bool setParameters(const Desc &)
Definition: uiattrdesced.h:138
DimensionType dimtyp_
Definition: uiattrdesced.h:178
Definition: uisteeringsel.h:24
DescSetMan * adsman_
Definition: uiattrdesced.h:204
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Updates a variable when changes occur.
Definition: changetracker.h:25
TypeSet< DataPack::FullID > dpfids_
Definition: uiattrdesced.h:185
static uiHor3DInterpol * create(uiParent *)
virtual int getOutputIdx(float val) const
Definition: uiattrdesced.h:103
void setDesc(const Attrib::Desc *)
BufferString par1_
Definition: uiattrdesced.h:54
User interface for attribute selection data.
Definition: uiattrsel.h:39
DomainType domainType() const
Definition: uiattrdesced.h:114
User interface element for storing attribute desc selection.
Definition: uiattrsel.h:174
Definition: commontypes.h:39
void setDisplayName(const char *nm)
Definition: uiattrdesced.h:111
virtual bool setOutput(const Desc &)
Definition: uiattrdesced.h:142
void setDomainType(DomainType t)
Definition: uiattrdesced.h:115
DimensionType
Definition: uiattrdesced.h:117
Desc * desc_
Definition: uiattrdesced.h:203
BufferString par2_
Definition: uiattrdesced.h:55
Definition: uiattrdesced.h:117
Attribute Steering ui element: data + selection of type.
Definition: uisteeringsel.h:56
virtual ~uiAttrDescEdCreater()
Definition: uiattrdesced.h:69
Desc * curDesc()
Definition: uiattrdesced.h:91
Information of z-domain.
Definition: zdomain.h:91
Compound key consisting of ints.
Definition: multiid.h:25
Semblance Attribute.
Definition: attribdataholder.h:25
FixedString Depth()
Definition: keystrs.h:60
Description of attribute parameters to evaluate.
Definition: uiattrdesced.h:39