OpenSceneGraph 2.8.4
Public Types | Public Member Functions | Public Attributes
osgUtil::Optimizer::SpatializeGroupsVisitor Class Reference

Spatialize scene into a balanced quad/oct tree. More...

Inheritance diagram for osgUtil::Optimizer::SpatializeGroupsVisitor:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::set< osg::Group * > GroupsToDivideList
typedef std::set< osg::Geode * > GeodesToDivideList

Public Member Functions

 SpatializeGroupsVisitor (Optimizer *optimizer=0)
virtual void apply (osg::Group &group)
virtual void apply (osg::Geode &geode)
bool divide (unsigned int maxNumTreesPerCell=8)
bool divide (osg::Group *group, unsigned int maxNumTreesPerCell)
bool divide (osg::Geode *geode, unsigned int maxNumTreesPerCell)

Public Attributes

GroupsToDivideList _groupsToDivideList
GeodesToDivideList _geodesToDivideList

Detailed Description

Spatialize scene into a balanced quad/oct tree.


Member Typedef Documentation


Constructor & Destructor Documentation

osgUtil::Optimizer::SpatializeGroupsVisitor::SpatializeGroupsVisitor ( Optimizer optimizer = 0) [inline]

Member Function Documentation

virtual void osgUtil::Optimizer::SpatializeGroupsVisitor::apply ( osg::Group group) [virtual]

Reimplemented from osg::NodeVisitor.

virtual void osgUtil::Optimizer::SpatializeGroupsVisitor::apply ( osg::Geode geode) [virtual]

Reimplemented from osg::NodeVisitor.

bool osgUtil::Optimizer::SpatializeGroupsVisitor::divide ( osg::Group group,
unsigned int  maxNumTreesPerCell 
)
bool osgUtil::Optimizer::SpatializeGroupsVisitor::divide ( unsigned int  maxNumTreesPerCell = 8)
bool osgUtil::Optimizer::SpatializeGroupsVisitor::divide ( osg::Geode geode,
unsigned int  maxNumTreesPerCell 
)

Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:17:01 for the OpenSceneGraph by doxygen 1.7.4.