OpendTect
7.0
|
Utility to manage pick set lifecycles. Also supports change notifications. More...
Classes | |
struct | BulkChangeData |
struct | ChangeData |
Public Member Functions | |
SetMgr (const char *nm) | |
~SetMgr () | |
RefMan< Set > | get (const char *nm) |
ConstRefMan< Set > | get (const char *nm) const |
RefMan< Set > | get (const MultiID &mid) |
ConstRefMan< Set > | get (const MultiID &mid) const |
const MultiID & | get (const Set &s) const |
RefMan< Set > | get (int idx) |
ConstRefMan< Set > | get (int idx) const |
const MultiID & | id (int idx) const |
int | indexOf (const char *) const |
int | indexOf (const MultiID &) const |
int | indexOf (const Set &) const |
bool | isChanged (int idx) const |
bool | readDisplayPars (const MultiID &, IOPar &) const |
void | removeCBs (CallBacker *) |
void | reportBulkChange (CallBacker *sender, const BulkChangeData &) |
void | reportChange (CallBacker *sender, const ChangeData &) |
void | reportChange (CallBacker *sender, const Set &) |
void | reportDispChange (CallBacker *sender, const Set &) |
void | set (const MultiID &, Set *) |
void | setID (int idx, const MultiID &) |
void | setUnChanged (int idx, bool yn=true) |
int | size () const |
Undo & | undo () |
const Undo & | undo () const |
bool | writeDisplayPars (const MultiID &, const IOPar &) const |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
const name_type & | name () const override |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
static void | dumpMgrInfo (StringPairSet &) |
static BufferString | getDispFileName (const MultiID &) |
static SetMgr & | getMgr (const char *) |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< SetMgr > | bulkLocationChanged |
Passes BulkChangeData*. More... | |
Notifier< SetMgr > | locationChanged |
Passes ChangeData*. More... | |
Notifier< SetMgr > | setAdded |
passes Set* More... | |
Notifier< SetMgr > | setChanged |
passes Set* More... | |
Notifier< SetMgr > | setDispChanged |
passes Set* More... | |
Notifier< SetMgr > | setToBeRemoved |
Passes Set*. More... | |
Protected Member Functions | |
void | add (const MultiID &, Set *) |
RefMan< Set > | find (const char *) |
ConstRefMan< Set > | find (const char *) const |
RefMan< Set > | find (const MultiID &) |
ConstRefMan< Set > | find (const MultiID &) const |
MultiID * | find (const Set &) const |
void | objRm (CallBacker *) |
void | removeAll () |
void | survChg (CallBacker *) |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Attributes | |
BoolTypeSet | changed_ |
TypeSet< MultiID > | ids_ |
RefObjectSet< Set > | pss_ |
Undo & | undo_ |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
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 | ( | const char * | nm | ) |
Pick::SetMgr::~SetMgr | ( | ) |
|
static |
|
protected |
|
protected |
|
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 MultiID & | ) | const |
int Pick::SetMgr::indexOf | ( | const Set & | ) | const |
|
inline |
|
protected |
|
protected |
void Pick::SetMgr::removeCBs | ( | CallBacker * | ) |
void Pick::SetMgr::reportBulkChange | ( | CallBacker * | sender, |
const BulkChangeData & | |||
) |
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 |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024