OpenSceneGraph 3.6.5
GUIActionAdapter
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>
20
21namespace osgGA{
22
58
59class GUIEventAdapter;
60
62{
63public:
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
std::vector< Node * > NodePath
A vector of Nodes pointers which is used to describe the path from a root node to a descendant.
Definition Node:47
The 'GA' in osgGA stands for 'GUI Abstraction'; the osgGA namespace provides facilities to help devel...
Definition Callback:21
unsigned int NodeMask
This is a set of bits (flags) that represent the Node.
Definition Node:363
View - maintains a master camera view and a list of slave cameras that are relative to this master ca...
Definition View:30
Definition GUIActionAdapter:62
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.
Definition GUIActionAdapter:94
virtual void requestContinuousUpdate(bool needed=true)=0
requestContinuousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEv...
virtual void requestWarpPointer(float x, float y)=0
requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,...
virtual void requestRedraw()=0
requestRedraw() requests a single redraw.
virtual osg::View * asView()
Provide a mechanism for getting the osg::View associated with this GUIActionAdapter.
Definition GUIActionAdapter:68
virtual ~GUIActionAdapter()
Definition GUIActionAdapter:64
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 cam...
Definition GUIActionAdapter:97
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
std::multiset< Intersection > Intersections
Definition LineSegmentIntersector:74

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.