![]() |
VR-Forces 4.8 Class Documentation
|
Abstraction over the OSG scene graph. More...
Public Member Functions | |
| DtSceneGraph (DtDe &de, DtOsgRenderer *renderer) | |
| CTOR. More... | |
| virtual | ~DtSceneGraph () |
| DTOR. More... | |
| virtual bool | isSceneRootEmpty (const DtSceneRoot &sr) |
| Checks to see if the specified sceneRoot currently has any children. More... | |
| virtual void | addNodeToRoot (osg::Node *node, const DtSceneRoot &sr, bool createOnAccess) |
| Add a node to the specified SceneRoot. More... | |
| virtual void | addSceneRootToRoot (const DtSceneRoot &childRoot, const DtSceneRoot &parentRoot, bool createOnAccess) |
| Add a (child) SceneRoot to the specified SceneRoot. More... | |
| virtual void | addRootToNode (osg::Group *node, const DtSceneRoot &sr, bool createOnAccess) |
| Add the specified SceneRoot to an OSG group node. More... | |
| virtual void | addActiveRootToNode (osg::Group *node, const DtSceneRoot &sr, bool createOnAccess) |
| Add the specified SceneRoot to an OSG group node using its active parent. More... | |
| virtual void | removeNodeFromRoot (osg::Node *node, const DtSceneRoot &sr) |
| Remove a node from the specified SceneRoot. More... | |
| virtual void | removeSceneRootFromRoot (const DtSceneRoot &childRoot, const DtSceneRoot &parentRoot) |
| Remove a (child) sceneRoot from the specified parent SceneRoot. More... | |
| virtual void | removeRootFromNode (osg::Group *node, const DtSceneRoot &sr) |
| Remove a scene root from an OSG group node. More... | |
| virtual void | removeActiveRootFromNode (osg::Group *node, const DtSceneRoot &sr) |
| Remove a scene root's active parent from an OSG group node. More... | |
| virtual void | traverseRoot (osg::NodeVisitor &nv, const DtSceneRoot &sr) |
| Traverse from the specified SceneRoot with the given visitor. More... | |
| virtual void | setSceneRootNodeMask (const DtSceneRoot &sr, osg::Node::NodeMask nodeMask) |
| Set the nodemask of a SceneRoot. More... | |
| virtual osg::Node::NodeMask | sceneRootNodeMask (const DtSceneRoot &sr) |
| Get the nodemask of a SceneRoot. More... | |
| virtual osg::BoundingSphere | sceneRootBound (const DtSceneRoot &sr) |
| Get the bounding sphere of sceneRoot. More... | |
| virtual osg::BoundingSphere | sceneRootListBound (const DtSceneRootList &srList) |
| Get the bounding sphere of list of sceneRoots. More... | |
| virtual osg::Group * | findSceneRootChildByName (const DtSceneRoot &parent, const std::string &rootName) |
| Look up a root by name in the parent specified by SceneRoot. More... | |
| virtual void | setRenderRootAsSceneData (osgViewer::View &view) |
| Set the sceneData of a view to the top of the scene graph. More... | |
| virtual osg::Group * | createModelSetRoot (int modelSet) |
| Create a root node for the model set and return it. More... | |
| virtual bool | matchesSceneRoot (const DtSceneRoot &sr, osg::Group *group) |
| Test if this group matches the given scene root. More... | |
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 |
Abstraction over the OSG scene graph.
Provides basic scene graph manipulation and querying
| 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 |