OpendTect-6_4  6.4
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 ()
 
void setAllowMultiple (bool yn)
 
bool allowMultiple () const
 
void select (int id, bool keepoldsel=false)
 
void deSelect (int id)
 
void deSelectAll ()
 
void updateSel (int id)
 
const TypeSet< int > & selected () const
 
void fillPar (IOPar &, TypeSet< int > &) const
 
void usePar (const IOPar &)
 
- 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...
 

Public Attributes

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

Protected Member Functions

void select (int id, bool keep, bool lock)
 
void deSelect (int id, bool lock)
 
void deSelectAll (bool lock)
 
void updateSel (int id, bool lock)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

TypeSet< int > selectedids_
 
bool allowmultiple_
 
Threads::Mutexmutex_
 

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

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

Member Function Documentation

bool visBase::SelectionManager::allowMultiple ( ) const
inline
void visBase::SelectionManager::deSelect ( int  id)
inline
void visBase::SelectionManager::deSelect ( int  id,
bool  lock 
)
protected
void visBase::SelectionManager::deSelectAll ( )
inline
void visBase::SelectionManager::deSelectAll ( bool  lock)
protected
void visBase::SelectionManager::fillPar ( IOPar ,
TypeSet< int > &   
) const
inline
void visBase::SelectionManager::select ( int  id,
bool  keepoldsel = false 
)
inline
void visBase::SelectionManager::select ( int  id,
bool  keep,
bool  lock 
)
protected
const TypeSet<int>& visBase::SelectionManager::selected ( ) const
inline
void visBase::SelectionManager::setAllowMultiple ( bool  yn)
void visBase::SelectionManager::updateSel ( int  id)
inline
void visBase::SelectionManager::updateSel ( int  id,
bool  lock 
)
protected
void visBase::SelectionManager::usePar ( const IOPar )
inline

Member Data Documentation

bool visBase::SelectionManager::allowmultiple_
protected
CNotifier<SelectionManager,int> visBase::SelectionManager::deselnotifier
Threads::Mutex& visBase::SelectionManager::mutex_
protected
CNotifier<SelectionManager,int> visBase::SelectionManager::reselnotifier
TypeSet<int> visBase::SelectionManager::selectedids_
protected
CNotifier<SelectionManager,int> visBase::SelectionManager::selnotifier
CNotifier<SelectionManager,int> visBase::SelectionManager::updateselnotifier

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