H3D::FitToBoxTransform Class Reference
[H3D specific Node classes.]

The FitToBoxTransform node is a MatrixTransform that is used when one wants to transform a part of a scene into a specific region in the coordinate space. More...

#include <FitToBoxTransform.h>

Inheritance diagram for H3D::FitToBoxTransform:

Inheritance graph
List of all members.

Public Member Functions

 FitToBoxTransform (Inst< MFChild > _addChildren=0, Inst< MFChild > _removeChildren=0, Inst< MFChild > _children=0, Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< SFVec3f > _bboxCenter=0, Inst< SFVec3f > _bboxSize=0, Inst< SFTransformedBound > _transformedBound=0, Inst< SFMatrix4f > _matrix=0, Inst< SFVec3f > _boxSize=0, Inst< SFVec3f > _boxCenter=0, Inst< SFBool > _uniformScalingOnly=0, Inst< SFBool > _active=0)
 Constructor.

Public Attributes

auto_ptr< SFVec3fboxSize
 The size of the box we want to transform into.
auto_ptr< SFVec3fboxCenter
 The center of the box we want to transform into.
auto_ptr< SFBooluniformScalingOnly
 Determines if uniform scaling only should be used, or if nonuniform scaling is allowed.
auto_ptr< SFBoolactive
 Determines if the transformation matrix should be updated or not.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Classes

class  SFMatrix4f
 We specialize the SFMatrix4f field to that update itself from a SFBound field and two SFVec3f fields. More...

Detailed Description

The FitToBoxTransform node is a MatrixTransform that is used when one wants to transform a part of a scene into a specific region in the coordinate space.

The region to transform into is defined by a box using the boxCenter and boxSize fields. The bounding box of the FitToBoxTransform node is then used to determine the scale and translation needed to fit that bounding box into the box defined. The uniformScalingOnly determines if the scaling should be uniform or if nonuniform scaling can be used. Nonuniform scaling will fit the children more accurately into the box, while uniform scaling will preserve the ratio of the dimentions of the objects. The active field can be used to control if the transformation matrix should be updated or not. If active is true the matrix will be updated.

Internal routes:
FitToBoxTransform.dot


Member Data Documentation

auto_ptr< SFBool > H3D::FitToBoxTransform::active
 

Determines if the transformation matrix should be updated or not.

Access type: inputOutput
Default value: TRUE

FitToBoxTransform_active.dot

auto_ptr< SFVec3f > H3D::FitToBoxTransform::boxCenter
 

The center of the box we want to transform into.

Access type: inputOutput
Default value: Vec3f( 0.1, 0.1, 0.1 )

FitToBoxTransform_boxCenter.dot

auto_ptr< SFVec3f > H3D::FitToBoxTransform::boxSize
 

The size of the box we want to transform into.

Access type: inputOutput
Default value: Vec3f( 0, 0, 0 )
Valid range: >0

FitToBoxTransform_boxSize.dot

auto_ptr< SFBool > H3D::FitToBoxTransform::uniformScalingOnly
 

Determines if uniform scaling only should be used, or if nonuniform scaling is allowed.

Access type: inputOutput
Default value: FALSE

FitToBoxTransform_uniformScalingOnly.dot


Generated on Thu Aug 24 12:39:10 2006 for H3D API by  doxygen 1.4.5