|
OpenWalnut
1.2.5
|
This class contains a label layout for positioning labels at the side of the screen. More...
#include <WGEBorderLayout.h>
Inheritance diagram for WGEBorderLayout:Classes | |
| class | SafeUpdateCallback |
| Node callback to actually layout the objects. More... | |
Public Member Functions | |
| WGEBorderLayout () | |
| Default constructor. | |
| virtual | ~WGEBorderLayout () |
| Destructor. | |
| virtual void | addLayoutable (osg::ref_ptr< WGELabel > obj) |
| Adds the specified object to the list of layouted objects. | |
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 Attributes | |
| osg::ref_ptr< osg::Geode > | m_geode |
| The geode containing all drawables. | |
| osg::ref_ptr< osg::Geode > | m_lineGeode |
| Contains all lead lines. | |
| osg::ref_ptr< osg::Projection > | m_screen |
| The projection to the screen. | |
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. | |
Friends | |
| class | SafeUpdateCallback |
Additional Inherited Members | |
Public Types inherited from WGEGroupNode | |
| typedef WPredicateHelper::ArbitraryPredicateBase < osg::ref_ptr< osg::Node > const > | NodePredicate |
| The base type of predicate. | |
Protected Types inherited from WGEGroupNode | |
| enum | ChildOperationType { INSERT = 0, REMOVE, REMOVE_IF, CLEAR } |
| The type of operation to perform. More... | |
Protected Member Functions inherited from WGEGroupNode | |
| virtual | ~WGEGroupNode () |
| Destructor. | |
This class contains a label layout for positioning labels at the side of the screen.
There is a line from the point of interest to the label on the side of the screen.
Definition at line 41 of file WGEBorderLayout.h.
| WGEBorderLayout::WGEBorderLayout | ( | ) |
Default constructor.
Definition at line 32 of file WGEBorderLayout.cpp.
References WGEGroupNode::insert(), m_geode, m_lineGeode, and m_screen.
|
virtual |
Destructor.
Definition at line 62 of file WGEBorderLayout.cpp.
|
virtual |
Adds the specified object to the list of layouted objects.
| obj | the layoutable object. |
Definition at line 67 of file WGEBorderLayout.cpp.
References m_geode.
|
protected |
The geode containing all drawables.
Definition at line 70 of file WGEBorderLayout.h.
Referenced by addLayoutable(), and WGEBorderLayout().
|
protected |
Contains all lead lines.
Definition at line 75 of file WGEBorderLayout.h.
Referenced by WGEBorderLayout().
|
protected |
The projection to the screen.
Definition at line 80 of file WGEBorderLayout.h.
Referenced by WGEBorderLayout().
1.8.1