![]() |
VR-Forces 4.1 Class Documentation
|
Abstraction over the OSG scene graph. More...
Public Member Functions | |
| DtSceneGraph (DtOsgRenderer *renderer) | |
| CTOR. | |
| virtual | ~DtSceneGraph () |
| DTOR. | |
| virtual void | addNodeToRoot (osg::Node *node, DtOsgRenderer::SceneRoot sr, bool createOnAccess) |
| Add a node to the specified SceneRoot. | |
| virtual void | addRootToNode (osg::Group *node, DtOsgRenderer::SceneRoot sr, bool createOnAccess) |
| Add the specified SceneRoot to an OSG group node. | |
| virtual void | addActiveRootToNode (osg::Group *node, DtOsgRenderer::SceneRoot sr, bool createOnAccess) |
| Add the specified SceneRoot to an OSG group node using its active parent. | |
| virtual void | removeNodeFromRoot (osg::Node *node, DtOsgRenderer::SceneRoot sr) |
| Remove a node from the specified SceneRoot. | |
| virtual void | removeRootFromNode (osg::Group *node, DtOsgRenderer::SceneRoot sr) |
| Remove a scene root from an OSG group node. | |
| virtual void | removeActiveRootFromNode (osg::Group *node, DtOsgRenderer::SceneRoot sr) |
| Remove a scene root's active parent from an OSG group node. | |
| virtual void | traverseRoot (osg::NodeVisitor &nv, DtOsgRenderer::SceneRoot sr) |
| Traverse from the specified SceneRoot with the given visitor. | |
| virtual void | setSceneRootNodeMask (DtOsgRenderer::SceneRoot sr, osg::Node::NodeMask nodeMask) |
| Set the nodemask of a SceneRoot. | |
| virtual osg::Node::NodeMask | sceneRootNodeMask (DtOsgRenderer::SceneRoot sr) |
| Get the nodemask of a SceneRoot. | |
| virtual osg::BoundingSphere | sceneRootBound (DtOsgRenderer::SceneRoot sr) |
| Get the bounding sphere of sceneRoot. | |
| virtual osg::BoundingSphere | sceneRootListBound (const DtOsgRenderer::RootList &srList) |
| Get the bounding sphere of list of sceneRoots. | |
| virtual osg::Group * | findSceneRootChildByName (DtOsgRenderer::SceneRoot parent, const std::string &rootName) |
| Look up a root by name in the parent specified by SceneRoot. | |
| virtual void | setRenderRootAsSceneData (osgViewer::View &view) |
| Set the sceneData of a view to the top of the scene graph. | |
| virtual osg::Group * | createModelSetRoot (int modelSet) |
| Create a root node for the model set and return it. | |
Protected Member Functions | |
| virtual osg::Group * | getContainerRoot (DtOsgRenderer::SceneRoot root, bool createOnAccess) |
| virtual osg::Group * | getActiveRoot (DtOsgRenderer::SceneRoot root) |
Private Attributes | |
| DtOsgRenderer * | myRenderer |
Abstraction over the OSG scene graph.
Provides basic scene graph manipulation and querying
| makVrv::DtSceneGraph::DtSceneGraph | ( | DtOsgRenderer * | renderer | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Add a node to the specified SceneRoot.
|
virtual |
Add the specified SceneRoot to an OSG group node.
This should be used with caution - it creates a dependency between the caller and the scene graph's internal node structure.
|
virtual |
Add the specified SceneRoot to an OSG group node using its active parent.
This should be used with caution - it creates a dependency between the caller and the scene graph's internal node structure.
|
virtual |
Remove a node from the specified SceneRoot.
|
virtual |
Remove a scene root from an OSG group node.
This should be used with caution - it creates a dependency between the caller and the scene graph's internal node structure.
|
virtual |
Remove a scene root's active parent from an OSG group node.
This should be used with caution - it creates a dependency between the caller and the scene graph's internal node structure.
|
virtual |
Traverse from the specified SceneRoot with the given visitor.
|
virtual |
Set the nodemask of a SceneRoot.
|
virtual |
Get the nodemask of a SceneRoot.
|
virtual |
Get the bounding sphere of sceneRoot.
|
virtual |
Get the bounding sphere of list of sceneRoots.
|
virtual |
Look up a root by name in the parent specified by SceneRoot.
This should not be used to access roots that are created by Vantage. It Is provided for plugins to find the roots possibly created by other plugins (such as multiple GlStudio plugins, for example)
|
virtual |
Set the sceneData of a view to the top of the scene graph.
|
virtual |
Create a root node for the model set and return it.
|
protectedvirtual |
|
protectedvirtual |
|
private |