H3D::H3DDynamicFieldsObject Class Reference
[Abstract interface classes.]

This abstract interface class is the base class for all node types that specify arbitrary fields i.e. More...

#include <H3DDynamicFieldsObject.h>

Inheritance diagram for H3D::H3DDynamicFieldsObject:

Inheritance graph
List of all members.

Public Types

typedef AutoPtrVector< Field
>::const_iterator 
field_iterator

Public Member Functions

 H3DDynamicFieldsObject (H3DNodeDatabase *_database)
 Constructor.
virtual ~H3DDynamicFieldsObject ()
 Destructor. Virtual to make H3DDynamicFieldsObject a polymorphic type.
virtual bool addField (const string &name, const Field::AccessType &access, Field *field)
 Add a field to the Node.
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.

Protected Attributes

H3DNodeDatabasedatabase
 Remove a field from the Node.
AutoPtrVector< Fielddynamic_fields

Detailed Description

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.


Member Function Documentation

virtual bool H3D::H3DDynamicFieldsObject::addField const string &  name,
const Field::AccessType access,
Field field
[inline, virtual]
 

Add a field to the Node.

Parameters:
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.
Returns:
true on success, false otherwise.

Reimplemented in H3D::ComposedShader.


Member Data Documentation

H3DNodeDatabase* H3D::H3DDynamicFieldsObject::database [protected]
 

Remove a field from the Node.

Parameters:
name The name of the field to remove.
Returns:
true on success false otherwise.

Reimplemented in H3D::ComposedShader, H3D::PackagedShader, H3D::PrototypeInstance, H3D::ShaderProgram, and H3D::X3DPrototypeInstance.


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