OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
BoundsCallback Class Reference

Update matrix transform according to bounds of some node. More...

+ Inheritance diagram for BoundsCallback:
+ Collaboration diagram for BoundsCallback:

Public Member Functions

 BoundsCallback (osg::ref_ptr< osg::Node > node)
 Create and init. More...
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 Callback method called by the NodeVisitor when visiting a node. More...
 

Private Attributes

osg::ref_ptr< osg::Node > m_node
 The node to use as template for the resulting bbox. More...
 

Detailed Description

Update matrix transform according to bounds of some node.

Definition at line 255 of file WGEUtils.cpp.

Constructor & Destructor Documentation

◆ BoundsCallback()

BoundsCallback::BoundsCallback ( osg::ref_ptr< osg::Node >  node)
inlineexplicit

Create and init.

Parameters
nodethe node

Definition at line 263 of file WGEUtils.cpp.

Member Function Documentation

◆ operator()()

virtual void BoundsCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
inlinevirtual

Callback method called by the NodeVisitor when visiting a node.

Parameters
nodethe node handled
nvthe visitor

Definition at line 274 of file WGEUtils.cpp.

References m_node.

Member Data Documentation

◆ m_node

osg::ref_ptr< osg::Node > BoundsCallback::m_node
private

The node to use as template for the resulting bbox.

Definition at line 292 of file WGEUtils.cpp.

Referenced by operator()().


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