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

WRLLoadTraverser Class Reference

Internally used traverser for post-processing a just loaded VRML file. More...

#include <WRLLoadTraverser.h>

Inheritance diagram for WRLLoadTraverser:

Inheritance graph
[legend]
Collaboration diagram for WRLLoadTraverser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WRLLoadTraverser ()
 Constructor.
virtual ~WRLLoadTraverser (void)
 Destructor.

Protected Member Functions

virtual void doApply (const nvsg::ViewState *pViewState, const nvsg::Scene *pScene)
 Entry point of the postprocessor of the WRLLoader.
virtual void handleGeoNode (const nvsg::GeoNode *p)
 Postprocessing on GeoNode.
virtual void handleTransform (const nvsg::Transform *p)
 Postprocessing on Transform.

Detailed Description

Internally used traverser for post-processing a just loaded VRML file.


Constructor & Destructor Documentation

WRLLoadTraverser::WRLLoadTraverser  ) 
 

Constructor.

virtual WRLLoadTraverser::~WRLLoadTraverser void   )  [virtual]
 

Destructor.


Member Function Documentation

virtual void WRLLoadTraverser::doApply const nvsg::ViewState pViewState,
const nvsg::Scene pScene
[protected, virtual]
 

Entry point of the postprocessor of the WRLLoader.

It first initiates a standard traversal of the ViewSate and Scene, then all encountered lights are set to be children of the root node.

Reimplemented from nvtraverser::Traverser.

virtual void WRLLoadTraverser::handleGeoNode const nvsg::GeoNode p  )  [protected, virtual]
 

Postprocessing on GeoNode.

All empty children of p are removed.

Reimplemented from nvtraverser::Traverser.

virtual void WRLLoadTraverser::handleTransform const nvsg::Transform p  )  [protected, virtual]
 

Postprocessing on Transform.

First the standard traversal of p is initiated, then all empty children of type GeoNode or Transform are removed and all children of type LightSource are stored and later moved to the root node.

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