29 #ifndef __H3DSCRIPTNODE_H__
30 #define __H3DSCRIPTNODE_H__
53 virtual bool initialiseParser() {
54 name = getInstanceName();
58 virtual string getInstanceName() {
59 ostringstream namestr;
60 namestr <<
"H3DScriptNode_" <<
this;
64 virtual void loadScript(
const string &script_filename,
const string &script_content=
"" )= 0;
66 virtual Field* lookupField(
const string &_name )
const = 0;
75 void addNamedNode(
const string &_name,
Node *n );
79 int removeNamedNode(
const string &_name );
82 void clearNamedNodes();
86 Node *getNamedNode(
const string &_name );
91 typedef std::map< string, Node * > NamedNodes;
92 NamedNodes named_nodes;
95 static void removeNamedNodeCB(
Node *n,
void *data );
Contains the DEFNodes class.
Header file for X3DChildNode, X3D scene-graph node.
Header file for X3DUrlObject, X3D scene-graph node.
The Field class.
Definition: Field.h:46
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
This abstract node type indicates that the concrete nodes which are instantiated based on it may be u...
Definition: X3DChildNode.h:42
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
Provides a mapping between defined DEF names in X3D and the nodes they refer to.
Definition: DEFNodes.h:92
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194
The base class for script nodes.
Definition: H3DScriptNode.h:41
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: H3DScriptNode.h:89