GLTraverser
internally used by the OcclusionCullTraverser
.
More...
#include <OcclusionCullGLTraverser.h>
Inheritance diagram for nvtraverser::OcclusionCullGLTraverser:
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. |
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.
|
|
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. |
|
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. |
|
Routine to handle a DirectedLight node while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a PointLight node while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a SpotLight node while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a Quads object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a AnimatedQuads object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a QuadStrips object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a Triangles object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a AnimatedTriangles object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a SkinnedTriangles object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a TriStrips object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a StateSet object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a CgFx attribute while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a FaceAttribute attribute while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a Material attribute while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a TextureAttribute attribute while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a TextureAttributeItem object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a JitterCamera object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a StereoCamera object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a HighlightBox object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |
|
Routine to handle a HighlightEdges object while traversing the scene graph.
Reimplemented from nvtraverser::GLTraverser. |