Added View::home() method and updated wrappers

This commit is contained in:
Robert Osfield
2007-06-07 09:58:49 +00:00
parent 1d7ba27e72
commit 51d489fb97
3 changed files with 53 additions and 11 deletions

View File

@@ -183,6 +183,16 @@ void View::setCameraManipulator(osgGA::MatrixManipulator* manipulator)
}
}
void View::home()
{
if (_cameraManipulator.valid())
{
osg::ref_ptr<osgGA::GUIEventAdapter> dummyEvent = _eventQueue->createEvent();
_cameraManipulator->home(*dummyEvent, *this);
}
}
void View::addEventHandler(osgGA::GUIEventHandler* eventHandler)
{
_eventHandlers.push_back(eventHandler);