OpenSceneGraph  3.0.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
osgViewer::Scene Class Reference

Scene holds the higher level reference to a single scene graph. More...

Inheritance diagram for osgViewer::Scene:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual const char * className () const
void setSceneData (osg::Node *node)
osg::NodegetSceneData ()
const osg::NodegetSceneData () const
void setDatabasePager (osgDB::DatabasePager *dp)
osgDB::DatabasePagergetDatabasePager ()
const osgDB::DatabasePagergetDatabasePager () const
void setImagePager (osgDB::ImagePager *ip)
osgDB::ImagePagergetImagePager ()
const osgDB::ImagePagergetImagePager () const
void updateSceneGraph (osg::NodeVisitor &updateVisitor)

Static Public Member Functions

static ScenegetScene (osg::Node *node)
 Get the Scene object that has the specified node assigned to it.

Protected Member Functions

 Scene ()
virtual ~Scene ()

Static Protected Member Functions

static ScenegetOrCreateScene (osg::Node *node)
 Get the Scene object that has the specified node assigned to it.

Protected Attributes

osg::ref_ptr< osg::Node_sceneData
osg::ref_ptr
< osgDB::DatabasePager
_databasePager
osg::ref_ptr< osgDB::ImagePager_imagePager

Friends

class View

Detailed Description

Scene holds the higher level reference to a single scene graph.


Constructor & Destructor Documentation

osgViewer::Scene::Scene ( ) [protected]
virtual osgViewer::Scene::~Scene ( ) [protected, virtual]

Member Function Documentation

virtual const char* osgViewer::Scene::className ( ) const [inline, virtual]
static Scene* osgViewer::Scene::getOrCreateScene ( osg::Node node) [static, protected]

Get the Scene object that has the specified node assigned to it.

or return a new Scene if no Scene has yet been assigned the specified node.

static Scene* osgViewer::Scene::getScene ( osg::Node node) [static]

Get the Scene object that has the specified node assigned to it.

return 0 if no Scene has yet been assigned the specified node.


Friends And Related Function Documentation

friend class View [friend]

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Mon May 7 2012 07:18:39 for the OpenSceneGraph by doxygen 1.8.0.