Public Member Functions | Private Attributes | List of all members
SurgSim::Devices::OsgMouseHandler Class Reference

#include <SurgSim/Devices/Mouse/OsgMouseHandler.h>

Inheritance diagram for SurgSim::Devices::OsgMouseHandler:

Public Member Functions

 OsgMouseHandler ()
 Constructor. More...
 
bool handle (const osgGA::GUIEventAdapter &eventHandler, osgGA::GUIActionAdapter &actionAdapter) override
 Method to handle GUI event. More...
 

Private Attributes

std::weak_ptr< MouseScaffoldm_mouseScaffold
 A back pointer to the scaffold which owns this handle. More...
 
float m_lastX
 lastX is the X-coordinate of mouse's last location lastY is the Y-coordinate of mouse's last location More...
 
float m_lastY
 
int m_lastButtonMask
 Last button mask. More...
 
int m_lastScrollX
 Last direction of mouse wheel's horizontal (X) and vertical (Y) movement. More...
 
int m_lastScrollY
 

Constructor & Destructor Documentation

§ OsgMouseHandler()

SurgSim::Devices::OsgMouseHandler::OsgMouseHandler ( )

Constructor.

Member Function Documentation

§ handle()

bool SurgSim::Devices::OsgMouseHandler::handle ( const osgGA::GUIEventAdapter &  eventHandler,
osgGA::GUIActionAdapter &  actionAdapter 
)
override

Method to handle GUI event.

Parameters
eventHandlerA osgGA::GUIEventAdapter
actionAdapterA osgGA::GUIActionAdapter (required by this virtual method)
Returns
True if the event has been handled by this method; Otherwise, false.

Member Data Documentation

§ m_lastButtonMask

int SurgSim::Devices::OsgMouseHandler::m_lastButtonMask
private

Last button mask.

§ m_lastScrollX

int SurgSim::Devices::OsgMouseHandler::m_lastScrollX
private

Last direction of mouse wheel's horizontal (X) and vertical (Y) movement.

§ m_lastScrollY

int SurgSim::Devices::OsgMouseHandler::m_lastScrollY
private

§ m_lastX

float SurgSim::Devices::OsgMouseHandler::m_lastX
private

lastX is the X-coordinate of mouse's last location lastY is the Y-coordinate of mouse's last location

§ m_lastY

float SurgSim::Devices::OsgMouseHandler::m_lastY
private

§ m_mouseScaffold

std::weak_ptr<MouseScaffold> SurgSim::Devices::OsgMouseHandler::m_mouseScaffold
private

A back pointer to the scaffold which owns this handle.


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