H3D::ParsableField 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::ParsableField:

Inheritance graph
List of all members.

Public Member Functions

virtual void setValueFromString (const string &s)=0
 Set the value of the field given a string.
virtual string getValueAsString (const string &separator=" ")
 Get the value of the field as a string.

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::ParsableField::getValueAsString const string &  separator = " "  )  [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::MFBool, H3D::MField< Type >, H3D::MFString, H3D::SFBool, H3D::SField< 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 >, H3D::MField< Rotation >, H3D::SField< RGB >, H3D::SField< RGBA >, H3D::SField< Matrix3d >, H3D::SField< Matrix4d >, H3D::SField< H3DFloat >, H3D::SField< string >, H3D::SField< Matrix3f >, H3D::SField< Matrix4f >, H3D::SField< Vec2f >, H3D::SField< Vec3f >, H3D::SField< bool >, H3D::SField< Vec2d >, H3D::SField< Vec4f >, H3D::SField< H3DDouble >, H3D::SField< Vec3d >, H3D::SField< Vec4d >, H3D::SField< Quaternion >, H3D::SField< H3DInt32 >, and H3D::SField< Rotation >.

virtual void H3D::ParsableField::setValueFromString const string &  s  )  [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::SField< 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 >, H3D::MField< Rotation >, H3D::SField< RGB >, H3D::SField< RGBA >, H3D::SField< Matrix3d >, H3D::SField< Matrix4d >, H3D::SField< H3DFloat >, H3D::SField< string >, H3D::SField< Matrix3f >, H3D::SField< Matrix4f >, H3D::SField< Vec2f >, H3D::SField< Vec3f >, H3D::SField< bool >, H3D::SField< Vec2d >, H3D::SField< Vec4f >, H3D::SField< H3DDouble >, H3D::SField< Vec3d >, H3D::SField< Vec4d >, H3D::SField< Quaternion >, H3D::SField< H3DInt32 >, and H3D::SField< Rotation >.


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