OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GUIActionAdapter.h
Go to the documentation of this file.
1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2  *
3  * This library is open source and may be redistributed and/or modified under
4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5  * (at your option) any later version. The full license is in LICENSE file
6  * included with this distribution, and on the openscenegraph.org website.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * OpenSceneGraph Public License for more details.
12 */
13 
14 #ifndef OSGGA_GUIACTIONADAPTER
15 #define OSGGA_GUIACTIONADAPTER 1
16 
17 #include <osgGA/Export>
18 #include <osg/View>
19 #include <osgUtil/LineSegmentIntersector>
20 
21 namespace osgGA{
22 
59 class GUIEventAdapter;
60 
62 {
63 public:
64  virtual ~GUIActionAdapter() {}
65 
68  virtual osg::View* asView() { return 0; }
69 
73  virtual void requestRedraw() = 0;
74 
82  virtual void requestContinuousUpdate(bool needed=true) = 0;
83 
90  virtual void requestWarpPointer(float x,float y) = 0;
91 
92 
94  virtual bool computeIntersections(const osgGA::GUIEventAdapter& /*ea*/, osgUtil::LineSegmentIntersector::Intersections& /*intersections*/,osg::Node::NodeMask /*traversalMask*/ = 0xffffffff) { return false; }
95 
97  virtual bool computeIntersections(const osgGA::GUIEventAdapter& /*ea*/, const osg::NodePath& /*nodePath*/, osgUtil::LineSegmentIntersector::Intersections& /*intersections*/,osg::Node::NodeMask /*traversalMask*/ = 0xffffffff) { return false; }
98 
99 };
100 
101 }
102 
103 #endif
104 
virtual void requestRedraw()=0
virtual void requestContinuousUpdate(bool needed=true)=0
virtual osg::View * asView()
std::multiset< Intersection > Intersections
virtual bool computeIntersections(const osgGA::GUIEventAdapter &, osgUtil::LineSegmentIntersector::Intersections &, osg::Node::NodeMask=0xffffffff)
virtual bool computeIntersections(const osgGA::GUIEventAdapter &, const osg::NodePath &, osgUtil::LineSegmentIntersector::Intersections &, osg::Node::NodeMask=0xffffffff)
virtual void requestWarpPointer(float x, float y)=0
unsigned int NodeMask
Definition: Node.h:352
Definition: View.h:29
std::vector< Node * > NodePath
Definition: Node.h:44