Added RotateCylinderDragger and RotateSphereDragger to list of manipulators for testing purposes

This commit is contained in:
Robert Osfield 2012-03-06 10:06:00 +00:00
parent f59f4d2929
commit 8d3790d594

View File

@ -33,6 +33,7 @@
#include <osgManipulator/Translate2DDragger>
#include <osgManipulator/TranslateAxisDragger>
#include <osgManipulator/TranslatePlaneDragger>
#include <osgManipulator/RotateCylinderDragger>
#include <osg/ShapeDrawable>
#include <osg/MatrixTransform>
@ -143,6 +144,18 @@ osgManipulator::Dragger* createDragger(const std::string& name)
d->setupDefaultGeometry();
dragger = d;
}
else if ("RotateCylinderDragger" == name)
{
osgManipulator::RotateCylinderDragger* d = new osgManipulator::RotateCylinderDragger();
d->setupDefaultGeometry();
dragger = d;
}
else if ("RotateSphereDragger" == name)
{
osgManipulator::RotateSphereDragger* d = new osgManipulator::RotateSphereDragger();
d->setupDefaultGeometry();
dragger = d;
}
else
{
osgManipulator::TabBoxDragger* d = new osgManipulator::TabBoxDragger();
@ -372,7 +385,7 @@ int main( int argc, char **argv )
arguments.getApplicationUsage()->addCommandLineOption("--help-keys","Display keyboard & mouse bindings available");
arguments.getApplicationUsage()->addCommandLineOption("--help-all","Display all command line, env vars and keyboard & mouse bindings.");
arguments.getApplicationUsage()->addCommandLineOption("--dragger <draggername>","Use the specified dragger for manipulation [TabPlaneDragger, TabPlaneTrackballDragger, TrackballDragger, Translate1DDragger, Translate2DDragger, TranslateAxisDragger, TabBoxDragger, TranslatePlaneDragger, Scale1DDragger, Scale2DDragger]");
arguments.getApplicationUsage()->addCommandLineOption("--dragger <draggername>","Use the specified dragger for manipulation [TabPlaneDragger, TabPlaneTrackballDragger, TrackballDragger, Translate1DDragger, Translate2DDragger, TranslateAxisDragger, TabBoxDragger, TranslatePlaneDragger, Scale1DDragger, Scale2DDragger, RotateCylinderDragger, RotateSphereDragger]");
arguments.getApplicationUsage()->addCommandLineOption("--fixedDraggerSize","Fix the size of the dragger geometry in the screen space");
bool fixedSizeInScreen = false;