OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WMouseLocationHandler::WMouseLocationInfo Class Reference

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

Detailed Description

This class holds the information about the mouse pointer location in a certain viewe.

Definition at line 68 of file WMouseLocationHandler.h.

Constructor & Destructor Documentation

◆ WMouseLocationInfo() [1/2]

WMouseLocationHandler::WMouseLocationInfo::WMouseLocationInfo ( std::string  viewerName,
std::pair< float, float >  pixelCoords 
)
inline

Initializing members.

Parameters
viewerNameName of the osg::viewer to which the infos belong
pixelCoordsThe pixel position of the mouse pointer in the viewer.

Definition at line 77 of file WMouseLocationHandler.h.

◆ WMouseLocationInfo() [2/2]

WMouseLocationHandler::WMouseLocationInfo::WMouseLocationInfo ( )
inline

Default initializing members.

Definition at line 86 of file WMouseLocationHandler.h.

Member Function Documentation

◆ getPixel()

WVector2d WMouseLocationHandler::WMouseLocationInfo::getPixel ( ) const
inline

Obtain the mouse location in pixel coordinates.

Returns
The position of the mouse pointer in the viewer.

Definition at line 96 of file WMouseLocationHandler.h.

References m_pixelCoords.

Member Data Documentation

◆ m_pixelCoords

std::pair< float, float > WMouseLocationHandler::WMouseLocationInfo::m_pixelCoords
private

Pixel coordinates of the mouse.

Definition at line 105 of file WMouseLocationHandler.h.

Referenced by getPixel().

◆ m_viewerName

std::string WMouseLocationHandler::WMouseLocationInfo::m_viewerName
private

name of the viewer

Definition at line 104 of file WMouseLocationHandler.h.


The documentation for this class was generated from the following file: