From baef387b3df3daffbb85133c279e6ab8404a55d5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 3 Jul 2009 05:54:27 +0000 Subject: [PATCH] Added TrackballDragger code path --- examples/osgvolume/osgvolume.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index efd39614e..12cbea094 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -56,6 +56,8 @@ #include #include +#include +#include #include @@ -826,8 +828,6 @@ bool DraggerVolumeTileCallback::receive(const osgManipulator::MotionCommand& com } case osgManipulator::MotionCommand::FINISH: { - _volume->setDirty(true); - return true; } case osgManipulator::MotionCommand::NONE: @@ -1470,7 +1470,11 @@ int main( int argc, char **argv ) { osg::ref_ptr group = new osg::Group; - osg::ref_ptr dragger = new osgManipulator::TabBoxDragger; +#if 1 + osg::ref_ptr dragger = new osgManipulator::TabBoxDragger; +#else + osg::ref_ptr dragger = new osgManipulator::TrackballDragger(); +#endif dragger->setupDefaultGeometry(); dragger->setHandleEvents(true); dragger->addDraggerCallback(new DraggerVolumeTileCallback(tile.get(), tile->getLocator()));