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.

Constructor Index

 o ScenePrintNameTable()

Method Index

 o addNode(Node, String)
Add a named node to the table.
 o bumpInternalNameCount(String)
Increment the count of times the internal name NAME has been seen, and return the old count (starts at 0).
 o bumpUnnamedCount()
 o clear()
Clear any node name or prototype definitions.
 o getExternalNodeName(Node)
Return the external name of the specified node, if the node has already been seen.
 o nodeInstanceHasBeenSeen(NodeInstance)
Used by NodeInstance.print().
 o setNodeInstanceHasBeenSeen(NodeInstance)
Used by NodeInstance.print().

Constructors

 o ScenePrintNameTable
  public ScenePrintNameTable()

Methods

 o clear
  public void clear()
Clear any node name or prototype definitions.
 o getExternalNodeName
  public String getExternalNodeName(Node node)
Return the external name of the specified node, if the node has already been seen.
 o nodeInstanceHasBeenSeen
  public boolean nodeInstanceHasBeenSeen(NodeInstance inst)
Used by NodeInstance.print().
 o setNodeInstanceHasBeenSeen
  public void setNodeInstanceHasBeenSeen(NodeInstance inst)
Used by NodeInstance.print().
 o addNode
  public void addNode(Node node,
                      String name)
Add a named node to the table. If the node already exists, its name is replaced.
 o 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.
 o bumpUnnamedCount
  public int bumpUnnamedCount()

All Packages  Class Hierarchy  This Package  Previous  Next  Index