SceneGraphUtilities.__OwnerMaterialCorrector Class Reference


Detailed Description

Traverses the graph and ensures that each node in the graph that has a material it on the owner list of that material.

There are two cases that can happen: a) There are nodes in the scene that have materials assigned to them, but they are not on the material's owner list.

b) There are materials in the graph that have an owner that does not have that material assigned to it.

For case a) we need to add the node to the material's owner's list. For case b) we need to remove the node from the

Fixing the graph: 1. Collect all the nodes from the graph that have material assigned to them. 2. For each node on the list, verify that the material assigned to it has that node on its owner's list. If not, add that node to the list of owners. 3. For each material found in the scene, traverse its owners and verify that each node has that material assigned to it. If not, remove that owner from the list.

#include <class_scene_graph_utilities_1_1_____owner_material_corrector.h>

Inheritance diagram for SceneGraphUtilities.__OwnerMaterialCorrector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  applyNode ()
  Virtual method.

Member Function Documentation

SceneGraphUtilities.__OwnerMaterialCorrector.__init__ ( )
SceneGraphUtilities.__OwnerMaterialCorrector.applyNode ( )

Virtual method.

Override this to do custom handling of nodes.

Reimplemented from NodeVisitor.NodeVisitor.


SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector
SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector SceneGraphUtilities.__OwnerMaterialCorrector