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.
-
SceneReadNameTable()
-
-
SceneReadNameTable(InterfaceMappingTable)
-
-
addNodeName(String, Node)
- Add a named node to the table.
-
addPrototype(Prototype)
- Add a prototype to the table.
-
addRoute(Route)
-
-
clear()
- Clear any node name or prototype definitions.
-
getInterfaceMappings()
-
-
getPrototypes()
-
-
getRoutes()
-
-
resolveNodeName(String)
- Return the node with the specified name, or null if no
node with the name exists.
-
resolvePrototype(String)
- Return the prototype with the specified name, or null if no
prototype of that name exists.
-
toString()
-
SceneReadNameTable
public SceneReadNameTable()
SceneReadNameTable
public SceneReadNameTable(InterfaceMappingTable interfaceMappings)
clear
public void clear()
- Clear any node name or prototype definitions.
resolveNodeName
public Node resolveNodeName(String name)
- Return the node with the specified name, or null if no
node with the name exists.
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.
resolvePrototype
public Prototype resolvePrototype(String name)
- Return the prototype with the specified name, or null if no
prototype of that name exists.
addPrototype
public void addPrototype(Prototype proto)
- Add a prototype to the table. If a prototype with the specified
name already exists, it is replaced.
addRoute
public void addRoute(Route r)
getRoutes
public Enumeration getRoutes()
getPrototypes
public Enumeration getPrototypes()
getInterfaceMappings
public InterfaceMappingTable getInterfaceMappings()
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index