OpendTect  7.0
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
visBase::SelectionManager Class Reference

SelectionManager handles DataObject that can be selected. If an object can be selected, it has to register himself with regSelObject. At registration it has to give two objects, first of all, he gives the object that outside users will associate him with when they want to add their CB to detect his selection. More...

Inheritance diagram for visBase::SelectionManager:
[legend]

Public Member Functions

 SelectionManager ()
 
virtual ~SelectionManager ()
 
bool allowMultiple () const
 
void deSelect (VisID id)
 
void deSelectAll ()
 
void fillPar (IOPar &, TypeSet< int > &) const
 
void select (VisID id, bool keepoldsel=false)
 
const TypeSet< VisID > & selected () const
 
void setAllowMultiple (bool yn)
 
void updateSel (VisID id)
 
void usePar (const IOPar &)
 
- 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 CallBackertrueCaller ()
 

Public Attributes

CNotifier< SelectionManager, VisIDdeselnotifier
 
CNotifier< SelectionManager, VisIDreselnotifier
 
CNotifier< SelectionManager, VisIDselnotifier
 
CNotifier< SelectionManager, VisIDupdateselnotifier
 

Protected Member Functions

void deSelect (VisID, bool lock)
 
void deSelectAll (bool lock)
 
void select (VisID, bool keep, bool lock)
 
void updateSel (VisID, bool lock)
 

Protected Attributes

bool allowmultiple_
 
Threads::Mutexmutex_
 
TypeSet< VisIDselectedids_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

SelectionManager handles DataObject that can be selected. If an object can be selected, it has to register himself with regSelObject. At registration it has to give two objects, first of all, he gives the object that outside users will associate him with when they want to add their CB to detect his selection.

Secondly it has to give the DataObject that actually is selected.

<>

Constructor & Destructor Documentation

◆ SelectionManager()

visBase::SelectionManager::SelectionManager ( )

◆ ~SelectionManager()

virtual visBase::SelectionManager::~SelectionManager ( )
virtual

Member Function Documentation

◆ allowMultiple()

bool visBase::SelectionManager::allowMultiple ( ) const
inline

◆ deSelect() [1/2]

void visBase::SelectionManager::deSelect ( VisID  id)
inline

◆ deSelect() [2/2]

void visBase::SelectionManager::deSelect ( VisID  ,
bool  lock 
)
protected

◆ deSelectAll() [1/2]

void visBase::SelectionManager::deSelectAll ( )
inline

◆ deSelectAll() [2/2]

void visBase::SelectionManager::deSelectAll ( bool  lock)
protected

◆ fillPar()

void visBase::SelectionManager::fillPar ( IOPar ,
TypeSet< int > &   
) const
inline

◆ select() [1/2]

void visBase::SelectionManager::select ( VisID  id,
bool  keepoldsel = false 
)
inline

◆ select() [2/2]

void visBase::SelectionManager::select ( VisID  ,
bool  keep,
bool  lock 
)
protected

◆ selected()

const TypeSet<VisID>& visBase::SelectionManager::selected ( ) const
inline

◆ setAllowMultiple()

void visBase::SelectionManager::setAllowMultiple ( bool  yn)

◆ updateSel() [1/2]

void visBase::SelectionManager::updateSel ( VisID  id)
inline

◆ updateSel() [2/2]

void visBase::SelectionManager::updateSel ( VisID  ,
bool  lock 
)
protected

◆ usePar()

void visBase::SelectionManager::usePar ( const IOPar )
inline

Member Data Documentation

◆ allowmultiple_

bool visBase::SelectionManager::allowmultiple_
protected

◆ deselnotifier

CNotifier<SelectionManager,VisID> visBase::SelectionManager::deselnotifier

◆ mutex_

Threads::Mutex& visBase::SelectionManager::mutex_
protected

◆ reselnotifier

CNotifier<SelectionManager,VisID> visBase::SelectionManager::reselnotifier

◆ selectedids_

TypeSet<VisID> visBase::SelectionManager::selectedids_
protected

◆ selnotifier

CNotifier<SelectionManager,VisID> visBase::SelectionManager::selnotifier

◆ updateselnotifier

CNotifier<SelectionManager,VisID> visBase::SelectionManager::updateselnotifier

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