#include <SField.h>
Inheritance diagram for H3D::SField< Type >:

Public Types | |
| typedef Type | value_type |
| The type of the value member. | |
Public Member Functions | |
| SField () | |
| Constructor. | |
| SField (const Type &_value) | |
| Constructor. | |
| virtual int | setValueFromVoidPtr (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. | |
| virtual int | getValueAsVoidPtr (void *data, unsigned int len, int id=0) |
| Get the value of the data copied into a memory buffer. | |
| virtual unsigned int | valueTypeSize () |
| Returns the size in bytes of the value type the sfield encapsulates. | |
| virtual void | setValue (const Type &v, int id=0) |
| Set the value of the field. | |
| virtual const Type & | 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. | |
| virtual string | getValueAsString (const string &separator=" ") |
| Get the value of the field as a string. | |
| virtual string | getTypeName () |
| Returns a string name for this field type e.g. SFInt32. | |
Static Public Member Functions | |
| static string | classTypeName () |
| Returns a string name for this field type e.g. SFInt32. | |
Protected Member Functions | |
| virtual void | update () |
| Make the field up to date given that an event has occured. | |
Protected Attributes | |
| Type | value |
| The encapsulated value. | |
| Type | The type of the value. |
|
||||||||||||||||||||
|
Get the value of the data copied into a memory buffer.
Implements H3D::SFieldClass. |
|
||||||||||
|
Set the value of the field given a string. By default we try to parse the values according to the X3D/XML specification. Implements H3D::ParsableField. |
|
||||||||||||||||||||
|
Set the value of the field given a pointer to where the value of the field is.
Implements H3D::SFieldClass. |
1.4.5