![]() |
VR-Forces 5.0.1 Developer's Guide
|
Abstraction over the OSG scene graph.
Provides basic scene graph manipulation and querying
Public Member Functions | |
| DtSceneGraph (DtDe &de, DtOsgRenderer *renderer) | |
| virtual | ~DtSceneGraph () |
| virtual bool | isSceneRootEmpty (const DtSceneRoot &sr) |
| virtual void | addNodeToRoot (osg::Node *node, const DtSceneRoot &sr, bool createOnAccess) |
| virtual void | addSceneRootToRoot (const DtSceneRoot &childRoot, const DtSceneRoot &parentRoot, bool createOnAccess) |
| virtual void | addRootToNode (osg::Group *node, const DtSceneRoot &sr, bool createOnAccess) |
| virtual void | addActiveRootToNode (osg::Group *node, const DtSceneRoot &sr, bool createOnAccess) |
| virtual void | removeNodeFromRoot (osg::Node *node, const DtSceneRoot &sr) |
| virtual void | removeSceneRootFromRoot (const DtSceneRoot &childRoot, const DtSceneRoot &parentRoot) |
| virtual void | removeRootFromNode (osg::Group *node, const DtSceneRoot &sr) |
| virtual void | removeActiveRootFromNode (osg::Group *node, const DtSceneRoot &sr) |
| virtual void | traverseRoot (osg::NodeVisitor &nv, const DtSceneRoot &sr) |
| virtual void | setSceneRootNodeMask (const DtSceneRoot &sr, osg::Node::NodeMask nodeMask) |
| virtual osg::Node::NodeMask | sceneRootNodeMask (const DtSceneRoot &sr) |
| virtual osg::BoundingSphere | sceneRootBound (const DtSceneRoot &sr) |
| virtual osg::BoundingSphere | sceneRootListBound (const DtSceneRootList &srList) |
| virtual osg::Group * | findSceneRootChildByName (const DtSceneRoot &parent, const std::string &rootName) |
| virtual void | setRenderRootAsSceneData (osgViewer::View &view) |
| virtual osg::Group * | createModelSetRoot (int modelSet) |
| virtual bool | matchesSceneRoot (const DtSceneRoot &sr, osg::Group *group) |
Protected Member Functions | |
| virtual osg::Group * | getContainerRoot (const DtSceneRoot &root, bool createOnAccess) |
| virtual osg::Group * | getActiveRoot (const DtSceneRoot &root) |
Private Attributes | |
| DtOsgRenderer * | myRenderer |
| DtDe & | myDe |
| makVrv::DtSceneGraph::DtSceneGraph | ( | DtDe & | de, |
| DtOsgRenderer * | renderer | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Checks to see if the specified sceneRoot currently has any children. Note that: in some cases, this may cause a scene root to be created if it doesn't exist A scene root that doesn't exist (and doesn't get created) is considered 'empty' by this method.
|
virtual |
Add a node to the specified SceneRoot.
|
virtual |
Add a (child) SceneRoot 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 (child) sceneRoot from the specified parent 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 |
|
private |