Changeset 13041 for OpenSceneGraph/trunk/include/osgGA/GUIActionAdapter
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgGA/GUIActionAdapter
r7648 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 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 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 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ 13 13 14 14 #ifndef OSGGA_GUIACTIONADAPTER 15 #define OSGGA_GUIACTIONADAPTER 1 15 #define OSGGA_GUIACTIONADAPTER 1 16 16 17 17 #include <osgGA/Export> … … 35 35 36 36 There is more than one way of using the GUIActionAdapter. E.g. it may be inherited 37 into a Viewer class, as is done with osgGLUT::Viewer. Alternatively, a simple 37 into a Viewer class, as is done with osgGLUT::Viewer. Alternatively, a simple 38 38 subclass of GUIActionAdapter (e.g. osgQt::QtActionAdapter) may be passed to 39 39 the GUIEventHandler::handle() function; once the function has returned, the viewer … … 57 57 public: 58 58 virtual ~GUIActionAdapter() {} 59 59 60 60 /** Provide a mechanism for getting the osg::View associated with this GUIActionAdapter. 61 61 * One would use this to case view to osgViewer::View(er) if supported by the subclass.*/ 62 62 virtual osg::View* asView() { return 0; } 63 63 64 64 /** 65 65 requestRedraw() requests a single redraw. … … 68 68 69 69 /** 70 requestContinousUpdate(bool) is for en/disabling a throw or idle 70 requestContinousUpdate(bool) is for en/disabling a throw or idle 71 71 callback to be requested by a GUIEventHandler (typically a MatrixManipulator, 72 though other GUIEventHandler's may also provide functionality). 72 though other GUIEventHandler's may also provide functionality). 73 73 GUI toolkits can respond to this immediately by registering an idle/timed 74 74 callback, or can delay setting the callback and update at their own leisure.
