|
OSGUIsh
0.3.1
|
#include <MouseDownFocusPolicy.hpp>
Public Member Functions | |
| MouseDownFocusPolicy (NodePtr &focusedNode) | |
Constructs a MouseDownFocusPolicy. | |
| virtual void | updateFocus (const osgGA::GUIEventAdapter &ea, const NodePtr nodeUnderMouse) |
A focus policy that sets the focus on a node that gets a "MouseDown" event.
Definition at line 24 of file MouseDownFocusPolicy.hpp.
| OSGUIsh::MouseDownFocusPolicy::MouseDownFocusPolicy | ( | NodePtr & | focusedNode | ) |
Constructs a MouseDownFocusPolicy.
| 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.
| ea | The event generated by OSG. |
| nodeUnderMouse | The node under the mouse pointer. |
Implements OSGUIsh::FocusPolicy.
1.7.5.1