Moved main setSceneData methods in osgViewer::View::setSceneData()

This commit is contained in:
Robert Osfield
2008-12-19 17:50:58 +00:00
parent de53ed75f4
commit 2cc53e2256
4 changed files with 17 additions and 24 deletions

View File

@@ -60,10 +60,7 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
const Scene* getScene() const { return _scene.get(); }
/** Set the scene graph that the View will use.*/
inline void setSceneData(osg::Node* node) { setSceneData(osg::ref_ptr<osg::Node>(node)); }
/** Set the scene graph that the View will use.*/
virtual void setSceneData(osg::ref_ptr<osg::Node> node);
virtual void setSceneData(osg::Node* node);
/** Get the View's scene graph.*/
osg::Node* getSceneData() { return _scene.valid() ? _scene->getSceneData() : 0; }