Added RotateCylinderDragger and RotateSphereDragger to list of manipulators for testing purposes
This commit is contained in:
parent
f59f4d2929
commit
8d3790d594
@ -33,6 +33,7 @@
|
|||||||
#include <osgManipulator/Translate2DDragger>
|
#include <osgManipulator/Translate2DDragger>
|
||||||
#include <osgManipulator/TranslateAxisDragger>
|
#include <osgManipulator/TranslateAxisDragger>
|
||||||
#include <osgManipulator/TranslatePlaneDragger>
|
#include <osgManipulator/TranslatePlaneDragger>
|
||||||
|
#include <osgManipulator/RotateCylinderDragger>
|
||||||
|
|
||||||
#include <osg/ShapeDrawable>
|
#include <osg/ShapeDrawable>
|
||||||
#include <osg/MatrixTransform>
|
#include <osg/MatrixTransform>
|
||||||
@ -143,6 +144,18 @@ osgManipulator::Dragger* createDragger(const std::string& name)
|
|||||||
d->setupDefaultGeometry();
|
d->setupDefaultGeometry();
|
||||||
dragger = d;
|
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
|
else
|
||||||
{
|
{
|
||||||
osgManipulator::TabBoxDragger* d = new osgManipulator::TabBoxDragger();
|
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-keys","Display keyboard & mouse bindings available");
|
||||||
arguments.getApplicationUsage()->addCommandLineOption("--help-all","Display all command line, env vars and keyboard & mouse bindings.");
|
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");
|
arguments.getApplicationUsage()->addCommandLineOption("--fixedDraggerSize","Fix the size of the dragger geometry in the screen space");
|
||||||
|
|
||||||
bool fixedSizeInScreen = false;
|
bool fixedSizeInScreen = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user