OpenSceneGraph
3.0.1
|
ObserverNodePath is an observer class for tracking changes to a NodePath, that automatically invalidates it when nodes are deleted. More...
Public Member Functions | |
ObserverNodePath () | |
ObserverNodePath (const ObserverNodePath &rhs) | |
ObserverNodePath (const osg::NodePath &nodePath) | |
~ObserverNodePath () | |
ObserverNodePath & | operator= (const ObserverNodePath &rhs) |
void | setNodePathTo (osg::Node *node) |
get the NodePath from the first parental chain back to root, plus the specified node. | |
void | setNodePath (const osg::RefNodePath &nodePath) |
void | setNodePath (const osg::NodePath &nodePath) |
void | clearNodePath () |
bool | getRefNodePath (RefNodePath &refNodePath) const |
Get a thread safe RefNodePath, return true if NodePath is valid. | |
bool | getNodePath (NodePath &nodePath) const |
Get a lightweight NodePath that isn't thread safe but may be safely used in single threaded applications, or when its known that the NodePath won't be invalidated during usage of the NodePath. | |
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.
typedef std::vector< osg::observer_ptr<osg::Node> > osg::ObserverNodePath::ObsNodePath [protected] |
osg::ObserverNodePath::ObserverNodePath | ( | ) |
osg::ObserverNodePath::ObserverNodePath | ( | const ObserverNodePath & | rhs | ) |
osg::ObserverNodePath::ObserverNodePath | ( | const osg::NodePath & | nodePath | ) |
osg::ObserverNodePath::~ObserverNodePath | ( | ) |
void osg::ObserverNodePath::_clearNodePath | ( | ) | [protected] |
void osg::ObserverNodePath::_setNodePath | ( | const osg::NodePath & | nodePath | ) | [protected] |
void osg::ObserverNodePath::clearNodePath | ( | ) |
bool osg::ObserverNodePath::empty | ( | ) | const [inline] |
bool osg::ObserverNodePath::getNodePath | ( | NodePath & | nodePath | ) | const |
Get a lightweight NodePath that isn't thread safe but may be safely used in single threaded applications, or when its known that the NodePath won't be invalidated during usage of the NodePath.
return true if NodePath is valid.
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 | ) |
void osg::ObserverNodePath::setNodePath | ( | const osg::RefNodePath & | nodePath | ) |
void osg::ObserverNodePath::setNodePath | ( | const osg::NodePath & | nodePath | ) |
void osg::ObserverNodePath::setNodePathTo | ( | osg::Node * | node | ) |
get the NodePath from the first parental chain back to root, plus the specified node.
OpenThreads::Mutex osg::ObserverNodePath::_mutex [mutable, protected] |
ObsNodePath osg::ObserverNodePath::_nodePath [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5. |