Further work on add serialization support for osgViewer configurations

This commit is contained in:
Robert Osfield
2007-02-25 20:05:23 +00:00
parent 7174192444
commit f43cd7332c
10 changed files with 248 additions and 2 deletions

View File

@@ -24,13 +24,15 @@ namespace osg {
* Note, if no slave cameras are attached to the view then the master camera does both the control and implementation of the rendering of the scene,
* but if slave cameras are present then the master controls the view onto the scene, while the slaves implement the rendering of the scene.
*/
class OSG_EXPORT View : public virtual osg::Referenced
class OSG_EXPORT View : public osg::Object
{
public :
View();
View(const osg::View& view, const osg::CopyOp& copyop=CopyOp::SHALLOW_COPY);
META_Object(osg,View);
/** Set the Stats object used for collect various frame related timing and scene graph stats.*/
void setStats(osg::Stats* stats) { _stats = stats; }

View File

@@ -59,6 +59,10 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
View();
View(const osgViewer::View& view, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Object(osgViewer,View);
Scene* getScene() { return _scene.get(); }
const Scene* getScene() const { return _scene.get(); }