Added support for the TabBoxTrackballDragger

This commit is contained in:
Robert Osfield 2009-08-17 15:46:22 +00:00
parent a1709abbee
commit 2d77db3627

View File

@ -51,7 +51,7 @@
#include <osgPresentation/PickEventHandler>
#include <osgManipulator/TabBoxDragger>
#include <osgManipulator/TabPlaneTrackballDragger>
#include <osgManipulator/TabBoxTrackballDragger>
#include <osgManipulator/TrackballDragger>
using namespace osgPresentation;
@ -1623,7 +1623,12 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position
osg::ref_ptr<osgManipulator::Dragger> dragger;
if (volumeData.useTabbedDragger)
dragger = new osgManipulator::TabBoxDragger;
{
if (volumeData.useTrackballDragger)
dragger = new osgManipulator::TabBoxTrackballDragger;
else
dragger = new osgManipulator::TabBoxDragger;
}
else
dragger = new osgManipulator::TrackballDragger();