|
OpenWalnut
1.2.5
|
This class adds some convenience methods to WGEGroupNode. More...
#include <WGEManagedGroupNode.h>
Inheritance diagram for WGEManagedGroupNode:Public Types | |
| typedef osg::ref_ptr < WGEManagedGroupNode > | SPtr |
| Shared pointer. | |
| typedef osg::ref_ptr< const WGEManagedGroupNode > | ConstSPtr |
| Const shared pointer. | |
Public Types inherited from WGEGroupNode | |
| typedef WPredicateHelper::ArbitraryPredicateBase < osg::ref_ptr< osg::Node > const > | NodePredicate |
| The base type of predicate. | |
Public Member Functions | |
| WGEManagedGroupNode (boost::shared_ptr< WBoolFlag > active) | |
| Default constructor. | |
Public Member Functions inherited from WGEGroupNode | |
| WGEGroupNode () | |
| Default constructor. | |
| void | insert (osg::ref_ptr< osg::Node > node) |
| Adds the specified node to the child list of this node in a safe manner. | |
| void | remove (osg::ref_ptr< osg::Node > node) |
| Removes the specified node from this group in a thread safe manner. | |
| void | remove_if (boost::shared_ptr< WGEGroupNode::NodePredicate > predicate) |
| Removes a node if the specified predicate evaluates to true. | |
| void | clear () |
| Removes all children from this node. | |
Protected Member Functions | |
| virtual | ~WGEManagedGroupNode () |
| Destructor. | |
Protected Member Functions inherited from WGEGroupNode | |
| virtual | ~WGEGroupNode () |
| Destructor. | |
Additional Inherited Members | |
Protected Types inherited from WGEGroupNode | |
| enum | ChildOperationType { INSERT = 0, REMOVE, REMOVE_IF, CLEAR } |
| The type of operation to perform. More... | |
Protected Attributes inherited from WGEGroupNode | |
| osg::ref_ptr< SafeUpdaterCallback > | m_nodeUpdater |
| Node callback used to update this root node. | |
| std::queue< boost::shared_ptr < ChildOperation > > | m_childOperationQueue |
| Queue of childs that need to be added/removed during the next update cycle. | |
| boost::shared_mutex | m_childOperationQueueLock |
| Lock used for inserting and removing childs into the child insertion/removal queue. | |
| bool | m_childOperationQueueDirty |
| Flag denoting whether the m_childOperationQueue should be considered during the next update of the node. | |
| bool | m_removeAll |
| True whenever all child nodes should be removed. | |
This class adds some convenience methods to WGEGroupNode.
It can handle bool properties which switch the node on and off.
Definition at line 39 of file WGEManagedGroupNode.h.
| typedef osg::ref_ptr< const WGEManagedGroupNode > WGEManagedGroupNode::ConstSPtr |
Const shared pointer.
Definition at line 51 of file WGEManagedGroupNode.h.
| typedef osg::ref_ptr< WGEManagedGroupNode > WGEManagedGroupNode::SPtr |
Shared pointer.
Definition at line 46 of file WGEManagedGroupNode.h.
|
explicit |
Default constructor.
| active | the flag denoting the node to be activated ( if flag == true ) or turned off. |
Definition at line 28 of file WGEManagedGroupNode.cpp.
|
protectedvirtual |
Destructor.
Definition at line 39 of file WGEManagedGroupNode.cpp.
1.8.1