Show
Ignore:
Timestamp:
06/29/09 23:32:10 (5 years ago)
Author:
robert
Message:

Introduced event handling directly into osgManipulator::Dragger to allow it be used with a global event handler passing in events.

Files:
1 modified

Legend:

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

    r10064 r10429  
    137137    osgManipulator::Dragger* dragger = createDragger(name); 
    138138 
     139    dragger->setHandleEvents(true); 
     140 
    139141    osg::Group* root = new osg::Group; 
    140142    root->addChild(dragger); 
     
    261263            _activeDragger(0) 
    262264        { 
    263         }         
    264          
     265        } 
     266 
    265267        bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa, 
    266268                    osg::Object*, osg::NodeVisitor*) 
     
    433435        viewer.setSceneData(loadedModel.get()); 
    434436    } 
    435     viewer.addEventHandler(new PickModeHandler()); 
     437    // viewer.addEventHandler(new PickModeHandler()); 
    436438 
    437439    return viewer.run();