#include <TransformUnifyTraverser.h>
Inheritance diagram for nvtraverser::TransformUnifyTraverser:
Public Methods | |
NVSG_API | TransformUnifyTraverser (void) |
Constructor. More... | |
NVSG_API bool | getIgnoreNames (void) const |
Get the 'ignore names' flag. More... | |
NVSG_API void | setIgnoreNames (bool ignore) |
Set the 'ignore names' flags. More... | |
Protected Methods | |
virtual NVSG_API | ~TransformUnifyTraverser (void) |
Protected destructor to prevent instantiation of a StateSetUnifyTraverser on stack. More... | |
virtual NVSG_API void | doApply (const nvsg::ViewState *viewState, const nvsg::Scene *scene) |
doApply override. More... | |
virtual NVSG_API void | handleTransform (const nvsg::Transform *p) |
Routine to handle a Transform node while traversing the scene graph. More... | |
virtual NVSG_API void | handleAnimatedTransform (const nvsg::AnimatedTransform *p) |
Routine to handle a AnimatedTransform node while traversing the scene graph. More... | |
virtual NVSG_API void | preTraverseGroup (const nvsg::Group *p) |
This function will be called from the framework immediately before a Group is to be traversed. More... | |
virtual NVSG_API void | postTraverseGroup (const nvsg::Group *p) |
This function will be called from the framework immediately after a Group has been traversed. More... |
Identical Transforms (only siblings!) are recognized and their children are gathered beneath a single Transform. This way, redundant objects are removed, thereby reducing storage space as well as run time.
|
Constructor.
|
|
Protected destructor to prevent instantiation of a StateSetUnifyTraverser on stack.
|
|
Get the 'ignore names' flag. If the 'ignore names' flag is set, the names of the Transforms are ignored.
|
|
Set the 'ignore names' flags. If the 'ignore names' flag is set, the names of the Transforms are ignored.
|
|
doApply override.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a Transform node while traversing the scene graph. This handler compares the Transform p with previously encountered Transforms. If it is identical to one of them all it's children are moved to that other Transform and p is marked for deletion.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a AnimatedTransform node while traversing the scene graph. This handler compares the AnimatedTransform p with previously encountered AnimatedTransforms. If it is identical to one of them all it's children are moved to that AnimatedTransform and p is marked for deletion.
Reimplemented from nvtraverser::Traverser. |
|
This function will be called from the framework immediately before a Group is to be traversed.
Reimplemented from nvtraverser::Traverser. |
|
This function will be called from the framework immediately after a Group has been traversed.
Reimplemented from nvtraverser::Traverser. |