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::Node * getSceneData ()
const osg::Node * getSceneData () const
void setDatabasePager (osgDB::DatabasePager *dp)
osgDB::DatabasePager * getDatabasePager ()
const osgDB::DatabasePager * getDatabasePager () const
void setImagePager (osgDB::ImagePager *ip)
osgDB::ImagePager * getImagePager ()
const osgDB::ImagePager * getImagePager () const
void updateSceneGraph (osg::NodeVisitor &updateVisitor)

Static Public Member Functions

static Scene * getScene (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 Scene * getOrCreateScene (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 Thu Sep 27 2012 12:20:32 for the OpenSceneGraph by doxygen 1.7.6.1.