j3d.org Code

org.j3d.terrain.roam
Class TreeNode

java.lang.Object
  extended by org.j3d.terrain.roam.TreeNode

public class TreeNode
extends java.lang.Object

Represents a single node of the triangle mesh of the patch.

A triangle is represented by the three sides described as left, right and base. This triangle is connected to neighbour triangles through these references and form part of the ROAM code. A triangle is defined in terms of an apex coordinate and left and right then based on the coordinates supplied. left and right do not necessarily correspond to real world left/right as you look down on the terrain.

Version:
$Revision: 2.4 $
Author:
Paul Byrne, Justin Couch

Field Summary
static int BASE_TO_BASE
          Base to base orientation of the edge split routine
static int LEFT_TO_RIGHT
          Left to right orientation of the edge split routine
static int RIGHT_TO_LEFT
          right to left orientation of the edge split routine
static int UNDEFINED
          The visibility status of this node in the tree is not known.
 
Method Summary
static TreeNode getTreeNode()
          Either return a node from the cache or if the cache is empty, return a new tree node.
 int getVisibility()
          Get the visibility state of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
The visibility status of this node in the tree is not known.

See Also:
Constant Field Values

BASE_TO_BASE

public static final int BASE_TO_BASE
Base to base orientation of the edge split routine

See Also:
Constant Field Values

LEFT_TO_RIGHT

public static final int LEFT_TO_RIGHT
Left to right orientation of the edge split routine

See Also:
Constant Field Values

RIGHT_TO_LEFT

public static final int RIGHT_TO_LEFT
right to left orientation of the edge split routine

See Also:
Constant Field Values
Method Detail

getVisibility

public int getVisibility()
Get the visibility state of this node.


getTreeNode

public static TreeNode getTreeNode()
Either return a node from the cache or if the cache is empty, return a new tree node.


j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org