OpendTect  6.6
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 (int id)
 
void deSelectAll ()
 
void fillPar (IOPar &, TypeSet< int > &) const
 
void select (int id, bool keepoldsel=false)
 
const TypeSet< int > & selected () const
 
void setAllowMultiple (bool yn)
 
void updateSel (int 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
 

Public Attributes

CNotifier< SelectionManager, int > deselnotifier
 
CNotifier< SelectionManager, int > reselnotifier
 
CNotifier< SelectionManager, int > selnotifier
 
CNotifier< SelectionManager, int > updateselnotifier
 

Protected Member Functions

void deSelect (int id, bool lock)
 
void deSelectAll (bool lock)
 
void select (int id, bool keep, bool lock)
 
void updateSel (int id, bool lock)
 

Protected Attributes

bool allowmultiple_
 
Threads::Mutexmutex_
 
TypeSet< int > selectedids_
 

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 ( int  id)
inline

◆ deSelect() [2/2]

void visBase::SelectionManager::deSelect ( int  id,
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 ( int  id,
bool  keep,
bool  lock 
)
protected

◆ select() [2/2]

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

◆ selected()

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

◆ setAllowMultiple()

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

◆ updateSel() [1/2]

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

◆ updateSel() [2/2]

void visBase::SelectionManager::updateSel ( int  id,
bool  lock 
)
protected

◆ usePar()

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

Member Data Documentation

◆ allowmultiple_

bool visBase::SelectionManager::allowmultiple_
protected

◆ deselnotifier

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

◆ mutex_

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

◆ reselnotifier

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

◆ selectedids_

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

◆ selnotifier

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

◆ updateselnotifier

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

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