Interface VRMLNodeTemplate

All Known Subinterfaces:
VRMLExternProtoDeclare, VRMLProtoDeclare
All Known Implementing Classes:
AbstractProto, CRExternPrototypeDecl, ExternalPrototypeDecl, NRExternPrototypeDecl, OGLExternPrototypeDecl, ProtoInstancePlaceHolder, PrototypeDecl

public interface VRMLNodeTemplate
Denotes a node which allows it's fields to be defined in code - namely scripts and protos.

This interface allows a node to add and remove nodes from it's definition. The interface compliments an ordinary node type. The normal nodes will allow you to set the values of a field, this allows you to change their definition rather than set or query the values.

Due to the assumptions of the event model implementation of using index to name a given field. Deleting a field just removes it from the index. An index value cannot be reused by placing another field at that position. Adding fields appends them to the list. If an API to this allows the insertion of nodes then it must layer that capability over this node keeping track of logical versus actual index lists.

Version:
$Revision: 1.8 $
Author:
Justin Couch