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

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

Inheritance diagram for SurgSim::Device::OsgMouseHandler:

Public Member Functions

 OsgMouseHandler ()
 Constructor. More...
 
virtual 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

SurgSim::Device::OsgMouseHandler::OsgMouseHandler ( )

Constructor.

Member Function Documentation

bool SurgSim::Device::OsgMouseHandler::handle ( const osgGA::GUIEventAdapter &  eventHandler,
osgGA::GUIActionAdapter &  actionAdapter 
)
overridevirtual

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

int SurgSim::Device::OsgMouseHandler::m_lastButtonMask
private

Last button mask.

int SurgSim::Device::OsgMouseHandler::m_lastScrollX
private

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

int SurgSim::Device::OsgMouseHandler::m_lastScrollY
private
float SurgSim::Device::OsgMouseHandler::m_lastX
private

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

float SurgSim::Device::OsgMouseHandler::m_lastY
private
std::weak_ptr<MouseScaffold> SurgSim::Device::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: