OSGUIsh  0.3.1
Public Member Functions
OSGUIsh::MouseDownFocusPolicy Class Reference

#include <MouseDownFocusPolicy.hpp>

Inheritance diagram for OSGUIsh::MouseDownFocusPolicy:
OSGUIsh::FocusPolicy

List of all members.

Public Member Functions

 MouseDownFocusPolicy (NodePtr &focusedNode)
 Constructs a MouseDownFocusPolicy.
virtual void updateFocus (const osgGA::GUIEventAdapter &ea, const NodePtr nodeUnderMouse)

Detailed Description

A focus policy that sets the focus on a node that gets a "MouseDown" event.

Definition at line 24 of file MouseDownFocusPolicy.hpp.


Constructor & Destructor Documentation

OSGUIsh::MouseDownFocusPolicy::MouseDownFocusPolicy ( NodePtr focusedNode)

Constructs a MouseDownFocusPolicy.


Member Function Documentation

virtual void OSGUIsh::MouseDownFocusPolicy::updateFocus ( const osgGA::GUIEventAdapter &  ea,
const NodePtr  nodeUnderMouse 
) [virtual]

Concrete subclasses of FocusPolicy will implement this so that setFocusedNode() is called whenever it is necessary to change the focus according to the policy.

This is called for every event arriving via OSG, after the signals are called.

Parameters:
eaThe event generated by OSG.
nodeUnderMouseThe node under the mouse pointer.

Implements OSGUIsh::FocusPolicy.


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