GUIActionAdapter
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGGA_GUIACTIONADAPTER
#define OSGGA_GUIACTIONADAPTER 1
#include <osgGA/Export>
#include <osg/View>
#include <osgUtil/LineSegmentIntersector>
namespace osgGA{
class GUIEventAdapter;
class GUIActionAdapter
{
public:
virtual ~GUIActionAdapter() {}
virtual osg::View* asView() { return 0; }
virtual void requestRedraw() = 0;
virtual void requestContinuousUpdate(bool needed=true) = 0;
virtual void requestWarpPointer(float x,float y) = 0;
virtual bool computeIntersections(const osgGA::GUIEventAdapter& /*ea*/, osgUtil::LineSegmentIntersector::Intersections& /*intersections*/,osg::Node::NodeMask /*traversalMask*/ = 0xffffffff) { return false; }
virtual bool computeIntersections(const osgGA::GUIEventAdapter& /*ea*/, const osg::NodePath& /*nodePath*/, osgUtil::LineSegmentIntersector::Intersections& /*intersections*/,osg::Node::NodeMask /*traversalMask*/ = 0xffffffff) { return false; }
};
}
#endif
LineSegmentIntersector
osgGA::GUIActionAdapter
Definition GUIActionAdapter:62
osgGA::GUIActionAdapter::computeIntersections
virtual bool computeIntersections(const osgGA::GUIEventAdapter &, osgUtil::LineSegmentIntersector::Intersections &, osg::Node::NodeMask=0xffffffff)
Definition GUIActionAdapter:94
osgGA::GUIActionAdapter::requestContinuousUpdate
virtual void requestContinuousUpdate(bool needed=true)=0
osgGA::GUIActionAdapter::requestWarpPointer
virtual void requestWarpPointer(float x, float y)=0
osgGA::GUIActionAdapter::requestRedraw
virtual void requestRedraw()=0
osgGA::GUIActionAdapter::asView
virtual osg::View * asView()
Definition GUIActionAdapter:68
osgGA::GUIActionAdapter::~GUIActionAdapter
virtual ~GUIActionAdapter()
Definition GUIActionAdapter:64
osgGA::GUIActionAdapter::computeIntersections
virtual bool computeIntersections(const osgGA::GUIEventAdapter &, const osg::NodePath &, osgUtil::LineSegmentIntersector::Intersections &, osg::Node::NodeMask=0xffffffff)
Definition GUIActionAdapter:97
osgGA::GUIEventAdapter
Definition GUIEventAdapter:82
osgUtil::LineSegmentIntersector::Intersections
std::multiset< Intersection > Intersections
Definition LineSegmentIntersector:74
osg::Node::NodeMask
unsigned int NodeMask
Definition Node:363
osg::View
Definition osg/View:30
osgGA
Definition Callback:21
osg::NodePath
std::vector< Node * > NodePath
Definition Node:47
Export
View