#include <DrawableUnifyTraverser.h>
Inheritance diagram for nvtraverser::DrawableUnifyTraverser:
Public Member Functions | |
NVSG_API | DrawableUnifyTraverser (void) |
Constructor. | |
NVSG_API bool | getIgnoreNames (void) const |
Get the 'ignore names' flag. | |
NVSG_API void | setIgnoreNames (bool ignore) |
Set the 'ignore names' flags. | |
Protected Member Functions | |
virtual NVSG_API | ~DrawableUnifyTraverser (void) |
Protected destructor to prevent instantiation of a DrawableUnifyTraverser on stack. | |
virtual NVSG_API void | handleGeoNode (const nvsg::GeoNode *p) |
Routine to handle a GeoNode while traversing the scene graph. | |
virtual NVSG_API void | handleStateSet (const nvsg::StateSet *p) |
Routine to handle a StateSet object while traversing the scene graph. | |
virtual NVSG_API void | handleQuads (const nvsg::Quads *p) |
Routine to handle a Quads object while traversing the scene graph. | |
virtual NVSG_API void | handleAnimatedQuads (const nvsg::AnimatedQuads *p) |
Routine to handle a AnimatedQuads object while traversing the scene graph. | |
virtual NVSG_API void | handleQuadStrips (const nvsg::QuadStrips *p) |
Routine to handle a QuadStrips object while traversing the scene graph. | |
virtual NVSG_API void | handleTriangles (const nvsg::Triangles *p) |
Routine to handle a Triangles object while traversing the scene graph. | |
virtual NVSG_API void | handleAnimatedTriangles (const nvsg::AnimatedTriangles *p) |
Routine to handle a AnimatedTriangles object while traversing the scene graph. | |
virtual NVSG_API void | handleSkinnedTriangles (const nvsg::SkinnedTriangles *p) |
Routine to handle a SkinnedTriangles object while traversing the scene graph. | |
virtual NVSG_API void | handleTriStrips (const nvsg::TriStrips *p) |
Routine to handle a TriStrips object while traversing the scene graph. | |
void | combine (nvsg::GeoSet *p0, const nvsg::GeoSet *p1) |
void | combine (nvsg::Quads *p0, const nvsg::Quads *p1) |
void | combine (nvsg::QuadStrips *p0, const nvsg::QuadStrips *p1) |
void | combine (nvsg::Triangles *p0, const nvsg::Triangles *p1) |
void | combine (nvsg::TriStrips *p0, const nvsg::TriStrips *p1) |
All Drawables of the same type that are bound to the same StateSet are combined to one Drawable.
|
Constructor.
|
|
Protected destructor to prevent instantiation of a DrawableUnifyTraverser 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 GeoNode while traversing the scene graph. After traversing, drawables of the same type bound to the same StateSet are combined.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a StateSet object while traversing the scene graph. Just holds the StateSet as the current one for subsequent comparisons.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a Quads object while traversing the scene graph. If the Quads p is bound to the same StateSet as a previously traversed one, they are marked for combining.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a AnimatedQuads object while traversing the scene graph. AnimatedQuads are explicitly ignored here!
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a QuadStrips object while traversing the scene graph. If the QuadStrips p is bound to the same StateSet as a previously traversed one, they are marked for combining.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a Triangles object while traversing the scene graph. If the Triangles p is bound to the same StateSet as a previously traversed one, they are marked for combining.
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a AnimatedTriangles object while traversing the scene graph. AnimatedTriangles are explicitly ignored here!
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a SkinnedTriangles object while traversing the scene graph. SkinnedTriangles are explicitly ignored here!
Reimplemented from nvtraverser::Traverser. |
|
Routine to handle a TriStrips object while traversing the scene graph. If the TriStrips p is bound to the same StateSet as a previously traversed one, they are marked for combining.
Reimplemented from nvtraverser::Traverser. |