Class CRExternProtoCreator

java.lang.Object
org.web3d.vrml.renderer.CRExternProtoCreator

public abstract class CRExternProtoCreator extends Object
A class that is used to create stub instances of extern protos from their definitions.

The creator strips the definition apart and builds a runtime node based on the details and the node factory provided. The creator can handle one instance at a time, although it will correctly parse and build nested proto declarations without extra effort.

The implementation is designed to be derived by a concrete instance and should never be created directly. This derived class should implement a method

   public RendererProtoInstance createInstanceExternalPrototypeDecl proto);
 
This method takes the declaration and creates the true proto instance, that extends CRProtoInstance. This instance is then passed to the protected createInstance() method of this class, which then does all the hard work of building the correct instance.
Version:
$Revision: 1.5 $
Author:
Alan Hudson, Justin Couch