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

nvtraverser::CondenseTraverser Class Reference

Traverser that can condense some drawables. More...

#include <CondenseTraverser.h>

Inheritance diagram for nvtraverser::CondenseTraverser:

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

Collaboration graph
[legend]
List of all members.

Public Methods

NVSG_API CondenseTraverser (void)
 Constructor. More...

NVSG_API void setEpsilon (float epsilon)
 Set the epsilon to use to distinguish vertex values. More...


Protected Methods

virtual NVSG_API ~CondenseTraverser (void)
 Proteced destructor to prevent instantiation of a CondenseTraverser on stack. More...

virtual NVSG_API void doApply (const nvsg::ViewState *pViewState, const nvsg::Scene *pScene)
 Initiate traversal of the scene with a view state. More...

virtual NVSG_API void handleGeoNode (const nvsg::GeoNode *p)
 Condense all Quads and Triangles of a GeoNode. More...


Detailed Description

Traverser that can condense some drawables.

Currently, this CondenseTraverser supports Triangles only.


Constructor & Destructor Documentation

NVSG_API nvtraverser::CondenseTraverser::CondenseTraverser void   
 

Constructor.

virtual NVSG_API nvtraverser::CondenseTraverser::~CondenseTraverser void    [protected, virtual]
 

Proteced destructor to prevent instantiation of a CondenseTraverser on stack.


Member Function Documentation

void nvtraverser::CondenseTraverser::setEpsilon float    epsilon [inline]
 

Set the epsilon to use to distinguish vertex values.

This epsilon multiplied by the size of the scene gives the tolerance for detecting equal vertices.

Parameters:
epsilon  Epsilon to use

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

Initiate traversal of the scene with a view state.

Calculates the tolerance for the scene and calls the Traverser::doApply().

Parameters:
pViewState  ViewState to handle
pScene  Scene to traverse and handle

Reimplemented from nvtraverser::Traverser.

virtual NVSG_API void nvtraverser::CondenseTraverser::handleGeoNode const nvsg::GeoNode   p [protected, virtual]
 

Condense all Quads and Triangles of a GeoNode.

Parameters:
p  GeoNode to condense

Reimplemented from nvtraverser::Traverser.


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