H3D::MatrixTransform::SFTransformedBound Class Reference

SFTransformedBound maintains the routes from the owner Node's bound and matrix field to the contained TransformedBoxBound instance's boxBound and matrix field. More...

#include <H3D/MatrixTransform.h>

Inheritance diagram for H3D::MatrixTransform::SFTransformedBound:

Inheritance graph

List of all members.

Public Member Functions

 ~SFTransformedBound ()
 Destructor.

Protected Member Functions

virtual void onAdd (Bound *b)
 Set up the routes from the owner Node's bound and matrix field to the contained TransformedBoxBound instance's boxBound and matrix field.
virtual void onRemove (Bound *b)
 Remove the routes that were set up in onAdd().


Detailed Description

SFTransformedBound maintains the routes from the owner Node's bound and matrix field to the contained TransformedBoxBound instance's boxBound and matrix field.

The contained Bound object is updated from the given SFMatrix4f and SFBound fields. If the SFBound contains a InfiniteBound this field also will contain a InfiniteBound. Otherwise it will contain a TransformedBoxBound .

routes_in[0] is the matrix field of the MatrixTransform. routes_in[1] is the bound field of the MatrixTransform.


Constructor & Destructor Documentation

H3D::MatrixTransform::SFTransformedBound::~SFTransformedBound (  )  [inline]

Destructor.

Sets the value to NULL in order to get the correct onRemove () function to be called upon destruction. Must be done in all fields that override onRemove ().


Member Function Documentation

virtual void H3D::MatrixTransform::SFTransformedBound::onAdd ( Bound b  )  [inline, protected, virtual]

Set up the routes from the owner Node's bound and matrix field to the contained TransformedBoxBound instance's boxBound and matrix field.

References H3D::H3DBoundedObject::bound, H3D::TransformedBoxBound::boxBound, H3D::TransformedBoxBound::matrix, and H3D::MatrixTransform::matrix.


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

Generated on Fri Nov 7 10:30:35 2008 for H3D API by  doxygen 1.5.7