#include <FitToBoxTransform.h>
Inheritance diagram for H3D::FitToBoxTransform:

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< SFVec3f > | boxSize |
| The size of the box we want to transform into. | |
| auto_ptr< SFVec3f > | boxCenter |
| The center of the box we want to transform into. | |
| auto_ptr< SFBool > | uniformScalingOnly |
| Determines if uniform scaling only should be used, or if nonuniform scaling is allowed. | |
| auto_ptr< SFBool > | active |
| 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... | |
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.
|
|
Determines if the transformation matrix should be updated or not.
Access type: inputOutput
|
|
|
The center of the box we want to transform into.
Access type: inputOutput
|
|
|
The size of the box we want to transform into.
Access type: inputOutput
|
|
|
Determines if uniform scaling only should be used, or if nonuniform scaling is allowed.
Access type: inputOutput
|
1.4.5