CullTraverser
culling on frustum information.
More...
#include <FrustumCullTraverser.h>
Inheritance diagram for nvtraverser::FrustumCullTraverser:
Public Member Functions | |
NVSG_API | FrustumCullTraverser (void) |
Constructor. | |
Protected Member Functions | |
virtual NVSG_API | ~FrustumCullTraverser (void) |
Destructor. | |
virtual NVSG_API bool | preTraverseRoot (const nvsg::SimpleCamera *p, const nvsg::Node *root) |
Handles actions to take just before the scene is traversed. | |
virtual NVSG_API nvsg::CullCode | cullCode (const nvsg::Drawable *p) const |
determine the CullCode of a Drawable . | |
virtual NVSG_API nvsg::CullCode | cullCode (const nvsg::Node *p) const |
Determine the CullCode of a Node. | |
virtual NVSG_API bool | preTraverseTransform (const nvsg::Transform *p) |
Handles actions to take between transform stack adjustment and traversal. | |
virtual NVSG_API void | postTraverseTransform (const nvsg::Transform *p) |
Handles actions to take between traversal and transform stack adjustment. |
CullTraverser
culling on frustum information.
This CullTraverser
gathers information on all Node
s in the tree whether it's inside, outside or partially within the current viewing frustum. All Node
s (and potentially subtrees) that are completely outside are marked as such and can be skipped on subsequent traversals.
|
Constructor.
|
|
Destructor.
|
|
Handles actions to take just before the scene is traversed. This initializes the camera related part of the transform stack (after traversal of the headlights). Reimplemented from nvtraverser::ModelViewTraverser. |
|
determine the The default implementation returns CC_IN.
Reimplemented from nvtraverser::CullTraverser. |
|
Determine the The default implementaion returns CC_IN.
Reimplemented from nvtraverser::CullTraverser. |
|
Handles actions to take between transform stack adjustment and traversal. In this base class, this is a NOP.
Reimplemented from nvtraverser::ModelViewTraverser. |
|
Handles actions to take between traversal and transform stack adjustment. When this function returns true, the subtree beneath is traversed. Otherwise it isn't.
Reimplemented from nvtraverser::ModelViewTraverser. |