Class dnx.lr.SceneReadNameTable
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.SceneReadNameTable

java.lang.Object
   |
   +----dnx.lr.SceneReadNameTable

public class SceneReadNameTable
extends Object
This holds some subsidiary information used during reading a scene graph from a VRML file. What this actually holds is the mapping (from names to nodes (as defined using DEF) and from names to prototypes (as defined using PROTO) so that references to nodes using USE, and instancings of the prototypes, can be resolved.

Constructor Index

 o SceneReadNameTable()
 o SceneReadNameTable(InterfaceMappingTable)

Method Index

 o addNodeName(String, Node)
Add a named node to the table.
 o addPrototype(Prototype)
Add a prototype to the table.
 o addRoute(Route)
 o clear()
Clear any node name or prototype definitions.
 o getInterfaceMappings()
 o getPrototypes()
 o getRoutes()
 o resolveNodeName(String)
Return the node with the specified name, or null if no node with the name exists.
 o resolvePrototype(String)
Return the prototype with the specified name, or null if no prototype of that name exists.
 o toString()

Constructors

 o SceneReadNameTable
  public SceneReadNameTable()
 o SceneReadNameTable
  public SceneReadNameTable(InterfaceMappingTable interfaceMappings)

Methods

 o clear
  public void clear()
Clear any node name or prototype definitions.
 o resolveNodeName
  public Node resolveNodeName(String name)
Return the node with the specified name, or null if no node with the name exists.
 o addNodeName
  public void addNodeName(String name,
                          Node node)
Add a named node to the table. If a node with the specified name already exists, it is replaced.
 o resolvePrototype
  public Prototype resolvePrototype(String name)
Return the prototype with the specified name, or null if no prototype of that name exists.
 o addPrototype
  public void addPrototype(Prototype proto)
Add a prototype to the table. If a prototype with the specified name already exists, it is replaced.
 o addRoute
  public void addRoute(Route r)
 o getRoutes
  public Enumeration getRoutes()
 o getPrototypes
  public Enumeration getPrototypes()
 o getInterfaceMappings
  public InterfaceMappingTable getInterfaceMappings()
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index