H3D::ParsableMField Class Reference

This is a field which value can be set by a string from the X3D parser. More...

#include <Field.h>

Inheritance diagram for H3D::ParsableMField:

Inheritance graph
List of all members.

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.

Detailed Description

This is a field which value can be set by a string from the X3D parser.

All ParsableFields values can be specified in X3D files.


Member Function Documentation

virtual string H3D::ParsableMField::getElementAsString size_t  element  )  [inline, virtual]
 

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 >.

virtual size_t H3D::ParsableMField::getSize  )  [pure virtual]
 

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 >.


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