OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WGEBorderLayout::SafeUpdateCallback Class Reference

Node callback to actually layout the objects. More...

#include <WGEBorderLayout.h>

+ Inheritance diagram for WGEBorderLayout::SafeUpdateCallback:
+ Collaboration diagram for WGEBorderLayout::SafeUpdateCallback:

Public Member Functions

 SafeUpdateCallback (osg::ref_ptr< WGEBorderLayout > layout)
 Constructor. More...
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 operator () - called during the update traversal. More...
 

Public Attributes

osg::ref_ptr< WGEBorderLayoutm_layouter
 The layouter owning this callback. More...
 

Detailed Description

Node callback to actually layout the objects.

Definition at line 81 of file WGEBorderLayout.h.

Constructor & Destructor Documentation

◆ SafeUpdateCallback()

WGEBorderLayout::SafeUpdateCallback::SafeUpdateCallback ( osg::ref_ptr< WGEBorderLayout layout)
inlineexplicit

Constructor.

Parameters
layoutjust set the creating layout as pointer for later reference.

Definition at line 89 of file WGEBorderLayout.h.

Member Function Documentation

◆ operator()()

void WGEBorderLayout::SafeUpdateCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual

operator () - called during the update traversal.

Parameters
nodethe osg node
nvthe node visitor

Definition at line 74 of file WGEBorderLayout.cpp.

References WGraphicsEngine::getGraphicsEngine(), and m_layouter.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_layouter

osg::ref_ptr< WGEBorderLayout > WGEBorderLayout::SafeUpdateCallback::m_layouter

The layouter owning this callback.

Todo:
All:(ebaum) the layoiter insance will never be freed -> cyclic dependency

Definition at line 105 of file WGEBorderLayout.h.

Referenced by operator()().


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