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

nvtraverser::OcclusionCullGLTraverser Class Reference

GLTraverser internally used by the OcclusionCullTraverser. More...

#include <OcclusionCullGLTraverser.h>

Inheritance diagram for nvtraverser::OcclusionCullGLTraverser:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

NVSG_API OcclusionCullGLTraverser (void)
 Constructor.
NVSG_API std::vector< GLuint > * getQueries (void)

Protected Member Functions

virtual NVSG_API ~OcclusionCullGLTraverser (void)
 Destructor.
virtual NVSG_API bool preTraverseRoot (const nvsg::SimpleCamera *p, const nvsg::Node *root)
 Handles stuff to do just before the scene is traversed.
virtual NVSG_API void postTraverseRoot (const nvsg::SimpleCamera *p, const nvsg::Node *root)
 This function will be called from the framework immediately after the scene graph has been traversed.
virtual NVSG_API void handleDirectedLight (const nvsg::DirectedLight *p)
 Routine to handle a DirectedLight node while traversing the scene graph.
virtual NVSG_API void handlePointLight (const nvsg::PointLight *p)
 Routine to handle a PointLight node while traversing the scene graph.
virtual NVSG_API void handleSpotLight (const nvsg::SpotLight *p)
 Routine to handle a SpotLight node 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.
virtual NVSG_API void handleStateSet (const nvsg::StateSet *p)
 Routine to handle a StateSet object while traversing the scene graph.
virtual NVSG_API void handleCgFx (const nvsg::CgFx *p)
 Routine to handle a CgFx attribute while traversing the scene graph.
virtual NVSG_API void handleFaceAttribute (const nvsg::FaceAttribute *p)
 Routine to handle a FaceAttribute attribute while traversing the scene graph.
virtual NVSG_API void handleMaterial (const nvsg::Material *p)
 Routine to handle a Material attribute while traversing the scene graph.
virtual NVSG_API void handleTextureAttribute (const nvsg::TextureAttribute *p)
 Routine to handle a TextureAttribute attribute while traversing the scene graph.
virtual NVSG_API void handleTextureAttributeItem (const nvsg::TextureAttributeItem *p, size_t tu)
 Routine to handle a TextureAttributeItem object while traversing the scene graph.
virtual NVSG_API void handleJitterCamera (const nvsg::JitterCamera *p, const nvsg::Node *root)
 Routine to handle a JitterCamera object while traversing the scene graph.
virtual NVSG_API void handleStereoCamera (const nvsg::StereoCamera *p, const nvsg::Node *root)
 Routine to handle a StereoCamera object while traversing the scene graph.
virtual NVSG_API void handleHighlightBox (const nvsg::HighlightBox *p, const nvsg::GeoSet *g)
 Routine to handle a HighlightBox object while traversing the scene graph.
virtual NVSG_API void handleHighlightEdges (const nvsg::HighlightEdges *p, const nvsg::GeoSet *geoSet)
 Routine to handle a HighlightEdges object while traversing the scene graph.

Detailed Description

GLTraverser internally used by the OcclusionCullTraverser.

This GLTraverser performs the minimal GL operations to determine the number of rendered samples per Drawable. That number is used to determine/adjust the CullCode of that Drawable.


Constructor & Destructor Documentation

NVSG_API nvtraverser::OcclusionCullGLTraverser::OcclusionCullGLTraverser void   ) 
 

Constructor.

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

Destructor.


Member Function Documentation

virtual NVSG_API bool nvtraverser::OcclusionCullGLTraverser::preTraverseRoot const nvsg::SimpleCamera p,
const nvsg::Node root
[protected, virtual]
 

Handles stuff to do just before the scene is traversed.

This initializes the camera related part of the transform stack (after traversal of the headlights).

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::postTraverseRoot const nvsg::SimpleCamera p,
const nvsg::Node root
[protected, virtual]
 

This function will be called from the framework immediately after the scene graph has been traversed.

remarks Custom traversers can override this function for any tasks that need to be done immediately after the scene graph has been traversed.

Reimplemented from nvtraverser::Traverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleDirectedLight const nvsg::DirectedLight p  )  [protected, virtual]
 

Routine to handle a DirectedLight node while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handlePointLight const nvsg::PointLight p  )  [protected, virtual]
 

Routine to handle a PointLight node while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleSpotLight const nvsg::SpotLight p  )  [protected, virtual]
 

Routine to handle a SpotLight node while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleQuads const nvsg::Quads p  )  [protected, virtual]
 

Routine to handle a Quads object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleAnimatedQuads const nvsg::AnimatedQuads p  )  [protected, virtual]
 

Routine to handle a AnimatedQuads object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleQuadStrips const nvsg::QuadStrips p  )  [protected, virtual]
 

Routine to handle a QuadStrips object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleTriangles const nvsg::Triangles p  )  [protected, virtual]
 

Routine to handle a Triangles object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleAnimatedTriangles const nvsg::AnimatedTriangles p  )  [protected, virtual]
 

Routine to handle a AnimatedTriangles object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleSkinnedTriangles const nvsg::SkinnedTriangles p  )  [protected, virtual]
 

Routine to handle a SkinnedTriangles object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleTriStrips const nvsg::TriStrips p  )  [protected, virtual]
 

Routine to handle a TriStrips object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleStateSet const nvsg::StateSet p  )  [protected, virtual]
 

Routine to handle a StateSet object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleCgFx const nvsg::CgFx p  )  [protected, virtual]
 

Routine to handle a CgFx attribute while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleFaceAttribute const nvsg::FaceAttribute p  )  [protected, virtual]
 

Routine to handle a FaceAttribute attribute while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleMaterial const nvsg::Material p  )  [protected, virtual]
 

Routine to handle a Material attribute while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleTextureAttribute const nvsg::TextureAttribute p  )  [protected, virtual]
 

Routine to handle a TextureAttribute attribute while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleTextureAttributeItem const nvsg::TextureAttributeItem p,
size_t  tu
[protected, virtual]
 

Routine to handle a TextureAttributeItem object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleJitterCamera const nvsg::JitterCamera p,
const nvsg::Node root
[protected, virtual]
 

Routine to handle a JitterCamera object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleStereoCamera const nvsg::StereoCamera p,
const nvsg::Node root
[protected, virtual]
 

Routine to handle a StereoCamera object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleHighlightBox const nvsg::HighlightBox p,
const nvsg::GeoSet g
[protected, virtual]
 

Routine to handle a HighlightBox object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.

virtual NVSG_API void nvtraverser::OcclusionCullGLTraverser::handleHighlightEdges const nvsg::HighlightEdges p,
const nvsg::GeoSet geoSet
[protected, virtual]
 

Routine to handle a HighlightEdges object while traversing the scene graph.

Reimplemented from nvtraverser::GLTraverser.


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