#include <GroupUnifyTraverser.h>
Inheritance diagram for nvtraverser::GroupUnifyTraverser:
Public Methods | |
NVSG_API | GroupUnifyTraverser (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 | ~GroupUnifyTraverser (void) |
Protected destructor to prevent instantiation of a GroupUnifyTraverser on stack. More... | |
virtual NVSG_API void | handleGroup (const nvsg::Group *p) |
Routine to handle a Group 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... |
A Group is unneccessary if it holds only one child. In that case, that child replaces the group in it's parent.
|
Constructor.
|
|
Protected destructor to prevent instantiation of a GroupUnifyTraverser on stack.
|
|
Get the 'ignore names' flag. If the 'ignore names' flag is set, the names of the GeoNodes are ignored.
|
|
Set the 'ignore names' flags. If the 'ignore names' flag is set, the names of the GeoNodes are ignored.
|
|
Routine to handle a Group while traversing the scene graph. This routine records all Groups with one child.
Reimplemented from nvtraverser::Traverser. |
|
This function will be called from the framework immediately before a Group is to be traversed. Before traversing a Group, a list of Groups holding one child is created.
Reimplemented from nvtraverser::Traverser. |
|
This function will be called from the framework immediately after a Group has been traversed. After traversing a Group, children with one child are replaced by that child.
Reimplemented from nvtraverser::Traverser. |