Class dnx.lr.ScenePrintNameTable
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.ScenePrintNameTable
java.lang.Object
|
+----dnx.lr.ScenePrintNameTable
- public class ScenePrintNameTable
- 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.
-
ScenePrintNameTable()
-
-
addNode(Node, String)
- Add a named node to the table.
-
bumpInternalNameCount(String)
- Increment the count of times the internal name NAME has been
seen, and return the old count (starts at 0).
-
bumpUnnamedCount()
-
-
clear()
- Clear any node name or prototype definitions.
-
getExternalNodeName(Node)
- Return the external name of the specified node, if the node
has already been seen.
-
nodeInstanceHasBeenSeen(NodeInstance)
- Used by NodeInstance.print().
-
setNodeInstanceHasBeenSeen(NodeInstance)
- Used by NodeInstance.print().
ScenePrintNameTable
public ScenePrintNameTable()
clear
public void clear()
- Clear any node name or prototype definitions.
getExternalNodeName
public String getExternalNodeName(Node node)
- Return the external name of the specified node, if the node
has already been seen.
nodeInstanceHasBeenSeen
public boolean nodeInstanceHasBeenSeen(NodeInstance inst)
- Used by NodeInstance.print().
setNodeInstanceHasBeenSeen
public void setNodeInstanceHasBeenSeen(NodeInstance inst)
- Used by NodeInstance.print().
addNode
public void addNode(Node node,
String name)
- Add a named node to the table. If the node already exists,
its name is replaced.
bumpInternalNameCount
public int bumpInternalNameCount(String name)
- Increment the count of times the internal name NAME has been
seen, and return the old count (starts at 0). It's allowable to
call this on a name that has never been seen before.
bumpUnnamedCount
public int bumpUnnamedCount()
All Packages Class Hierarchy This Package Previous Next Index