Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nvtraverser::OcclusionCullTraverser Class Reference

CullTraverser culling on occlusion information. More...

#include <OcclusionCullTraverser.h>

Inheritance diagram for nvtraverser::OcclusionCullTraverser:

Inheritance graph
[legend]
Collaboration diagram for nvtraverser::OcclusionCullTraverser:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

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 Documentation

NVSG_API nvtraverser::OcclusionCullTraverser::OcclusionCullTraverser void   ) 
 

Constructor.

virtual NVSG_API nvtraverser::OcclusionCullTraverser::~OcclusionCullTraverser void   )  [protected, virtual]
 

Destructor.


Member Function Documentation

RenderTraverser::GeometryCacheTechnique nvtraverser::OcclusionCullTraverser::getGeometryCacheTechnique void   )  const [inline]
 

Get the current geoemtry caching technique.

bool nvtraverser::OcclusionCullTraverser::isGeometryCacheTechniqueSupported RenderTraverser::GeometryCacheTechnique  gct  )  const [inline]
 

Test on supported geometry caching techhniques.

Returns:
true - supported, false - not supported.
Parameters:
gct  GeometryCache technique.

bool nvtraverser::OcclusionCullTraverser::setGeometryCacheTechnique RenderTraverser::GeometryCacheTechnique  gct  )  [inline]
 

Set the geometry caching technique the render should use.

Returns:
true - everything went fine, false - not set
Parameters:
gct  GeometryCache technique.

virtual NVSG_API void nvtraverser::OcclusionCullTraverser::doApply const nvsg::ViewState pViewState,
const nvsg::Scene pScene
[protected, virtual]
 

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.

virtual NVSG_API nvsg::CullCode nvtraverser::OcclusionCullTraverser::cullCode const nvsg::Drawable p  )  const [protected, virtual]
 

determine the CullCode of a Drawable.

The default implementation returns CC_IN.

Returns:
CullCode for Drawable p.

Reimplemented from nvtraverser::CullTraverser.

virtual NVSG_API nvsg::CullCode nvtraverser::OcclusionCullTraverser::cullCode const nvsg::Node p  )  const [protected, virtual]
 

Determine the CullCode of a Node.

The default implementaion returns CC_IN.

Returns:
CullCode for Node p.

Reimplemented from nvtraverser::CullTraverser.


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:21:05 2005 for NVSGSDK by NVIDIA