H3D API
2.4.1
|
We specialize the SFMatrix4f field to that update itself from a SFBound field and two SFVec3f fields. More...
#include <H3D/FitToBoxTransform.h>
Additional Inherited Members | |
![]() | |
typedef Matrix4f | value_type |
The type of the value member. | |
![]() | |
SField () | |
Constructor. | |
SField (const Matrix4f &_value) | |
Constructor. | |
virtual int | setValueFromVoidPtr (const void *data, unsigned int len, int id=0) |
Set the value of the field given a pointer to where the value of the field is. More... | |
virtual int | getValueAsVoidPtr (void *data, unsigned int len, int id=0) |
Get the value of the data copied into a memory buffer. More... | |
virtual unsigned int | valueTypeSize () |
Returns the size in bytes of the value type the sfield encapsulates. | |
virtual void | setValue (const Matrix4f &v, int id=0) |
Set the value of the field. | |
virtual const Matrix4f & | getValue (int id=0) |
Get the value of the field. | |
virtual void | setValueFromString (const string &s) |
Set the value of the field given a string. More... | |
virtual string | getValueAsString (const string &=" ") |
Get the value of the field as a string. | |
virtual string | getTypeName () |
Returns a string name for this field type e.g. SFInt32. | |
![]() | |
virtual | ~SFieldClass () |
Virtual destructor. | |
virtual int | setValueFromVoidPtr (void *data, unsigned int size, int id=0) |
![]() | |
static string | classTypeName () |
Returns a string name for this field type e.g. SFInt32. | |
![]() | |
void | checkFieldType (Field *f, int index) |
Function for checking that a field is of a correct type given type specification according to the TypedField template arguments. More... | |
void | checkTemplateArguments () |
Function for checking that a field given TypedField type specification is valid. More... | |
![]() | |
void | checkFieldType (Field *f, int index) |
Function for checking that a field is of a correct type given type specification according to the TypedField template arguments. More... | |
void | checkTemplateArguments () |
Function for checking that a field given TypedField type specification is valid. More... | |
![]() | |
Matrix4f | value |
The encapsulated value. | |
We specialize the SFMatrix4f field to that update itself from a SFBound field and two SFVec3f fields.
If the SFBound contains a BoxBound the result will be a transform so that the bounding box will fit into the box defined by the SFVec3f fields. Otherwise no transformations are done.
routes_in[0] is the boxSize field of the FitToBoxTransform containing the field. routes_in[1] is the BoxCenter field of the FitToBoxTransform. routes_in[2] is the bound field of the FitToBoxTransform. routes_in[3] is the uniformScalingOnly field of the FitToBoxTransform. routes_in[4] is the active field of the FitToBoxTransform.