All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.util.VrmlTrace

java.lang.Object
   |
   +----vlc.vrml.external.util.VrmlTrace

public class VrmlTrace
extends Object
VermelTrap VRML 97 debugger

Version:
0.6 Beta 2 Copyright 1997 The Virtual Light Company under the GNU LGPL

The latest information and bugs in VermelTrap can be found at http://www.vlc.com.au/VermelTrap/

This class is designed to be inserted into a VrmlScene at any point and forms a formatted string that represents the scene graph existing below that node.

This version is designed for use with the External Authoring Interface. To use the class simply include it in your import line and then you have one of two options;

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o VrmlTrace()
Create a default VermelTrap.
 o VrmlTrace(Node)
Create the tracer and set the root node to the given node.

Method Index

 o setRootNode(Node)
Set the root node to a new value.
 o toString()
Take the nominated root node and print out the scene graph that exists underneath it.
 o toString(Node)
Take the nominated node and print out the scene graph that exists underneath it.

Constructors

 o VrmlTrace
 public VrmlTrace()
Create a default VermelTrap. The root node is set to null

 o VrmlTrace
 public VrmlTrace(Node rootNode)
Create the tracer and set the root node to the given node.

Parameters:
rootNode - A reference to a Node that will be used as the root of the tracing

Methods

 o setRootNode
 public void setRootNode(Node node)
Set the root node to a new value. This can be anything - even null

Parameters:
node - The new node to use as the root.
 o toString
 public String toString()
Take the nominated root node and print out the scene graph that exists underneath it. It works on a recursive system, so it will trace to the depth that you require.

If the root node is null then the string "No root Node defined" is returned.

Returns:
A formatted string representing the scene graph.
Overrides:
toString in class Object
 o toString
 public static String toString(Node node)
Take the nominated node and print out the scene graph that exists underneath it. It works on a recursive system, so it will trace to the depth that you require.

If the root node is null then the string "Supplied root node is null" is returned. If a root node is already defined from previous calls to this class, it is ignored when this method is callled.

Returns:
A formatted string representing the scene graph.

All Packages  Class Hierarchy  This Package  Previous  Next  Index