Xj3D VRML/X3D Code API

org.web3d.vrml.nodes.proto
Class ProtoScene

java.lang.Object
  extended byorg.web3d.vrml.lang.AbstractScene
      extended byorg.web3d.vrml.nodes.proto.ProtoScene
All Implemented Interfaces:
BasicScene

public class ProtoScene
extends AbstractScene

Implementation of the BasicScene interface that is used withing 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
ProtoScene(int major, int minor)
          Create an empty scene for the given spec version.
 
Method Summary
 void addRoute(ROUTE node)
          Add a new ROUTE instance to the internal list.
 void 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, getLoadedURI, getMetaData, getNodeFactory, getNodeTemplate, getNodeTemplates, getRootNode, getRoutes, getSpecificationMajorVersion, getSpecificationMinorVersion, getWorldRootURL, removeDEFNode, removeImportedNode, removeNode, removeTemplate, setLoadedURI, setNodeFactory, setRootNode, setWorldRootURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoScene

public ProtoScene(int major,
                  int minor)
Create an empty scene for the given spec version.

Parameters:
major - The major version number of this scene
minor - The minor version number of this scene
Method Detail

mergeScene

public void mergeScene(BasicScene sc)
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

public void addRoute(ROUTE node)
Add a new ROUTE instance to the internal list.

Parameters:
node - The new ROUTE instance to be added

removeRoute

public void removeRoute(ROUTE node)
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

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium