iicm.vrml.pw
Class ProtoInstance

java.lang.Object
  |
  +--iicm.vrml.pw.Node
        |
        +--iicm.vrml.pw.GroupNode
              |
              +--iicm.vrml.pw.ProtoInstance

public class ProtoInstance
extends GroupNode

ProtoInstance - instance of PROTO or EXTERNPROTO node


Fields inherited from class iicm.vrml.pw.GroupNode
addChildren, children, removeChildren
 
Fields inherited from class iicm.vrml.pw.Node
DEF_KEYWORD, EXTERNPROTO_KEYWORD, objname, PROTO_KEYWORD, ROUTE_KEYWORD, subfields, USE_KEYWORD, userdata
 
Method Summary
 void copyBody()
          copyBody. instantiate prototyped values (by copying the children subtree) for simple and efficient traversal.
 java.lang.String nodeName()
          the node's name
 void traverse(Traverser t)
          must call appropriate method of Traverser for node traversal
 
Methods inherited from class iicm.vrml.pw.GroupNode
getChildrenEnumerator, gotEventCB, readNodes, readNodes, writeNodes, writeSubfields
 
Methods inherited from class iicm.vrml.pw.Node
addRoute, deleteRoute, getEvent, readNode, traverseNode, writeNode, writeSubfield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nodeName

public java.lang.String nodeName()
Description copied from class: Node
the node's name
Overrides:
nodeName in class GroupNode

traverse

public void traverse(Traverser t)
Description copied from class: Node
must call appropriate method of Traverser for node traversal
Overrides:
traverse in class GroupNode

copyBody

public void copyBody()
copyBody. instantiate prototyped values (by copying the children subtree) for simple and efficient traversal. You only need to call copyBody for traversing the prototype like any other node using the actual values of the subfields: for only reading the fields and writing them back to the output you don't need it (writeNode works).