![]() |
VR-Forces 4.0.4 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. | |
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 |
| makVrv::DtSubjectAnnouncer< T >::~DtSubjectAnnouncer | ( | ) | [virtual] |
| makVrv::DtSubjectAnnouncer< T >::DtSubjectAnnouncer | ( | DtDe & | de | ) | [protected] |
The constructor for this class is protected. Use create().
| DtSubjectAnnouncer< T > * makVrv::DtSubjectAnnouncer< T >::findInstance | ( | DtDe & | de | ) | [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().
| void makVrv::DtSubjectAnnouncer< T >::activate | ( | T * | subject | ) | const [virtual] |
Causes the activate signal to be emitted.
| void makVrv::DtSubjectAnnouncer< T >::deactivate | ( | T * | subject | ) | const [virtual] |
Causes the deactivate signal to be emitted.
| std::list< T * > & makVrv::DtSubjectAnnouncer< T >::activatedList | ( | ) | [virtual] |
Return the list of activated subjects.
Referenced by makVrv::DtSubjectObserver< T >::connect().
| DtSubjectAnnouncer< T > * makVrv::DtSubjectAnnouncer< T >::create | ( | DtDe & | de | ) | [static, protected] |
Static creator function.
This class is 'lazily created' when needed. Creation happens during the first call to findInstance().
| void makVrv::DtSubjectAnnouncer< T >::slot_onActivate | ( | T * | subject | ) | [protected, virtual] |
Connected to its own signal_activate which adds subjects to the activated list.
| void makVrv::DtSubjectAnnouncer< T >::slot_onDeactivate | ( | T * | subject | ) | [protected, virtual] |
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.
ActivatedList makVrv::DtSubjectAnnouncer< T >::myActivatedList [protected] |
List of activated subjects.