#include <MouseEventHandler.hpp>
◆ MouseEventHandler()
dart::gui::osg::MouseEventHandler::MouseEventHandler |
( |
| ) |
|
|
inline |
◆ addObserver()
void dart::common::Subject::addObserver |
( |
Observer * |
_observer | ) |
const |
|
protectedinherited |
Add an Observer to the list of Observers.
◆ addSubject()
void dart::common::Observer::addSubject |
( |
const Subject * |
_subject | ) |
|
|
protectedinherited |
Add a Subject for this Observer.
◆ handleDestructionNotification() [1/2]
void dart::common::Observer::handleDestructionNotification |
( |
const Subject * |
_subject | ) |
|
|
protectedvirtualinherited |
◆ handleDestructionNotification() [2/2]
void dart::gui::osg::MouseEventHandler::handleDestructionNotification |
( |
const Subject * |
_subject | ) |
|
|
inlineoverrideprotected |
◆ receiveDestructionNotification()
void dart::common::Observer::receiveDestructionNotification |
( |
const Subject * |
_subject | ) |
|
|
protectedinherited |
Called whenever a Subject is destroyed (or sends out a destruction notification).
Override handleDestructionNotification() in order to customize your class's response to destruction notifications.
◆ removeAllSubjects()
void dart::common::Observer::removeAllSubjects |
( |
| ) |
|
|
protectedinherited |
Remove all Subjects from this Observer.
◆ removeObserver()
void dart::common::Subject::removeObserver |
( |
Observer * |
_observer | ) |
const |
|
protectedinherited |
Remove an Observer from the list of Observers.
◆ removeSubject()
void dart::common::Observer::removeSubject |
( |
const Subject * |
_subject | ) |
|
|
protectedinherited |
Remove a Subject from this Observer.
◆ sendDestructionNotification()
void dart::common::Subject::sendDestructionNotification |
( |
| ) |
const |
|
protectedinherited |
Send a destruction notification to all Observers.
This will cause all Observers to behave as if this Subject has been permanently deleted, so it should only be called when that behavior is desired.
◆ update()
virtual void dart::gui::osg::MouseEventHandler::update |
( |
| ) |
|
|
pure virtual |
◆ DefaultEventHandler
◆ mEventHandler
◆ mObservers
std::set<Observer*> dart::common::Subject::mObservers |
|
mutableprotectedinherited |
List of current Observers.
◆ mSubjects
std::set<const Subject*> dart::common::Observer::mSubjects |
|
protectedinherited |
List of current Subjects for this Observer.