2010-05-27 21:59:34 +08:00
|
|
|
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2010 Robert Osfield
|
2003-01-22 00:45:36 +08:00
|
|
|
*
|
2010-05-25 20:05:13 +08:00
|
|
|
* 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
|
2003-01-22 00:45:36 +08:00
|
|
|
* (at your option) any later version. The full license is in LICENSE file
|
|
|
|
* included with this distribution, and on the openscenegraph.org website.
|
2010-05-25 20:05:13 +08:00
|
|
|
*
|
2003-01-22 00:45:36 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2010-05-25 20:05:13 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2003-01-22 00:45:36 +08:00
|
|
|
* OpenSceneGraph Public License for more details.
|
|
|
|
*/
|
2002-05-09 18:31:03 +08:00
|
|
|
|
2010-05-25 20:05:13 +08:00
|
|
|
#ifndef OSGGA_TRACKBALL_MANIPULATOR
|
|
|
|
#define OSGGA_TRACKBALL_MANIPULATOR 1
|
2005-11-17 19:03:20 +08:00
|
|
|
|
2010-05-25 20:05:13 +08:00
|
|
|
#include <osgGA/OrbitManipulator>
|
2009-03-11 18:50:03 +08:00
|
|
|
|
|
|
|
|
2010-05-25 20:05:13 +08:00
|
|
|
namespace osgGA {
|
2005-01-23 00:55:48 +08:00
|
|
|
|
2005-11-18 23:00:34 +08:00
|
|
|
|
2010-05-25 20:05:13 +08:00
|
|
|
class OSGGA_EXPORT TrackballManipulator : public OrbitManipulator
|
|
|
|
{
|
2010-05-26 01:02:11 +08:00
|
|
|
typedef OrbitManipulator inherited;
|
2009-06-26 02:11:29 +08:00
|
|
|
|
2010-05-26 01:02:11 +08:00
|
|
|
public:
|
2009-06-26 02:11:29 +08:00
|
|
|
|
2010-05-26 01:02:11 +08:00
|
|
|
TrackballManipulator( int flags = DEFAULT_SETTINGS );
|
|
|
|
TrackballManipulator( const TrackballManipulator& tm,
|
2010-05-27 21:59:34 +08:00
|
|
|
const osg::CopyOp& copyOp = osg::CopyOp::SHALLOW_COPY );
|
2009-06-26 02:11:29 +08:00
|
|
|
|
2010-05-26 01:02:11 +08:00
|
|
|
META_Object( osgGA, TrackballManipulator );
|
2002-05-09 18:31:03 +08:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-05-25 20:05:13 +08:00
|
|
|
}
|
2002-05-09 18:31:03 +08:00
|
|
|
|
2010-05-25 20:05:13 +08:00
|
|
|
#endif /* OSGGA_TRACKBALL_MANIPULATOR */
|