OpenWalnut  1.4.0
Public Member Functions | Private Attributes
BoundsCallback Class Reference

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

+ Inheritance diagram for BoundsCallback:

List of all members.

Public Member Functions

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

Private Attributes

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

Detailed Description

Update matrix transform according to bounds of some node.

Definition at line 255 of file WGEUtils.cpp.


Constructor & Destructor Documentation

BoundsCallback::BoundsCallback ( osg::ref_ptr< osg::Node >  node) [inline, explicit]

Create and init.

Parameters:
nodethe node

Definition at line 263 of file WGEUtils.cpp.


Member Function Documentation

virtual void BoundsCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
) [inline, virtual]

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

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: