forest3D
Class Crown3D

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Leaf
                    |
                    +--javax.media.j3d.Shape3D
                          |
                          +--forest3D.Crown3D

public class Crown3D
extends javax.media.j3d.Shape3D


Field Summary
static int FILL
           
(package private)  java.util.ArrayList indexSet
           
(package private)  int[] indices
           
static int LEAVE
           
(package private)  java.util.ArrayList normalSet
           
(package private)  boolean nullCrown
           
(package private)  TreeBasic treeB
           
(package private)  int type
           
(package private)  java.util.ArrayList vertSet
           
static int WIREFRAME
           
 
Fields inherited from class javax.media.j3d.Shape3D
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE, id
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Fields inherited from class javax.media.j3d.SceneGraphObject
capabilities, nodeHashtable, retained
 
Constructor Summary
Crown3D()
           
Crown3D(TreeBasic t)
           
Crown3D(TreeBasic t, int crownType)
           
 
Method Summary
(package private) static float getRadian(float deg)
           
(package private) static float getY(float x, float z, float r, float h)
           
 
Methods inherited from class javax.media.j3d.Shape3D
addGeometry, cloneNode, createRetained, duplicateAttributes, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, insertGeometry, intersect, intersect, numGeometries, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
 
Methods inherited from class javax.media.j3d.Node
checkDuplicateNode, checkForCycle, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
checkForLiveOrCompiled, clearCapability, clearLive, duplicateSceneGraphObject, getCapability, getNodeComponent, getUserData, isCompiled, isLive, isLiveOrCompiled, setCapability, setCompiled, setLive, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIREFRAME

public static final int WIREFRAME

FILL

public static final int FILL

LEAVE

public static final int LEAVE

type

int type

vertSet

java.util.ArrayList vertSet

indexSet

java.util.ArrayList indexSet

normalSet

java.util.ArrayList normalSet

indices

int[] indices

treeB

TreeBasic treeB

nullCrown

boolean nullCrown
Constructor Detail

Crown3D

public Crown3D()

Crown3D

public Crown3D(TreeBasic t)

Crown3D

public Crown3D(TreeBasic t,
               int crownType)
Method Detail

getY

static float getY(float x,
                  float z,
                  float r,
                  float h)

getRadian

static float getRadian(float deg)