osgUtil::Optimizer::MergeGeometryVisitor Class Reference

Inheritance diagram for osgUtil::Optimizer::MergeGeometryVisitor:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 MergeGeometryVisitor (Optimizer *optimizer=0)
 default to traversing all children.
void setTargetMaximumNumberOfVertices (unsigned int num)
unsigned int getTargetMaximumNumberOfVertices () const
virtual void apply (osg::Geode &geode)
virtual void apply (osg::Billboard &)
bool mergeGeode (osg::Geode &geode)

Static Public Member Functions

static bool geometryContainsSharedArrays (osg::Geometry &geom)
static bool mergeGeometry (osg::Geometry &lhs, osg::Geometry &rhs)
static bool mergePrimitive (osg::DrawArrays &lhs, osg::DrawArrays &rhs)
static bool mergePrimitive (osg::DrawArrayLengths &lhs, osg::DrawArrayLengths &rhs)
static bool mergePrimitive (osg::DrawElementsUByte &lhs, osg::DrawElementsUByte &rhs)
static bool mergePrimitive (osg::DrawElementsUShort &lhs, osg::DrawElementsUShort &rhs)
static bool mergePrimitive (osg::DrawElementsUInt &lhs, osg::DrawElementsUInt &rhs)

Protected Attributes

unsigned int _targetMaximumNumberOfVertices


Constructor & Destructor Documentation

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

default to traversing all children.


Member Function Documentation

void osgUtil::Optimizer::MergeGeometryVisitor::setTargetMaximumNumberOfVertices ( unsigned int  num  )  [inline]

unsigned int osgUtil::Optimizer::MergeGeometryVisitor::getTargetMaximumNumberOfVertices (  )  const [inline]

virtual void osgUtil::Optimizer::MergeGeometryVisitor::apply ( osg::Geode geode  )  [inline, virtual]

Reimplemented from osg::NodeVisitor.

virtual void osgUtil::Optimizer::MergeGeometryVisitor::apply ( osg::Billboard  )  [inline, virtual]

Reimplemented from osg::NodeVisitor.

bool osgUtil::Optimizer::MergeGeometryVisitor::mergeGeode ( osg::Geode geode  ) 

static bool osgUtil::Optimizer::MergeGeometryVisitor::geometryContainsSharedArrays ( osg::Geometry geom  )  [static]

static bool osgUtil::Optimizer::MergeGeometryVisitor::mergeGeometry ( osg::Geometry lhs,
osg::Geometry rhs 
) [static]

static bool osgUtil::Optimizer::MergeGeometryVisitor::mergePrimitive ( osg::DrawArrays lhs,
osg::DrawArrays rhs 
) [static]

static bool osgUtil::Optimizer::MergeGeometryVisitor::mergePrimitive ( osg::DrawArrayLengths lhs,
osg::DrawArrayLengths rhs 
) [static]

static bool osgUtil::Optimizer::MergeGeometryVisitor::mergePrimitive ( osg::DrawElementsUByte lhs,
osg::DrawElementsUByte rhs 
) [static]

static bool osgUtil::Optimizer::MergeGeometryVisitor::mergePrimitive ( osg::DrawElementsUShort lhs,
osg::DrawElementsUShort rhs 
) [static]

static bool osgUtil::Optimizer::MergeGeometryVisitor::mergePrimitive ( osg::DrawElementsUInt lhs,
osg::DrawElementsUInt rhs 
) [static]


Member Data Documentation

unsigned int osgUtil::Optimizer::MergeGeometryVisitor::_targetMaximumNumberOfVertices [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:50 2007 for the OpenSceneGraph by doxygen 1.5.3.