OpenWalnut  1.4.0
Public Member Functions
WGEGroupNode::SafeUpdaterCallback Class Reference

Update callback which inserts and removes nodes from m_childRemovalQueue and m_childInsertionQueue to the group node. More...

#include <WGEGroupNode.h>

+ Inheritance diagram for WGEGroupNode::SafeUpdaterCallback:

List of all members.

Public Member Functions

virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 Callback method called by the NodeVisitor when visiting a node.

Detailed Description

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.


Member Function Documentation

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.

Parameters:
nodethe node calling this update
nvThe 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.


The documentation for this class was generated from the following files: