1 #ifndef attribdescset_h 2 #define attribdescset_h 15 #include "attributeenginemod.h" 29 class Desc;
class DescSetup;
class SelSpec;
43 bool isEmpty()
const {
return descs_.isEmpty(); }
44 inline int size()
const {
return nrDescs(
true,
true); }
45 int indexOf(
const char* nm,
bool usrref=
true)
const;
46 inline bool isPresent(
const char* nm,
bool usr=
true )
const 47 {
return indexOf(nm,usr) >= 0; }
64 void createAndAddMultOutDescs(
const DescID&,
74 int nrDescs(
bool inclstored,
bool inclhidden)
const;
77 const Desc*
desc(
int idx )
const {
return descs_[idx]; }
80 {
return gtDesc(
id); }
82 {
return gtDesc(
id); }
85 DescID getID(
const char* ref,
bool isusrref,
86 bool mustbestored=
false,
87 bool usestorinfo=
false)
const;
91 bool create=
true,
bool blindcomp=
false,
92 const char* blindcompnm=0);
93 Desc* getFirstStored(
bool usesteering=
true)
const;
98 void removeDesc(
const DescID&);
99 void moveDescUpDown(
const DescID&,
bool);
102 int removeUnused(
bool removestored=
false,
103 bool kpdefault=
true);
108 bool isAttribUsed(
const DescID&)
const;
109 void cleanUpDescsMissingInputs();
121 void handleStorageOldFormat(
IOPar&);
125 void handleReferenceInput(
Desc*);
140 bool withstored=
true)
const;
144 void setContainStoredDescOnly(
bool yn);
146 {
return storedattronly_; }
148 { couldbeanydim_ = yn; }
150 {
return couldbeanydim_; }
151 bool hasStoredInMem()
const;
153 bool exportToDot(
const char* nm,
const char* fnm)
const;
155 inline bool is2D()
const {
return is2d_; }
164 {
return "Parameter 'id' is not correct"; }
191 DescID ensureDefStoredPresent()
const;
192 static uiString sFactoryEntryNotFound(
const char* attrnm);
const Desc * getDesc(const DescID &id) const
Definition: attribdescset.h:81
#define mExpClass(module)
Definition: commondefs.h:160
TypeSet< DescID > ids_
Definition: attribdescset.h:177
void setCouldBeUsedInAnyDimension(bool yn)
Definition: attribdescset.h:147
const Desc * desc(int idx) const
Definition: attribdescset.h:77
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Desc * getDesc(const DescID &id)
Definition: attribdescset.h:79
~DescSet()
Definition: attribdescset.h:40
const Desc & operator[](int idx) const
Definition: attribdescset.h:73
Desc & operator[](int idx)
Definition: attribdescset.h:72
Set of data points with group selection.
Definition: datapointset.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool isEmpty() const
Definition: attribdescset.h:43
bool is2D() const
Definition: attribdescset.h:155
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
static BufferString storedIDErrStr()
Definition: attribdescset.h:163
Set of attribute descriptions.
Definition: attribdescset.h:35
bool couldBeUsedInAnyDimension() const
Definition: attribdescset.h:149
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
BufferString defidstr_
Definition: attribdescset.h:182
static const char * indexStr()
Definition: attribdescset.h:162
bool isPresent(const char *nm, bool usr=true) const
Definition: attribdescset.h:46
SeparString with backquotes as separators, use in most ascii files.
Definition: separstr.h:119
Set of pointers to objects.
Definition: commontypes.h:32
FixedString Desc()
Definition: keystrs.h:62
Set of (small) copyable elements.
Definition: commontypes.h:30
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiString errmsg_
Definition: attribdescset.h:181
CNotifier< DescSet, DescID > descToBeRemoved
Definition: attribdescset.h:166
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
Setup class for Attrib::Desc.
Definition: attribdesc.h:39
static const char * userRefStr()
Definition: attribdescset.h:159
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
static uiHor3DInterpol * create(uiParent *)
static const char * hiddenStr()
Definition: attribdescset.h:161
bool containsStoredDescOnly() const
Definition: attribdescset.h:145
static const char * highestIDStr()
Definition: attribdescset.h:157
bool is2d_
Definition: attribdescset.h:178
Notifier with automatic capsule creation.
Definition: callback.h:395
Definition: uistring.h:218
static const char * definitionStr()
Definition: attribdescset.h:158
Desc * desc(int idx)
Definition: attribdescset.h:76
const char * errMsg() const
Definition: horizontracker.h:61
bool couldbeanydim_
Definition: attribdescset.h:180
int size() const
Definition: attribdescset.h:44
ObjectSet< Desc > descs_
Definition: attribdescset.h:176
DescID defattribid_
Definition: attribdescset.h:183
bool storedattronly_
Definition: attribdescset.h:179
Compound key consisting of ints.
Definition: multiid.h:25
Semblance Attribute.
Definition: attribdataholder.h:25
static const char * inputPrefixStr()
Definition: attribdescset.h:160