H3D API
2.4.1
|
This abstract interface class is the base class for all classes that specify arbitrary fields. More...
#include <H3D/H3DDynamicFieldsObject.h>
Public Member Functions | |
virtual bool | addField (const string &name, const Field::AccessType &access, Field *field) |
Add a field to the Node. More... | |
virtual bool | removeField (const string &_name) |
Remove a field from the Node. More... | |
field_iterator | firstField () |
Get an iterator to the first of the dynamic fields. | |
field_iterator | endField () |
Get an iterator pointing to the end of the dynamic fields. | |
virtual void | clearFields () |
Remove all dynamic fields that have been previously added. | |
H3DDynamicFieldsObject () | |
Constructor. | |
This abstract interface class is the base class for all classes that specify arbitrary fields.
This abstract interface class is the base class for all node types that specify arbitrary fields i.e.
fields that can be defined e.g. from X3D as in a prototype declaration.
|
inlinevirtual |
Add a field to the Node.
name | The name of the field. |
access | The access type of the field. |
field | The field to add to the node. The ownership of the Field pointer is handed over to the Node and will be destructed when the Node is destructed. |
Reimplemented in H3D::X3DProgrammableShaderObject, H3D::ShaderProgram, H3D::Script, H3D::PackagedShader, H3D::ComposedShader, and H3D::ShaderConstants.
Referenced by H3D::Script::addField().
|
inlinevirtual |
Remove a field from the Node.
_name | The name of the field to remove. |
Reimplemented in H3D::X3DProgrammableShaderObject, H3D::ComposedShader, and H3D::ShaderConstants.
Referenced by H3D::X3DProgrammableShaderObject::removeField(), and H3D::PyNode::removeField().