OSGUIsh  0.3.1
Public Member Functions
OSGUIsh::ManualFocusPolicy Class Reference

#include <ManualFocusPolicy.hpp>

Inheritance diagram for OSGUIsh::ManualFocusPolicy:
OSGUIsh::FocusPolicy

List of all members.

Public Member Functions

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

Detailed Description

A focus policy that doesn't change the focus. That is, it leaves all the work to be done manually by the programmer.

Definition at line 24 of file ManualFocusPolicy.hpp.


Constructor & Destructor Documentation

OSGUIsh::ManualFocusPolicy::ManualFocusPolicy ( NodePtr focusedNode)

Constructs a ManualFocusPolicy.


Member Function Documentation

virtual void OSGUIsh::ManualFocusPolicy::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: