OpenWalnut  1.5.0dev
Public Member Functions | List of all members
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:
+ Collaboration diagram for WGEGroupNode::SafeUpdaterCallback:

Public Member Functions

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

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 101 of file WGEGroupNode.h.

Member Function Documentation

◆ operator()()

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 88 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: