CullTraverser
culling on occlusion information.
More...
#include <OcclusionCullTraverser.h>
Inheritance diagram for nvtraverser::OcclusionCullTraverser:
Public Member Functions | |
NVSG_API | OcclusionCullTraverser (void) |
Constructor. | |
NVSG_API RenderTraverser::GeometryCacheTechnique | getGeometryCacheTechnique (void) const |
Get the current geoemtry caching technique. | |
NVSG_API bool | isGeometryCacheTechniqueSupported (RenderTraverser::GeometryCacheTechnique gct) const |
Test on supported geometry caching techhniques. | |
NVSG_API bool | setGeometryCacheTechnique (RenderTraverser::GeometryCacheTechnique gct) |
Set the geometry caching technique the render should use. | |
Protected Member Functions | |
virtual NVSG_API | ~OcclusionCullTraverser (void) |
Destructor. | |
virtual NVSG_API void | doApply (const nvsg::ViewState *pViewState, const nvsg::Scene *pScene) |
Initiate traversing a given scene graph. | |
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. |
CullTraverser
culling on occlusion information.
This CullTraverser
gathers information on all Node
s in the tree to determine if it changes any fragment on the screen. All Node
s (and potentially subtrees) that don't touch any fragment are marked as outside and can be skipped on subsequent traversals.
|
Constructor.
|
|
Destructor.
|
|
Get the current geoemtry caching technique.
|
|
Test on supported geometry caching techhniques.
|
|
Set the geometry caching technique the render should use.
|
|
Initiate traversing a given scene graph. This overloadable function is called from the traverser's entry point apply . The base implementation first initiates the traversing of the scene's global states, if available. After that the scene itself is traversed. If an optional ViewState ViewState is passed through viewState, it is applied prior to traversing the scene. Custom traversers may override this function in order to implement initial work to be done before traversing the scene. For derived classes to ensure proper traversing of the scene, it is recommended to always call the base implementation after the initial work has been done. Reimplemented from nvtraverser::CullTraverser. |
|
determine the The default implementation returns CC_IN.
Reimplemented from nvtraverser::CullTraverser. |
|
Determine the The default implementaion returns CC_IN.
Reimplemented from nvtraverser::CullTraverser. |