TabBoxTrackballDragger 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. //osgManipulator - Copyright (C) 2007 Fugro-Jason B.V.
  14. #ifndef OSGMANIPULATOR_TABBOXTRACKBALLDRAGGER
  15. #define OSGMANIPULATOR_TABBOXTRACKBALLDRAGGER 1
  16. #include <osgManipulator/TrackballDragger>
  17. #include <osgManipulator/TabBoxDragger>
  18. namespace osgManipulator {
  19. /**
  20. * Dragger for performing rotation in all axes.
  21. */
  22. class OSGMANIPULATOR_EXPORT TabBoxTrackballDragger : public CompositeDragger
  23. {
  24. public:
  25. TabBoxTrackballDragger();
  26. META_OSGMANIPULATOR_Object(osgManipulator,TabBoxTrackballDragger)
  27. /** Setup default geometry for dragger. */
  28. void setupDefaultGeometry();
  29. protected:
  30. virtual ~TabBoxTrackballDragger();
  31. osg::ref_ptr<TrackballDragger> _trackballDragger;
  32. osg::ref_ptr<TabBoxDragger> _tabBoxDragger;
  33. };
  34. }
  35. #endif