![]() |
OpenWalnut
1.5.0dev
|
This class holds the information about the mouse pointer location in a certain viewe. More...
#include <WMouseLocationHandler.h>
Collaboration diagram for WMouseLocationHandler::WMouseLocationInfo:Public Member Functions | |
| WMouseLocationInfo (std::string viewerName, std::pair< float, float > pixelCoords) | |
| Initializing members. More... | |
| WMouseLocationInfo () | |
| Default initializing members. More... | |
| WVector2d | getPixel () const |
| Obtain the mouse location in pixel coordinates. More... | |
Private Attributes | |
| std::string | m_viewerName |
| name of the viewer More... | |
| std::pair< float, float > | m_pixelCoords |
| Pixel coordinates of the mouse. More... | |
This class holds the information about the mouse pointer location in a certain viewe.
Definition at line 68 of file WMouseLocationHandler.h.
|
inline |
Initializing members.
| viewerName | Name of the osg::viewer to which the infos belong |
| pixelCoords | The pixel position of the mouse pointer in the viewer. |
Definition at line 77 of file WMouseLocationHandler.h.
|
inline |
Default initializing members.
Definition at line 86 of file WMouseLocationHandler.h.
|
inline |
Obtain the mouse location in pixel coordinates.
Definition at line 96 of file WMouseLocationHandler.h.
References m_pixelCoords.
|
private |
Pixel coordinates of the mouse.
Definition at line 105 of file WMouseLocationHandler.h.
Referenced by getPixel().
|
private |
name of the viewer
Definition at line 104 of file WMouseLocationHandler.h.