OpendTect-6_4  6.4
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Pick::SetMgr Class Reference

Utility to manage pick set lifecycles. Also supports change notifications. More...

Inheritance diagram for Pick::SetMgr:
[legend]

Classes

struct  ChangeData
 

Public Member Functions

 ~SetMgr ()
 
int size () const
 
Setget (int idx)
 
const Setget (int idx) const
 
const MultiIDid (int idx) const
 
int indexOf (const char *) const
 
int indexOf (const Set &) const
 
int indexOf (const MultiID &) const
 
Setget (const MultiID &i)
 
const Setget (const MultiID &i) const
 
const MultiIDget (const Set &s) const
 
Setget (const char *s)
 
const Setget (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)
 
Undoundo ()
 
const Undoundo () 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::Stringname () const
 
virtual const OD::StringannotName () 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 SetMgrgetMgr (const char *)
 

Public Attributes

Notifier< SetMgrlocationChanged
 Passes ChangeData*. More...
 
Notifier< SetMgrsetToBeRemoved
 Passes Set*. More...
 
Notifier< SetMgrsetAdded
 passes Set* More...
 
Notifier< SetMgrsetChanged
 passes Set* More...
 
Notifier< SetMgrsetDispChanged
 passes Set* More...
 

Protected Member Functions

void add (const MultiID &, Set *)
 
Setfind (const MultiID &) const
 
MultiIDfind (const Set &) const
 
Setfind (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

Undoundo_
 
ObjectSet< Setpss_
 
TypeSet< MultiIDids_
 
BoolTypeSet changed_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Detailed Description

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.

Constructor & Destructor Documentation

Pick::SetMgr::~SetMgr ( )
Pick::SetMgr::SetMgr ( const char *  nm)

creates an unmanaged SetMgr Normally you don't want that, use getMgr() instead

Member Function Documentation

void Pick::SetMgr::add ( const MultiID ,
Set  
)
protected
Set* Pick::SetMgr::find ( const MultiID ) const
protected
MultiID* Pick::SetMgr::find ( const Set ) const
protected
Set* Pick::SetMgr::find ( const char *  ) const
protected
Set& Pick::SetMgr::get ( int  idx)
inline
const Set& Pick::SetMgr::get ( int  idx) const
inline
Set& Pick::SetMgr::get ( const MultiID i)
inline
const Set& Pick::SetMgr::get ( const MultiID i) const
inline
const MultiID& Pick::SetMgr::get ( const Set s) const
inline
Set& Pick::SetMgr::get ( const char *  s)
inline
const Set& Pick::SetMgr::get ( const char *  s) const
inline
static BufferString Pick::SetMgr::getDispFileName ( const MultiID )
static
static SetMgr& Pick::SetMgr::getMgr ( const char *  )
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
bool Pick::SetMgr::isChanged ( int  idx) const
inline
void Pick::SetMgr::objRm ( CallBacker )
protected
bool Pick::SetMgr::readDisplayPars ( const MultiID ,
IOPar  
) const
void Pick::SetMgr::removeAll ( )
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::set ( const MultiID ,
Set  
)

add, replace or remove (pass null Set ptr). Set is already, or becomes mine Note that replacement will trigger two callbacks

void Pick::SetMgr::setID ( int  idx,
const MultiID  
)
void Pick::SetMgr::setUnChanged ( int  idx,
bool  yn = true 
)
inline
int Pick::SetMgr::size ( ) const
inline
void Pick::SetMgr::survChg ( CallBacker )
protected
Undo& Pick::SetMgr::undo ( )
const Undo& Pick::SetMgr::undo ( ) const
bool Pick::SetMgr::writeDisplayPars ( const MultiID ,
const IOPar  
) const

Member Data Documentation

BoolTypeSet Pick::SetMgr::changed_
protected
TypeSet<MultiID> Pick::SetMgr::ids_
protected
Notifier<SetMgr> Pick::SetMgr::locationChanged

Passes ChangeData*.

ObjectSet<Set> Pick::SetMgr::pss_
protected
Notifier<SetMgr> Pick::SetMgr::setAdded

passes Set*

Notifier<SetMgr> Pick::SetMgr::setChanged

passes Set*

Notifier<SetMgr> Pick::SetMgr::setDispChanged

passes Set*

Notifier<SetMgr> Pick::SetMgr::setToBeRemoved

Passes Set*.

Undo& Pick::SetMgr::undo_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019