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

nvtraverser::GeoNodeUnifyTraverser Class Reference

Traverser that combines multiple GeoNodes under one Transform to a single one. More...

#include <GeoNodeUnifyTraverser.h>

Inheritance diagram for nvtraverser::GeoNodeUnifyTraverser:

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

Collaboration graph
[legend]
List of all members.

Public Methods

NVSG_API GeoNodeUnifyTraverser (void)
 Constructor. More...

NVSG_API bool getIgnoreNames (void) const
 Get the 'ignore names' flag. More...

NVSG_API void setIgnoreNames (bool ignore)
 Set the 'ignore names' flags. More...


Protected Methods

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

virtual NVSG_API void handleGeoNode (const nvsg::GeoNode *p)
 Routine to handle a GeoNode while traversing the scene graph. More...

virtual NVSG_API void preTraverseGroup (const nvsg::Group *p)
 This function will be called from the framework immediately before a Group is to be traversed. More...

virtual NVSG_API void postTraverseGroup (const nvsg::Group *p)
 This function will be called from the framework immediately after a Group has been traversed. More...


Detailed Description

Traverser that combines multiple GeoNodes under one Transform to a single one.

All geometries of all GeoNodes unter one Transform are reparented to a single GeoNode.


Constructor & Destructor Documentation

NVSG_API nvtraverser::GeoNodeUnifyTraverser::GeoNodeUnifyTraverser void   
 

Constructor.

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

Protected destructor to prevent instantiation of a GeoNodeUnifyTraverser on stack.


Member Function Documentation

bool nvtraverser::GeoNodeUnifyTraverser::getIgnoreNames void    const [inline]
 

Get the 'ignore names' flag.

If the 'ignore names' flag is set, the names of the GeoNodes are ignored.

Returns:
true if the names will be ignored, otherwise false

void nvtraverser::GeoNodeUnifyTraverser::setIgnoreNames bool    ignore [inline]
 

Set the 'ignore names' flags.

If the 'ignore names' flag is set, the names of the GeoNodes are ignored.

Parameters:
ignore  set true to ignore names on comparison

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

Routine to handle a GeoNode while traversing the scene graph.

This routine just records all GeoNodes beneath a Group for reparenting.

Parameters:
p  Points to the currently visited GeoNode object.

Reimplemented from nvtraverser::Traverser.

virtual NVSG_API void nvtraverser::GeoNodeUnifyTraverser::preTraverseGroup const nvsg::Group   p [protected, virtual]
 

This function will be called from the framework immediately before a Group is to be traversed.

Before traversing the Group, a list of the contained GeoNodes is created.

Parameters:
p  Points to the Group that will be traversed immediately after this call.

Reimplemented from nvtraverser::Traverser.

virtual NVSG_API void nvtraverser::GeoNodeUnifyTraverser::postTraverseGroup const nvsg::Group   p [protected, virtual]
 

This function will be called from the framework immediately after a Group has been traversed.

After traversing the Group, all it's children that are GeoNodes are combined.

Parameters:
p  Points to the Group that was traversed immediately before this call.

Reimplemented from nvtraverser::Traverser.


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