#include <H3DNodeDatabase.h>
Public Types | |
| typedef map< string, FieldDBElement * > | FieldDBType |
| typedef map< string, H3DNodeDatabase * > | H3DNodeDatabaseType |
| typedef H3DNodeDatabaseType::const_iterator | NodeDatabaseConstIterator |
Public Member Functions | |
| H3DNodeDatabase (const string &_name, H3DCreateNodeFunc _createf, const type_info &_ti, H3DNodeDatabase *_parent=0) | |
| Constructor. | |
| H3DNodeDatabase (const type_info &_ti, H3DNodeDatabase *_parent=0) | |
| Unnamed constructor, for nodes that cannot be instantiated but instead act as base classes for other nodes. | |
| void | addField (FieldDBElement *f) |
| add a field to the node database entry | |
| Field * | getField (Node *n, const string &f) const |
| getField() will search the node's field database for a field matching the given name and returning a pointer to the field if found. | |
| void | initFields (Node *) const |
| initialise field names, field owner pointers and access restrictors. | |
| FieldDBConstIterator | fieldDBBegin () |
| Gets an iterator to the beginning first field in the H3DNodeDatabase. | |
| FieldDBConstIterator | fieldDBEnd () |
| Returns an iterator pointing at the end of fields in the H3DNodeDatabase. | |
| size_t | fieldDBSize () |
| Returns the number of fields in the H3DNodeDatabase. | |
Static Public Member Functions | |
| static H3DNodeDatabase * | lookupTypeId (const type_info &t) |
| Search the node database for an entry with a matching type_info structure. | |
| static H3DNodeDatabase * | lookupName (const string &name) |
| Search the node database for an entry with a matching name. | |
| static Node * | createNode (const string &name) |
| Create a new instance of a Node type. | |
| static NodeDatabaseConstIterator | begin () |
| Iterator to the first element in the database. | |
| static NodeDatabaseConstIterator | end () |
| Returns an iterator pointing at the end of the H3DNodeDatabase created. | |
Static Public Attributes | |
| static H3DNodeDatabaseType * | database |
| The database with all H3DNodeDatabase instances. | |
Classes | |
| class | FieldDBConstIterator |
| The FieldDBConstIterator is an iterator class used for iterating over the field instances in an H3DNodeDatabase. More... | |
Each node that is to be used via X3D file input must register itself in the database in order to be available to X3D. To register a static H3DNodeDatabase member variable must be defined in the node class with the (nodename, constructor) pair that is wanted.
|
|
Iterator to the first element in the database. Can be used to iterate over all H3DNodeDatabase instances that have been created. |
|
|
Create a new instance of a Node type.
|
|
|
Gets an iterator to the beginning first field in the H3DNodeDatabase. Can be used to iteratate through all the fields in the database. |
|
|
Initial value: The database with all H3DNodeDatabase instances.
|
1.4.5