Show
Ignore:
Timestamp:
01/30/12 13:26:28 (2 years ago)
Author:
robert
Message:

Added support for Scale1DDragger, Scale2DDragger and TranslatePlaneDragger? to --dragger command line option

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmanipulator/osgmanipulator.cpp

    r12449 r12929  
    2727#include <osgManipulator/TabPlaneDragger> 
    2828#include <osgManipulator/TabPlaneTrackballDragger> 
     29#include <osgManipulator/Scale1DDragger> 
     30#include <osgManipulator/Scale2DDragger> 
    2931#include <osgManipulator/TrackballDragger> 
    3032#include <osgManipulator/Translate1DDragger> 
    3133#include <osgManipulator/Translate2DDragger> 
    3234#include <osgManipulator/TranslateAxisDragger> 
     35#include <osgManipulator/TranslatePlaneDragger> 
    3336 
    3437#include <osg/ShapeDrawable> 
     
    8184    { 
    8285        osgManipulator::TranslateAxisDragger* d = new osgManipulator::TranslateAxisDragger(); 
     86        d->setupDefaultGeometry(); 
     87        dragger = d; 
     88    } 
     89    else if ("TranslatePlaneDragger" == name) 
     90    { 
     91        osgManipulator::TranslatePlaneDragger* d = new osgManipulator::TranslatePlaneDragger(); 
     92        d->setupDefaultGeometry(); 
     93        dragger = d; 
     94    } 
     95    else if ("Scale1DDragger" == name) 
     96    { 
     97        osgManipulator::Scale1DDragger* d = new osgManipulator::Scale1DDragger(); 
     98        d->setupDefaultGeometry(); 
     99        dragger = d; 
     100    } 
     101    else if ("Scale2DDragger" == name) 
     102    { 
     103        osgManipulator::Scale2DDragger* d = new osgManipulator::Scale2DDragger(); 
    83104        d->setupDefaultGeometry(); 
    84105        dragger = d; 
     
    306327    arguments.getApplicationUsage()->addCommandLineOption("--help-all","Display all command line, env vars and keyboard & mouse bindings."); 
    307328 
    308     arguments.getApplicationUsage()->addCommandLineOption("--dragger <draggername>","Use the specified dragger for manipulation [TabPlaneDragger,TabPlaneTrackballDragger,TrackballDragger,Translate1DDragger,Translate2DDragger,TranslateAxisDragger,TabBoxDragger]"); 
     329    arguments.getApplicationUsage()->addCommandLineOption("--dragger <draggername>","Use the specified dragger for manipulation [TabPlaneDragger, TabPlaneTrackballDragger, TrackballDragger, Translate1DDragger, Translate2DDragger, TranslateAxisDragger, TabBoxDragger, TranslatePlaneDragger, Scale1DDragger, Scale2DDragger]"); 
    309330    arguments.getApplicationUsage()->addCommandLineOption("--fixedDraggerSize","Fix the size of the dragger geometry in the screen space"); 
    310331