OpenWalnut
1.4.0
|
Update callback which inserts and removes nodes from m_childRemovalQueue and m_childInsertionQueue to the group node. More...
#include <WGEGroupNode.h>
Public Member Functions | |
virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
Callback method called by the NodeVisitor when visiting a node. |
Update callback which inserts and removes nodes from m_childRemovalQueue and m_childInsertionQueue to the group node.
This ensures thread safe modification of the osg root node.
Definition at line 100 of file WGEGroupNode.h.
void WGEGroupNode::SafeUpdaterCallback::operator() | ( | osg::Node * | node, |
osg::NodeVisitor * | nv | ||
) | [virtual] |
Callback method called by the NodeVisitor when visiting a node.
This inserts and removes enqueued nodes from this group node instance.
node | the node calling this update |
nv | The node visitor which performs the traversal. Should be an update visitor. |
Definition at line 87 of file WGEGroupNode.cpp.
References WGEGroupNode::CLEAR, WGEGroupNode::m_childOperationQueue, WGEGroupNode::m_childOperationQueueDirty, WGEGroupNode::m_childOperationQueueLock, WGEGroupNode::m_removeAll, WGEGroupNode::REMOVE, and WGEGroupNode::REMOVE_IF.