![]() |
VR-Forces 4.7 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, const DtSceneRoot &sr, bool createOnAccess) |
| Add a node to the specified SceneRoot. | |
| virtual void | addRootToNode (osg::Group *node, const DtSceneRoot &sr, bool createOnAccess) |
| Add the specified SceneRoot to an OSG group node. | |
| virtual void | addActiveRootToNode (osg::Group *node, const DtSceneRoot &sr, bool createOnAccess) |
| Add the specified SceneRoot to an OSG group node using its active parent. | |
| virtual void | removeNodeFromRoot (osg::Node *node, const DtSceneRoot &sr) |
| Remove a node from the specified SceneRoot. | |
| virtual void | removeRootFromNode (osg::Group *node, const DtSceneRoot &sr) |
| Remove a scene root from an OSG group node. | |
| virtual void | removeActiveRootFromNode (osg::Group *node, const DtSceneRoot &sr) |
| Remove a scene root's active parent from an OSG group node. | |
| virtual void | traverseRoot (osg::NodeVisitor &nv, const DtSceneRoot &sr) |
| Traverse from the specified SceneRoot with the given visitor. | |
| virtual void | setSceneRootNodeMask (const DtSceneRoot &sr, osg::Node::NodeMask nodeMask) |
| Set the nodemask of a SceneRoot. | |
| virtual osg::Node::NodeMask | sceneRootNodeMask (const DtSceneRoot &sr) |
| Get the nodemask of a SceneRoot. | |
| virtual osg::BoundingSphere | sceneRootBound (const DtSceneRoot &sr) |
| Get the bounding sphere of sceneRoot. | |
| virtual osg::BoundingSphere | sceneRootListBound (const DtSceneRootList &srList) |
| Get the bounding sphere of list of sceneRoots. | |
| virtual osg::Group * | findSceneRootChildByName (const DtSceneRoot &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. | |
| virtual bool | matchesSceneRoot (const DtSceneRoot &sr, osg::Group *group) |
| Test if this group matches the given scene root. | |
Protected Member Functions | |
| virtual osg::Group * | getContainerRoot (const DtSceneRoot &root, bool createOnAccess) |
| virtual osg::Group * | getActiveRoot (const DtSceneRoot &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.
|
virtual |
Test if this group matches the given scene root.
|
protectedvirtual |
|
protectedvirtual |
|
private |