H3D::X3DPrototypeInstance Class Reference
[Abstract nodes.]

This abstract node type is the base type for all prototype instances in the X3D system. More...

#include <X3DPrototypeInstance.h>

Inheritance diagram for H3D::X3DPrototypeInstance:

Inheritance graph
List of all members.

Public Member Functions

 X3DPrototypeInstance (Inst< SFNode > _metadata=0)
 Constructor.
virtual void render ()
 Renders prototyped_node.
virtual void setPrototypedNode (Node *n)
 Set the node that is the internal scenegraph of the prototype.
virtual NodegetPrototypedNode ()
 Get the node that is the internal scenegraph of the prototype.
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Protected Attributes

AutoRef< Nodeprototyped_node

Friends

class X3D::X3DSAX2Handlers
 We need to make it possible for X3DSAX2Handlers to set up routes to fields withing the X3DPrototypeNode, so it must have access to the id member variable.
class yy::VrmlParser
 And the same for the VRML parser.

Detailed Description

This abstract node type is the base type for all prototype instances in the X3D system.

Any user-defined nodes declared with PROTO or EXTERNPROTO are instantiated using this base type. An X3DPrototypeInstance may be place anywhere in the scene graph where it is legal to place the first node declared within the prototype instance. For example, if the base type of first node is X3DAppearanceNode, that prototype may be instantiated anywhere in the scene graph that allows for an appearance node system.


Friends And Related Function Documentation

friend class yy::VrmlParser [friend]
 

And the same for the VRML parser.

Bison code handles routing, so yy::vrml_parser must be a friend:


Generated on Thu Aug 24 12:40:25 2006 for H3D API by  doxygen 1.4.5