Package org.web3d.vrml.renderer.ogl
Class OGLExternProtoBuilder
java.lang.Object
org.web3d.vrml.renderer.CRExternProtoBuilder
org.web3d.vrml.renderer.ogl.OGLExternProtoBuilder
- All Implemented Interfaces:
BinaryContentHandler
,ContentHandler
,ProtoHandler
,RouteHandler
,ScriptHandler
,StringContentHandler
A SAV interface for dealing with building a single extern proto.
The builder is designed to create a single proto. However, that single proto may well have nested protos as part of it, so we must deal with that too.
- Version:
- $Revision: 1.11 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.CRExternProtoBuilder
errorReporter
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new default instance of the scene builder. -
Method Summary
Modifier and TypeMethodDescriptioncreateDecl
(String name, VRMLNodeFactory fac, int majorVersion, int minorVersion, NodeTemplateToInstanceCreator creator) Create a declaration suitable for filling in as a new proto.Methods inherited from class org.web3d.vrml.renderer.CRExternProtoBuilder
componentDecl, endDocument, endExternProtoDecl, endField, endNode, endProtoBody, endProtoDecl, endScriptDecl, exportDecl, externProtoURI, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, getPrototype, importDecl, metaDecl, newProto, profileDecl, protoFieldDecl, protoIsDecl, reset, routeDecl, scriptFieldDecl, setDocumentLocator, setErrorReporter, setFrameStateManager, setGlobals, setLoadRequirements, startDocument, startExternProtoDecl, startField, startNode, startProtoBody, startProtoDecl, startScriptDecl, useDecl
-
Constructor Details
-
OGLExternProtoBuilder
Create a new default instance of the scene builder. This uses the default factory for nodes non-renderable nodes.- Parameters:
fac
- The factory to use for creating the instances- Throws:
NullPointerException
- The factory reference is null
-
-
Method Details
-
createDecl
public CRExternPrototypeDecl createDecl(String name, VRMLNodeFactory fac, int majorVersion, int minorVersion, NodeTemplateToInstanceCreator creator) Create a declaration suitable for filling in as a new proto.- Specified by:
createDecl
in classCRExternProtoBuilder
- Parameters:
name
- The name applied to the proto decl in the filefac
- The factory to use for creating the instancesmajorVersion
- The major version number of this sceneminorVersion
- The minor version number of this scenecreator
- The node creator for generating instances of ourself- Returns:
-