|
OSGUIsh
0.3.1
|
A focus policy that puts the focus on the node under the mouse pointer. More...
#include <MouseOverFocusPolicy.hpp>
Public Member Functions | |
| MouseOverFocusPolicy (NodePtr &focusedNode) | |
Constructs a MouseOverFocusPolicy. | |
| virtual void | updateFocus (const osgGA::GUIEventAdapter &ea, const NodePtr nodeUnderMouse) |
A focus policy that puts the focus on the node under the mouse pointer.
Definition at line 21 of file MouseOverFocusPolicy.hpp.
| OSGUIsh::MouseOverFocusPolicy::MouseOverFocusPolicy | ( | NodePtr & | focusedNode | ) |
Constructs a MouseOverFocusPolicy.
| virtual void OSGUIsh::MouseOverFocusPolicy::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