DART  6.6.2
dart::gui::osg::InteractiveFrameMouseEvent Class Reference
Inheritance diagram for dart::gui::osg::InteractiveFrameMouseEvent:
dart::gui::osg::MouseEventHandler dart::common::Subject dart::common::Observer

Public Member Functions

 InteractiveFrameMouseEvent (InteractiveFrame *frame)
 
void update () override
 Overload this function to set behavior that will get triggered during a mouse event. More...
 

Protected Member Functions

void handleDestructionNotification (const Subject *_subject) override
 
virtual void handleDestructionNotification (const Subject *_subject)
 Called by receiveDestructionNotification(). More...
 
void sendDestructionNotification () const
 Send a destruction notification to all Observers. More...
 
void addObserver (Observer *_observer) const
 Add an Observer to the list of Observers. More...
 
void removeObserver (Observer *_observer) const
 Remove an Observer from the list of Observers. More...
 
void receiveDestructionNotification (const Subject *_subject)
 Called whenever a Subject is destroyed (or sends out a destruction notification). More...
 
void addSubject (const Subject *_subject)
 Add a Subject for this Observer. More...
 
void removeSubject (const Subject *_subject)
 Remove a Subject from this Observer. More...
 
void removeAllSubjects ()
 Remove all Subjects from this Observer. More...
 

Protected Attributes

InteractiveFramemFrame
 
bool mHighlighting
 
int mTool
 
std::size_t mCoordinate
 
DefaultEventHandlermEventHandler
 
std::set< Observer * > mObservers
 List of current Observers. More...
 
std::set< const Subject * > mSubjects
 List of current Subjects for this Observer. More...
 

Constructor & Destructor Documentation

◆ InteractiveFrameMouseEvent()

dart::gui::osg::InteractiveFrameMouseEvent::InteractiveFrameMouseEvent ( InteractiveFrame frame)
inline

Member Function Documentation

◆ 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::InteractiveFrameMouseEvent::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()

void dart::gui::osg::InteractiveFrameMouseEvent::update ( )
inlineoverridevirtual

Overload this function to set behavior that will get triggered during a mouse event.

Implements dart::gui::osg::MouseEventHandler.

Member Data Documentation

◆ mCoordinate

std::size_t dart::gui::osg::InteractiveFrameMouseEvent::mCoordinate
protected

◆ mEventHandler

DefaultEventHandler* dart::gui::osg::MouseEventHandler::mEventHandler
protectedinherited

◆ mFrame

InteractiveFrame* dart::gui::osg::InteractiveFrameMouseEvent::mFrame
protected

◆ mHighlighting

bool dart::gui::osg::InteractiveFrameMouseEvent::mHighlighting
protected

◆ 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.

◆ mTool

int dart::gui::osg::InteractiveFrameMouseEvent::mTool
protected