|
openscenegraph
|
#include <ObserverNodePath>
Public Member Functions | |
| ObserverNodePath () | |
| ObserverNodePath (const ObserverNodePath &rhs) | |
| ObserverNodePath (const osg::NodePath &nodePath) | |
| ~ObserverNodePath () | |
| ObserverNodePath & | operator= (const ObserverNodePath &rhs) |
| void | setNodePathTo (osg::Node *node) |
| void | setNodePath (const osg::RefNodePath &nodePath) |
| void | setNodePath (const osg::NodePath &nodePath) |
| void | clearNodePath () |
| bool | getRefNodePath (RefNodePath &refNodePath) const |
| bool | getNodePath (NodePath &nodePath) const |
| bool | empty () const |
Protected Types | |
| typedef std::vector< osg::observer_ptr< osg::Node > > | ObsNodePath |
Protected Member Functions | |
| void | _setNodePath (const osg::NodePath &nodePath) |
| void | _clearNodePath () |
Protected Attributes | |
| OpenThreads::Mutex | _mutex |
| ObsNodePath | _nodePath |
ObserverNodePath is an observer class for tracking changes to a NodePath, that automatically invalidates it when nodes are deleted.
|
protected |
| osg::ObserverNodePath::ObserverNodePath | ( | ) |
Referenced by ObserverNodePath(), and operator=().
| osg::ObserverNodePath::ObserverNodePath | ( | const ObserverNodePath & | rhs | ) |
References ObserverNodePath().
| osg::ObserverNodePath::ObserverNodePath | ( | const osg::NodePath & | nodePath | ) |
| osg::ObserverNodePath::~ObserverNodePath | ( | ) |
|
protected |
|
protected |
| void osg::ObserverNodePath::clearNodePath | ( | ) |
| bool osg::ObserverNodePath::getNodePath | ( | NodePath & | nodePath | ) | const |
| bool osg::ObserverNodePath::getRefNodePath | ( | RefNodePath & | refNodePath | ) | const |
Get a thread safe RefNodePath, return true if NodePath is valid.
| ObserverNodePath & osg::ObserverNodePath::operator= | ( | const ObserverNodePath & | rhs | ) |
References ObserverNodePath().
| void osg::ObserverNodePath::setNodePath | ( | const osg::NodePath & | nodePath | ) |
| void osg::ObserverNodePath::setNodePath | ( | const osg::RefNodePath & | nodePath | ) |
| void osg::ObserverNodePath::setNodePathTo | ( | osg::Node * | node | ) |
get the NodePath from the first parental chain back to root, plus the specified node.
|
mutableprotected |
Referenced by empty().
|
protected |
Referenced by empty().