Xj3D VRML/X3D Code API

org.web3d.vrml.renderer
Class CRROUTE

java.lang.Object
  extended byorg.web3d.vrml.renderer.CRROUTE
All Implemented Interfaces:
ROUTE

public class CRROUTE
extends java.lang.Object
implements ROUTE

A common ROUTE implementation for all renderers.

Version:
$Revision: 1.4 $
Author:
Alan Hudson

Constructor Summary
CRROUTE(VRMLNodeType sn, int si, VRMLNodeType dn, int di)
          Create a new representation of a Java 3D route.
 
Method Summary
 int getDestinationIndex()
          Get the index of the destination field of this route
 VRMLNode getDestinationNode()
          Get the reference to the destination node of this route
 int getSourceIndex()
          Get the index of the source field of this route
 VRMLNode getSourceNode()
          Get the reference to the source node of this route
 java.lang.String toString()
          Print out a string representation of this route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CRROUTE

public CRROUTE(VRMLNodeType sn,
               int si,
               VRMLNodeType dn,
               int di)
Create a new representation of a Java 3D route.

Parameters:
sn - The source node reference
si - The field index of the source node
dn - The destination node reference
di - The field index of the destination node
Method Detail

getSourceNode

public VRMLNode getSourceNode()
Get the reference to the source node of this route

Specified by:
getSourceNode in interface ROUTE
Returns:
The source node reference

getSourceIndex

public int getSourceIndex()
Get the index of the source field of this route

Specified by:
getSourceIndex in interface ROUTE
Returns:
The source node field index

getDestinationNode

public VRMLNode getDestinationNode()
Get the reference to the destination node of this route

Specified by:
getDestinationNode in interface ROUTE
Returns:
The destination node reference

getDestinationIndex

public int getDestinationIndex()
Get the index of the destination field of this route

Specified by:
getDestinationIndex in interface ROUTE
Returns:
The destination node field index

toString

public java.lang.String toString()
Print out a string representation of this route.

Returns:
A string representation of the route

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium