33 #ifndef DART_GUI_OSG_MOUSEEVENTHANDLER_HPP_ 34 #define DART_GUI_OSG_MOUSEEVENTHANDLER_HPP_ 36 #include "dart/common/ClassWithVirtualBase.hpp" 37 #include "dart/common/Observer.hpp" 38 #include "dart/common/Subject.hpp" 40 #include "dart/gui/osg/DefaultEventHandler.hpp" 46 class DefaultEventHandler;
48 DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_BEGIN
64 void handleDestructionNotification(
const Subject* _subject)
override 66 if (mEventHandler == _subject)
72 DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_END
78 #endif // DART_GUI_OSG_MOUSEEVENTHANDLER_HPP_ The Subject class is a base class for any object that wants to report when it gets destroyed...
Definition: Subject.hpp:57
Definition: Aspect.cpp:40
Definition: MouseEventHandler.hpp:49
Definition: DefaultEventHandler.hpp:103
virtual void update()=0
Overload this function to set behavior that will get triggered during a mouse event.
The Observer class should be inherited by any class that wants to respond in a customized way to the ...
Definition: Observer.hpp:51