#include <Field.h>
Inheritance diagram for H3D::ParsableMField:

Public Member Functions | |
| virtual size_t | getSize ()=0 |
| Set the value of the field given a string. | |
| virtual string | getElementAsString (size_t element) |
| Get the value of the field as a string. | |
| virtual void | addElementFromString (const string &s)=0 |
| Add a new element to an MField from a string value. | |
All ParsableFields values can be specified in X3D files.
|
|
Get the value of the field as a string. If the field contains multiple values the separator string is used between the values. Reimplemented in H3D::MField< Type >, H3D::MField< RGB >, H3D::MField< RGBA >, H3D::MField< Matrix3d >, H3D::MField< Matrix4d >, H3D::MField< H3DFloat >, H3D::MField< string >, H3D::MField< Matrix3f >, H3D::MField< Matrix4f >, H3D::MField< Vec2f >, H3D::MField< Vec3f >, H3D::MField< Vec2d >, H3D::MField< Vec4f >, H3D::MField< bool >, H3D::MField< H3DDouble >, H3D::MField< Vec3d >, H3D::MField< Vec4d >, H3D::MField< H3DInt32 >, H3D::MField< Quaternion >, and H3D::MField< Rotation >. |
|
|
Set the value of the field given a string. By default we try to parse the values according to the X3D/XML specification. Implemented in H3D::MField< Type >, H3D::MField< RGB >, H3D::MField< RGBA >, H3D::MField< Matrix3d >, H3D::MField< Matrix4d >, H3D::MField< H3DFloat >, H3D::MField< string >, H3D::MField< Matrix3f >, H3D::MField< Matrix4f >, H3D::MField< Vec2f >, H3D::MField< Vec3f >, H3D::MField< Vec2d >, H3D::MField< Vec4f >, H3D::MField< bool >, H3D::MField< H3DDouble >, H3D::MField< Vec3d >, H3D::MField< Vec4d >, H3D::MField< H3DInt32 >, H3D::MField< Quaternion >, and H3D::MField< Rotation >. |
1.4.5