OpenMW
|
#include <optimizer.hpp>
Public Member Functions | |
FlattenStaticTransformsVisitor (Optimizer *optimizer=0) | |
virtual void | apply (osg::Node &geode) |
virtual void | apply (osg::Drawable &drawable) |
virtual void | apply (osg::Billboard &geode) |
virtual void | apply (osg::Transform &transform) |
bool | removeTransforms (osg::Node *nodeWeCannotRemove) |
![]() | |
BaseOptimizerVisitor (Optimizer *optimizer, unsigned int operation) | |
bool | isOperationPermissibleForObject (const osg::StateSet *object) const |
bool | isOperationPermissibleForObject (const osg::StateAttribute *object) const |
bool | isOperationPermissibleForObject (const osg::Drawable *object) const |
bool | isOperationPermissibleForObject (const osg::Node *object) const |
Protected Types | |
typedef std::vector < osg::Transform * > | TransformStack |
typedef std::set< osg::Drawable * > | DrawableSet |
typedef std::set < osg::Billboard * > | BillboardSet |
typedef std::set< osg::Node * > | NodeSet |
typedef std::set < osg::Transform * > | TransformSet |
Protected Attributes | |
TransformStack | _transformStack |
NodeSet | _excludedNodeSet |
DrawableSet | _drawableSet |
BillboardSet | _billboardSet |
TransformSet | _transformSet |
![]() | |
Optimizer * | _optimizer |
unsigned int | _operationType |
Flatten Static Transform nodes by applying their transform to the geometry on the leaves of the scene graph, then removing the now redundant transforms. Static transformed subgraphs that have multiple parental paths above them are not flattened, if you require this then the subgraphs have to be duplicated - for this use the FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
bool SceneUtil::Optimizer::FlattenStaticTransformsVisitor::removeTransforms | ( | osg::Node * | nodeWeCannotRemove | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |