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 |
osgUtil::Optimizer::MergeGeometryVisitor::MergeGeometryVisitor | ( | Optimizer * | optimizer = 0 |
) | [inline] |
default to traversing all children.
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] |
unsigned int osgUtil::Optimizer::MergeGeometryVisitor::_targetMaximumNumberOfVertices [protected] |