version 3.3

VRS::SceneGraphOperator Class Reference

Abstract base class for scene graph operators. More...

#include <vrs/sg/scenegraphoperator.h>

Inheritance diagram for VRS::SceneGraphOperator:

VRS::VisitorBase VRS::SharedObj VRS::Visitable VRS::CollapseTransformsOperator VRS::CompositeOperator VRS::StateSortingOperator VRS::StaticLightingOperator VRS::TextureAtlasOperator

List of all members.

Public Member Functions

virtual void optimizeScene (SO< SceneNode > &scene)=0
 Optimize the scene.

Static Protected Member Functions

static void removeObject (SO< SceneThing > scene, const VRS::ID &className)
 Remove specific objects.


Detailed Description

Abstract base class for scene graph operators.

Author:
Victor Saar Concrete scene graph operators must implement this base class. The operation is performed directly on the provided scene, so no optimized scene is returned. The operator is a SceneNodeVisitor and traverses the scene at least once. The traverse() method must not be called directly. Use optimizeScene() instead.

Member Function Documentation

virtual void VRS::SceneGraphOperator::optimizeScene ( SO< SceneNode > &  scene  )  [pure virtual]

Optimize the scene.

Parameters:
scene Root of scene graph to optimize.
This method is implemented by concrete scene graph operators to perform the requested operation on the given scene graph.

Implemented in VRS::CollapseTransformsOperator, VRS::StateSortingOperator, VRS::StaticLightingOperator, and VRS::TextureAtlasOperator.

static void VRS::SceneGraphOperator::removeObject ( SO< SceneThing scene,
const VRS::ID className 
) [static, protected]

Remove specific objects.


The documentation for this class was generated from the following file:

Generated on Wed May 22 06:00:32 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact