OpendTect-6_4
6.4
|
Utility to manage pick set lifecycles. Also supports change notifications. More...
Classes | |
struct | ChangeData |
Public Member Functions | |
~SetMgr () | |
int | size () const |
Set & | get (int idx) |
const Set & | get (int idx) const |
const MultiID & | id (int idx) const |
int | indexOf (const char *) const |
int | indexOf (const Set &) const |
int | indexOf (const MultiID &) const |
Set & | get (const MultiID &i) |
const Set & | get (const MultiID &i) const |
const MultiID & | get (const Set &s) const |
Set & | get (const char *s) |
const Set & | get (const char *s) const |
void | set (const MultiID &, Set *) |
void | setID (int idx, const MultiID &) |
void | reportChange (CallBacker *sender, const ChangeData &) |
void | reportChange (CallBacker *sender, const Set &) |
void | reportDispChange (CallBacker *sender, const Set &) |
void | removeCBs (CallBacker *) |
bool | isChanged (int idx) const |
void | setUnChanged (int idx, bool yn=true) |
Undo & | undo () |
const Undo & | undo () const |
bool | readDisplayPars (const MultiID &, IOPar &) const |
bool | writeDisplayPars (const MultiID &, const IOPar &) const |
SetMgr (const char *nm) | |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=0) | |
NamedObject (const NamedObject *linkedto) | |
NamedObject (const NamedObject &) | |
virtual | ~NamedObject () |
void | setLinkedTo (NamedObject *) |
bool | operator== (const NamedObject &oth) const |
virtual const OD::String & | name () const |
virtual const OD::String & | annotName () const |
virtual void | setName (const char *) |
void | setCleanName (const char *) |
cleans string first More... | |
void | deleteNotify (const CallBack &) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static BufferString | getDispFileName (const MultiID &) |
static SetMgr & | getMgr (const char *) |
Public Attributes | |
Notifier< SetMgr > | locationChanged |
Passes ChangeData*. More... | |
Notifier< SetMgr > | setToBeRemoved |
Passes Set*. More... | |
Notifier< SetMgr > | setAdded |
passes Set* More... | |
Notifier< SetMgr > | setChanged |
passes Set* More... | |
Notifier< SetMgr > | setDispChanged |
passes Set* More... | |
Protected Member Functions | |
void | add (const MultiID &, Set *) |
Set * | find (const MultiID &) const |
MultiID * | find (const Set &) const |
Set * | find (const char *) const |
void | survChg (CallBacker *) |
void | objRm (CallBacker *) |
void | removeAll () |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
Undo & | undo_ |
ObjectSet< Set > | pss_ |
TypeSet< MultiID > | ids_ |
BoolTypeSet | changed_ |
Protected Attributes inherited from NamedObject | |
BufferString * | name_ |
NamedObject * | linkedto_ |
CallBackSet * | delnotify_ |
Utility to manage pick set lifecycles. Also supports change notifications.
You can create your own set manager for your own special pick sets. There is a OD-wide Mgr() available which is supposed to hold all 'plain' picksets loaded in the OD-tree.
A new special-purpose manager is created by passing your own name to the static getMgr() method.
Pick::SetMgr::~SetMgr | ( | ) |
Pick::SetMgr::SetMgr | ( | const char * | nm | ) |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
const MultiID& Pick::SetMgr::id | ( | int | idx | ) | const |
int Pick::SetMgr::indexOf | ( | const char * | ) | const |
int Pick::SetMgr::indexOf | ( | const Set & | ) | const |
int Pick::SetMgr::indexOf | ( | const MultiID & | ) | const |
|
inline |
|
protected |
|
protected |
void Pick::SetMgr::removeCBs | ( | CallBacker * | ) |
void Pick::SetMgr::reportChange | ( | CallBacker * | sender, |
const ChangeData & | |||
) |
void Pick::SetMgr::reportChange | ( | CallBacker * | sender, |
const Set & | |||
) |
void Pick::SetMgr::reportDispChange | ( | CallBacker * | sender, |
const Set & | |||
) |
void Pick::SetMgr::setID | ( | int | idx, |
const MultiID & | |||
) |
|
inline |
|
inline |
|
protected |
Undo& Pick::SetMgr::undo | ( | ) |
const Undo& Pick::SetMgr::undo | ( | ) | const |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019