The SceneToDataVisitor visits every node in the tree rooted at the node given to accept().
In the process, XML data objects are created for the nodes accumulating the attributes necessary to save its state.
The data objects for each node can be retrieved using getModels(),
Note, only the node types that need to be written to file should override their corresponding apply*() methods.
#include
<class_scene_to_data_visitor_1_1_scene_to_data_visitor.h>
Public Member Functions |
|
__init__ () | |
getParameterTypeAsString () | |
getModels () | |
getModelsByNamespace () | |
resolveModelFile () | |
resolveOriginalFilename () | |
applyImport () | |
Virtual method. |
|
applyGeometry () | |
Virtual method. |
|
applyImageGeometry () | |
Virtual method. |
|
applyRpcGeometry () | |
Virtual method. |
|
applyLight () | |
Virtual method. |
|
applyMeshGeometry () | |
Virtual method. |
|
applyLodCollapse () | |
Virtual method. |
|
applyLodGroup () | |
Do not traverse the children of the lod node
since we do not want to save them. |
|
applyGroup () | |
Virtual method. |
|
applyNode () | |
Virtual method. |
|
apply () | |
Add new node types here. |
SceneToDataVisitor.SceneToDataVisitor.__init__ | ( | ) |
Reimplemented from NodeVisitor.NodeVisitor.
Reimplemented in EnvironmentModelIO.EnvironmentSceneToDataVisitor.
SceneToDataVisitor.SceneToDataVisitor.getParameterTypeAsString | ( | ) |
SceneToDataVisitor.SceneToDataVisitor.getModels | ( | ) |
SceneToDataVisitor.SceneToDataVisitor.getModelsByNamespace | ( | ) |
SceneToDataVisitor.SceneToDataVisitor.resolveModelFile | ( | ) |
Reimplemented in EnvironmentModelIO.EnvironmentSceneToDataVisitor.
SceneToDataVisitor.SceneToDataVisitor.resolveOriginalFilename | ( | ) |
Reimplemented in EnvironmentModelIO.EnvironmentSceneToDataVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyImport | ( | ) |
Virtual method.
Override this to handle import nodes but remember to always call the parent class applyImport method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyGeometry | ( | ) |
Virtual method.
Override this to handle geometry nodes but remember to always call the parent class applyGeometry method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyImageGeometry | ( | ) |
Virtual method.
Override this to handle image geometry nodes but remember to always call the parent class applyGeometry method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyRpcGeometry | ( | ) |
Virtual method.
Override this to handle image geometry nodes but remember to always call the parent class applyGeometry method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyLight | ( | ) |
Virtual method.
Override this to handle light nodes but remember to always call the parent class applyNode method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyMeshGeometry | ( | ) |
Virtual method.
Override this to handle mesh geometry nodes but remember to always call the parent class applyGeometry method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyLodCollapse | ( | ) |
Virtual method.
Override this to handle lodCollapse nodes. Depending on the circumstance either the LodGroup base class or the Group base class method should be called. For now we treat this as a true LodGroup by default.
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyLodGroup | ( | ) |
Do not traverse the children of the lod node since we do not want to save them.
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyGroup | ( | ) |
Virtual method.
Override this to handle group nodes but remember to always call the parent class applyGroup method
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.applyNode | ( | ) |
Virtual method.
Override this to do custom handling of nodes.
Reimplemented from NodeVisitor.NodeVisitor.
SceneToDataVisitor.SceneToDataVisitor.apply | ( | ) |
Add new node types here.
Unrecognized node types are processed by applyNode() by default.
Reimplemented from NodeVisitor.NodeVisitor.