 |
OpendTect
6.6
|
Go to the documentation of this file.
38 int size()
const {
return pss_.size(); }
39 Set&
get(
int idx ) {
return *pss_[idx]; }
40 const Set&
get(
int idx )
const {
return *pss_[idx]; }
52 const Set&
get(
const char* s )
const {
return *
find(s); }
62 enum Ev { Added, Changed, ToBeRemoved };
65 : ev_(e), set_(s), loc_(l) {}
85 enum Ev { Added, ToBeRemoved };
89 : ev_(e), set_(s), locs_(l) {}
104 {
return idx < changed_.size()
105 ? (bool) changed_[idx] :
false;}
107 {
if ( changed_.validIdx(idx) ) changed_[idx] = !yn; }
146 return SetMgr::getMgr(0);
const Set * set_
Definition: picksetmgr.h:92
Definition: picksetmgr.h:84
void reportChange(CallBacker *sender, const Set &)
int indexOf(const MultiID &) const
int indexOf(const Set &) const
bool readDisplayPars(const MultiID &, IOPar &) const
int size() const
Definition: picksetmgr.h:38
const Set * set_
Definition: picksetmgr.h:68
Set of picks with something in common.
Definition: pickset.h:34
void set(const MultiID &, Set *)
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's,...
Definition: namedobj.h:72
ChangeData(Ev e, const Set *s, int l)
Definition: picksetmgr.h:64
Set of pointers to objects.
Definition: commontypes.h:31
Notifier< SetMgr > setAdded
passes Set*
Definition: picksetmgr.h:79
Notifier< SetMgr > setChanged
passes Set*
Definition: picksetmgr.h:80
void add(const MultiID &, Set *)
const Set & get(const char *s) const
Definition: picksetmgr.h:52
void reportDispChange(CallBacker *sender, const Set &)
Ev ev_
Definition: picksetmgr.h:67
Definition: picklocation.h:21
#define mExpClass(module)
Definition: commondefs.h:177
static BufferString getDispFileName(const MultiID &)
void setUnChanged(int idx, bool yn=true)
Definition: picksetmgr.h:106
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Set * find(const MultiID &) const
Notifier< SetMgr > setToBeRemoved
Passes Set*.
Definition: picksetmgr.h:78
Ev ev_
Definition: picksetmgr.h:91
BoolTypeSet changed_
Definition: picksetmgr.h:127
void survChg(CallBacker *)
TypeSet< int > locs_
Definition: picksetmgr.h:93
Set & get(const char *s)
Definition: picksetmgr.h:51
Undo & undo_
Definition: picksetmgr.h:124
const BufferString * find(const BufferStringSet &, const char *)
const Set & get(int idx) const
Definition: picksetmgr.h:40
Utility to manage pick set lifecycles. Also supports change notifications.
Definition: picksetmgr.h:34
void removeCBs(CallBacker *)
Notifier< SetMgr > locationChanged
Passes ChangeData*.
Definition: picksetmgr.h:77
const Undo & undo() const
static SetMgr & getMgr(const char *)
Class to help setup a callback handling.
Definition: notify.h:126
const int loc_
Definition: picksetmgr.h:69
Definition: picksetmgr.h:61
Set & get(int idx)
Definition: picksetmgr.h:39
SetMgr & Mgr()
Definition: picksetmgr.h:144
Ev
Definition: picksetmgr.h:85
BulkChangeData(Ev e, const Set *s, const TypeSet< int > &l)
Definition: picksetmgr.h:87
Compound key consisting of ints.
Definition: multiid.h:24
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
void reportChange(CallBacker *sender, const ChangeData &)
bool isChanged(int idx) const
Definition: picksetmgr.h:103
ObjectSet< Set > pss_
Definition: picksetmgr.h:125
bool writeDisplayPars(const MultiID &, const IOPar &) const
const MultiID & get(const Set &s) const
Definition: picksetmgr.h:50
const MultiID & id(int idx) const
Set & get(const MultiID &i)
Definition: picksetmgr.h:48
MultiID * find(const Set &) const
Notifier< SetMgr > setDispChanged
passes Set*
Definition: picksetmgr.h:81
void reportBulkChange(CallBacker *sender, const BulkChangeData &)
int indexOf(const char *) const
Ev
Definition: picksetmgr.h:62
const Set & get(const MultiID &i) const
Definition: picksetmgr.h:49
Set * find(const char *) const
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
void setID(int idx, const MultiID &)
TypeSet< MultiID > ids_
Definition: picksetmgr.h:126
Notifier< SetMgr > bulkLocationChanged
Passes BulkChangeData*.
Definition: picksetmgr.h:99
Class to handle undo/redo information.
Definition: undo.h:42
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021