17 #include "visbasemod.h" 25 namespace Threads {
class Mutex; }
50 void setAllowMultiple(
bool yn);
53 void select(
int id,
bool keepoldsel=
false)
54 { select(
id, keepoldsel,
true ); }
72 void select(
int id,
bool keep,
bool lock);
73 void deSelect(
int id,
bool lock);
74 void deSelectAll(
bool lock);
75 void updateSel(
int id,
bool lock);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool allowMultiple() const
Definition: visselman.h:51
const TypeSet< int > & selected() const
Definition: visselman.h:59
CNotifier< SelectionManager, int > selnotifier
Definition: visselman.h:61
void deSelect(int id)
Definition: visselman.h:55
void select(int id, bool keepoldsel=false)
Definition: visselman.h:53
CNotifier< SelectionManager, int > reselnotifier
Definition: visselman.h:66
interface to threads that should be portable.
Definition: atomic.h:28
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
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.
Definition: visselman.h:44
void fillPar(IOPar &, TypeSet< int > &) const
Definition: visselman.h:68
void updateSel(int id)
Definition: visselman.h:57
void deSelectAll()
Definition: visselman.h:56
CNotifier< SelectionManager, int > deselnotifier
Definition: visselman.h:62
Definition: visannot.h:43
CNotifier< SelectionManager, int > updateselnotifier
Definition: visselman.h:63
Threads::Mutex & mutex_
Definition: visselman.h:79
Is a lock that allows a thread to have exlusive rights to something.
Definition: thread.h:43
Notifier with automatic capsule creation.
Definition: callback.h:395
void usePar(const IOPar &)
Definition: visselman.h:69
TypeSet< int > selectedids_
Definition: visselman.h:77
bool allowmultiple_
Definition: visselman.h:78