Public Member Functions | |
InsertImpostorsVisitor () | |
Default to traversing all children. | |
void | setImpostorThresholdRatio (float ratio) |
float | getImpostorThresholdRatio () const |
void | setMaximumNumberOfNestedImpostors (unsigned int num) |
unsigned int | getMaximumNumberOfNestedImpostors () const |
void | reset () |
Empty visitor, make it ready for next traversal. | |
virtual void | apply (osg::Node &node) |
virtual void | apply (osg::Group &node) |
virtual void | apply (osg::LOD &node) |
void | insertImpostors () |
Protected Types | |
typedef std::vector < osg::Group * > | GroupList |
typedef std::vector < osg::LOD * > | LODList |
Protected Attributes | |
GroupList | _groupList |
LODList | _lodList |
float | _impostorThresholdRatio |
unsigned int | _maximumNumNestedImpostors |
unsigned int | _numNestedImpostors |
For example of usage see examples/osgimpostor.
typedef std::vector< osg::Group* > osgSim::InsertImpostorsVisitor::GroupList [protected] |
typedef std::vector< osg::LOD* > osgSim::InsertImpostorsVisitor::LODList [protected] |
osgSim::InsertImpostorsVisitor::InsertImpostorsVisitor | ( | ) |
Default to traversing all children.
void osgSim::InsertImpostorsVisitor::setImpostorThresholdRatio | ( | float | ratio | ) | [inline] |
float osgSim::InsertImpostorsVisitor::getImpostorThresholdRatio | ( | ) | const [inline] |
void osgSim::InsertImpostorsVisitor::setMaximumNumberOfNestedImpostors | ( | unsigned int | num | ) | [inline] |
unsigned int osgSim::InsertImpostorsVisitor::getMaximumNumberOfNestedImpostors | ( | ) | const [inline] |
void osgSim::InsertImpostorsVisitor::reset | ( | ) | [virtual] |
virtual void osgSim::InsertImpostorsVisitor::apply | ( | osg::Node & | node | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgSim::InsertImpostorsVisitor::apply | ( | osg::Group & | node | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgSim::InsertImpostorsVisitor::apply | ( | osg::LOD & | node | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
void osgSim::InsertImpostorsVisitor::insertImpostors | ( | ) |
GroupList osgSim::InsertImpostorsVisitor::_groupList [protected] |
LODList osgSim::InsertImpostorsVisitor::_lodList [protected] |
float osgSim::InsertImpostorsVisitor::_impostorThresholdRatio [protected] |
unsigned int osgSim::InsertImpostorsVisitor::_maximumNumNestedImpostors [protected] |
unsigned int osgSim::InsertImpostorsVisitor::_numNestedImpostors [protected] |