|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.terrain.roam.TreeNode
public class TreeNode
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.
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 |
---|
public static final int UNDEFINED
public static final int BASE_TO_BASE
public static final int LEFT_TO_RIGHT
public static final int RIGHT_TO_LEFT
Method Detail |
---|
public int getVisibility()
public static TreeNode getTreeNode()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |