#include <IdentityToGroupTraverser.h>
Inheritance diagram for nvtraverser::IdentityToGroupTraverser:
Public Member Functions | |
NVSG_API | IdentityToGroupTraverser (void) |
Constructor. | |
Protected Member Functions | |
virtual NVSG_API | ~IdentityToGroupTraverser (void) |
Protected destructor to prevent instantiation of an IdentityToGroupTraverser on stack. | |
virtual NVSG_API void | handleAnimatedTransform (const nvsg::AnimatedTransform *p) |
Routine to handle a AnimatedTransform object while traversing the scene graph. | |
virtual NVSG_API void | handleGroup (const nvsg::Group *p) |
Routine to handle a Group object while traversing the scene graph. | |
virtual NVSG_API void | handleTransform (const nvsg::Transform *p) |
Routine to handle a Transform object while traversing the scene graph. |
Identical StateSets are recognized and linked to the same one. Identical StateAttributes are recognized and linked to the same one. This way, redundant objects are removed, thereby reducing storage space as well as run time.
|
Constructor.
|
|
Protected destructor to prevent instantiation of an IdentityToGroupTraverser on stack.
|
|
Routine to handle a AnimatedTransform object while traversing the scene graph. Explicitly go to Traverser::handleTransform() to prevent handling in handleTransform.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a Group object while traversing the scene graph. Replaces any Transform in it's list of children that is to be replaced by a Group.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a Transform object while traversing the scene graph. After traversing the Transform p, this handler compares it to the identity transform. If it is the identity, all it's children are moved to a Group, the pair <p,Group> are stored for handling in handleGroup.
Reimplemented from nvtraverser::Traverser. |