Package org.web3d.vrml.nodes.proto
Class ProtoScene
java.lang.Object
org.web3d.vrml.lang.AbstractScene
org.web3d.vrml.nodes.proto.ProtoScene
- All Implemented Interfaces:
BasicScene
Implementation of the
BasicScene
interface that
is used within protos.- Version:
- $Revision: 1.3 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.lang.AbstractScene
allNodes, loadedURI, majorVersion, metaData, minorVersion, nodeFactory, rootNode, routeList, templateList, templateMap, worldURL
-
Constructor Summary
ConstructorsConstructorDescriptionProtoScene
(int major, int minor) Create an empty scene for the given spec version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new ROUTE instance to the internal list.Utility method to get the profile name for this scenevoid
mergeScene
(BasicScene sc) Import the contents of the given scene into this scene.void
removeRoute
(ROUTE node) Remove a route instance from the internal list.Methods inherited from class org.web3d.vrml.lang.AbstractScene
addDEFNode, addImportedNode, addNode, addTemplate, getByPrimaryType, getBySecondaryType, getDEFNodes, getImports, getLayerId, getLoadedURI, getMetaData, getNodeFactory, getNodeTemplate, getNodeTemplates, getRootNode, getRoutes, getSpecificationMajorVersion, getSpecificationMinorVersion, getWorldRootURL, removeDEFNode, removeImportedNode, removeNode, removeTemplate, setLayerId, setLoadedURI, setNodeFactory, setRootNode, setWorldRootURL
-
Constructor Details
-
ProtoScene
public ProtoScene(int major, int minor) Create an empty scene for the given spec version.- Parameters:
major
- The major version number of this sceneminor
- The minor version number of this scene
-
-
Method Details
-
mergeScene
Import the contents of the given scene into this scene. Used to compose a scene from lower -level nested protos and in particular the X3D SAI handling.- Parameters:
sc
- The scene to import
-
addRoute
Add a new ROUTE instance to the internal list.- Parameters:
node
- The new ROUTE instance to be added
-
removeRoute
Remove a route instance from the internal list. If the list doesn't know about this instance, it is quietly ignored.- Parameters:
node
- The ROUTE to remove
-
getProfileName
Utility method to get the profile name for this scene- Returns:
- Profile name
-