27 #include "WMouseLocationHandler.h"
28 #include "../common/WAssert.h"
39 m_viewerName( viewerName )
This class holds the information about the mouse pointer location in a certain viewe.
WMouseLocationHandler()
Constructor that initalizes members with sensible defaults.
boost::signals2::signal< void(WMouseLocationInfo) > m_locationSignal
One can register to this signal to receive location events.
WMouseLocationInfo m_mouseLocation
Representation of mouse location.
std::string m_viewerName
which viewer sends the signal
WMouseLocationInfo getLocationInfo()
Gives information about the mouse location.
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
Deals with the events found by the osg.
boost::signals2::signal< void(WMouseLocationInfo) > * getLocationSignal()
virtual ~WMouseLocationHandler()
Virtual destructor needed because of virtual function.