|
H3D API
2.4.1
|
Base class for all fields created with the SField template. More...
#include <H3D/SField.h>

Public Member Functions | |
| virtual | ~SFieldClass () |
| Virtual destructor. | |
| virtual int | setValueFromVoidPtr (void *data, unsigned int size, int id=0) |
| virtual int | getValueAsVoidPtr (void *data, unsigned int size, int id=0)=0 |
| Get the value of the data copied into a memory buffer. More... | |
| virtual unsigned int | valueTypeSize ()=0 |
| Returns the size in bytes of the value type the sfield encapsulates. | |
| virtual int | setValueFromVoidPtr (const void *data, unsigned int size, int id=0)=0 |
| Set the value of the field given a pointer to where the value of the field is. More... | |
Base class for all fields created with the SField template.
|
pure virtual |
Get the value of the data copied into a memory buffer.
| data | Buffer to copy the data into. |
| size | The size of the buffer. |
| id | Id of the node calling this function. Used to check access type. |
Implemented in H3D::SField< Type >, H3D::SField< Matrix3d >, H3D::SField< RGBA >, H3D::SField< RGB >, H3D::SField< Matrix4d >, H3D::SField< H3DFloat >, H3D::SField< string >, H3D::SField< Matrix3f >, H3D::SField< Matrix4f >, H3D::SField< Vec2f >, H3D::SField< Vec3f >, H3D::SField< Vec4f >, H3D::SField< Vec2d >, H3D::SField< H3DDouble >, H3D::SField< bool >, H3D::SField< Vec3d >, H3D::SField< Vec4d >, H3D::SField< Quaternion >, H3D::SField< H3DInt32 >, and H3D::SField< Rotation >.
|
pure virtual |
Set the value of the field given a pointer to where the value of the field is.
| data | A pointer to the data. |
| size | The size in bytes of the value stored in data. |
| id | Id of the node calling this function. Used to check access type. |
Implemented in H3D::SField< Type >, H3D::SField< Matrix3d >, H3D::SField< RGBA >, H3D::SField< RGB >, H3D::SField< Matrix4d >, H3D::SField< H3DFloat >, H3D::SField< string >, H3D::SField< Matrix3f >, H3D::SField< Matrix4f >, H3D::SField< Vec2f >, H3D::SField< Vec3f >, H3D::SField< Vec4f >, H3D::SField< Vec2d >, H3D::SField< H3DDouble >, H3D::SField< bool >, H3D::SField< Vec3d >, H3D::SField< Vec4d >, H3D::SField< Quaternion >, H3D::SField< H3DInt32 >, and H3D::SField< Rotation >.
|
inlinevirtual |