OpenSceneGraph  3.5.1
Public Member Functions | List of all members
osgGA::GUIActionAdapter Class Referenceabstract
Inheritance diagram for osgGA::GUIActionAdapter:
Inheritance graph
[legend]

Public Member Functions

virtual ~GUIActionAdapter ()
 
virtual osg::ViewasView ()
 Provide a mechanism for getting the osg::View associated with this GUIActionAdapter. More...
 
virtual void requestRedraw ()=0
 requestRedraw() requests a single redraw. More...
 
virtual void requestContinuousUpdate (bool needed=true)=0
 requestContinuousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a CameraManipulator, though other GUIEventHandler's may also provide functionality). More...
 
virtual void requestWarpPointer (float x, float y)=0
 requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. More...
 
virtual bool computeIntersections (const osgGA::GUIEventAdapter &, osgUtil::LineSegmentIntersector::Intersections &, osg::Node::NodeMask=0xffffffff)
 Compute intersections of a ray, starting the current mouse position, through the specified camera. More...
 
virtual bool computeIntersections (const osgGA::GUIEventAdapter &, const osg::NodePath &, osgUtil::LineSegmentIntersector::Intersections &, osg::Node::NodeMask=0xffffffff)
 Compute intersections of a ray, starting the current mouse position, through the specified master camera's window/eye coordinates and a specified nodePath's subgraph. More...
 

Constructor & Destructor Documentation

virtual osgGA::GUIActionAdapter::~GUIActionAdapter ( )
inlinevirtual

Member Function Documentation

virtual osg::View* osgGA::GUIActionAdapter::asView ( )
inlinevirtual

Provide a mechanism for getting the osg::View associated with this GUIActionAdapter.

One would use this to case view to osgViewer::View(er) if supported by the subclass.

Reimplemented in osgViewer::View.

virtual bool osgGA::GUIActionAdapter::computeIntersections ( const osgGA::GUIEventAdapter ,
osgUtil::LineSegmentIntersector::Intersections ,
osg::Node::NodeMask  = 0xffffffff 
)
inlinevirtual

Compute intersections of a ray, starting the current mouse position, through the specified camera.

Reimplemented in osgViewer::View.

virtual bool osgGA::GUIActionAdapter::computeIntersections ( const osgGA::GUIEventAdapter ,
const osg::NodePath ,
osgUtil::LineSegmentIntersector::Intersections ,
osg::Node::NodeMask  = 0xffffffff 
)
inlinevirtual

Compute intersections of a ray, starting the current mouse position, through the specified master camera's window/eye coordinates and a specified nodePath's subgraph.

Reimplemented in osgViewer::View.

virtual void osgGA::GUIActionAdapter::requestContinuousUpdate ( bool  needed = true)
pure virtual

requestContinuousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a CameraManipulator, though other GUIEventHandler's may also provide functionality).

GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure.

Implemented in osgViewer::View, and osgViewer::GraphicsWindow.

virtual void osgGA::GUIActionAdapter::requestRedraw ( )
pure virtual

requestRedraw() requests a single redraw.

Implemented in osgViewer::View, and osgViewer::GraphicsWindow.

virtual void osgGA::GUIActionAdapter::requestWarpPointer ( float  x,
float  y 
)
pure virtual

requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window.

This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking an aircraft joystick.

Implemented in osgViewer::View, osgViewer::GraphicsWindow, osgQt::GraphicsWindowQt, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowWin32.


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

osg logo
Generated at Wed Nov 11 2015 22:14:58 for the OpenSceneGraph by doxygen 1.8.10.