OpenSceneGraph  3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Types | Protected Attributes
osgSim::InsertImpostorsVisitor Class Reference

Insert impostor nodes into scene graph. More...

Inheritance diagram for osgSim::InsertImpostorsVisitor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 InsertImpostorsVisitor ()
 Default to traversing all children.
 META_NodeVisitor (osgSim, InsertImpostorsVisitor) 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

Detailed Description

Insert impostor nodes into scene graph.

For example of usage see examples/osgimpostor.


Member Typedef Documentation

typedef std::vector< osg::Group* > osgSim::InsertImpostorsVisitor::GroupList [protected]
typedef std::vector< osg::LOD* > osgSim::InsertImpostorsVisitor::LODList [protected]

Constructor & Destructor Documentation

Default to traversing all children.


Member Function Documentation

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.

Empty visitor, make it ready for next traversal.

Reimplemented from osg::NodeVisitor.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

osg logo
Generated at Thu Jul 25 2013 19:05:26 for the OpenSceneGraph by doxygen 1.7.6.1.