![]() |
VR-Forces 4.1 Class Documentation
|
A DtSubjectAnnouncer tells DtSubjectObservers that the subject T is activated or deactivated. More...

Public Types | |
| typedef std::list< T * > | ActivatedList |
Public Member Functions | |
| virtual | ~DtSubjectAnnouncer () |
| virtual void | activate (T *subject) const |
| Causes the activate signal to be emitted. | |
| virtual void | deactivate (T *subject) const |
| Causes the deactivate signal to be emitted. | |
| virtual std::list< T * > & | activatedList () |
| Return the list of activated subjects. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtSubjectAnnouncer * | findInstance (DtDe &de) |
| Get the instance of this object. This object is 'lazily created'. | |
Public Attributes | |
| boost::signal< void(T *)> | signal_activate |
| Signal with a T argument and a void return value. | |
| boost::signal< void(T *)> | signal_deactivate |
| Signal with a DtIgDisplayUserInterface argument and a void return value. | |
Protected Member Functions | |
| DtSubjectAnnouncer (DtDe &de) | |
| The constructor for this class is protected. Use create(). | |
| virtual void | slot_onActivate (T *subject) |
| Connected to its own signal_activate which adds subjects to the activated list. | |
| virtual void | slot_onDeactivate (T *subject) |
| Connected to its own signal_deactivate which removes subjects from the activated list. | |
Static Protected Member Functions | |
| static DtSubjectAnnouncer * | create (DtDe &de) |
| Static creator function. | |
Protected Attributes | |
| ActivatedList | myActivatedList |
| List of activated subjects. | |
A DtSubjectAnnouncer tells DtSubjectObservers that the subject T is activated or deactivated.
| typedef std::list<T*> makVrv::DtSubjectAnnouncer< T >::ActivatedList |
|
virtual |
|
protected |
The constructor for this class is protected. Use create().
|
static |
Get the instance of this object. This object is 'lazily created'.
References makVrv::DtDe::findInstance(), and makVrv::DtDe::registerInstance().
Referenced by makVrv::DtSubjectObserver< T >::connect().
|
virtual |
Causes the activate signal to be emitted.
|
virtual |
Causes the deactivate signal to be emitted.
|
virtual |
Return the list of activated subjects.
Referenced by makVrv::DtSubjectObserver< T >::connect().
|
staticprotected |
Static creator function.
This class is 'lazily created' when needed. Creation happens during the first call to findInstance().
|
protectedvirtual |
Connected to its own signal_activate which adds subjects to the activated list.
|
protectedvirtual |
Connected to its own signal_deactivate which removes subjects from the activated list.
| boost::signal<void (T*)> makVrv::DtSubjectAnnouncer< T >::signal_activate |
Signal with a T argument and a void return value.
Referenced by makVrv::DtSubjectObserver< T >::connect().
| boost::signal<void (T*)> makVrv::DtSubjectAnnouncer< T >::signal_deactivate |
Signal with a DtIgDisplayUserInterface argument and a void return value.
|
protected |
List of activated subjects.