barsuift.simLife.j3d.tree
Class BasicTreeBranch3D

java.lang.Object
  extended by barsuift.simLife.j3d.tree.BasicTreeBranch3D
All Implemented Interfaces:
TreeBranch3D, Persistent<TreeBranch3DState>

public class BasicTreeBranch3D
extends java.lang.Object
implements TreeBranch3D


Constructor Summary
BasicTreeBranch3D(Universe3D universe3D, TreeBranch3DState state, TreeBranch treeBranch)
          Creates a 3D tree branch, with data from the model one, and going towards to given end point.
 
Method Summary
 java.util.List<TreeBranchPart3D> getBranchParts()
           
 javax.vecmath.Point3d getEndPoint()
           
 javax.media.j3d.Group getGroup()
           
 TreeBranch3DState getState()
           
 javax.vecmath.Vector3d getTranslationVector()
           
 void synchronize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTreeBranch3D

public BasicTreeBranch3D(Universe3D universe3D,
                         TreeBranch3DState state,
                         TreeBranch treeBranch)
Creates a 3D tree branch, with data from the model one, and going towards to given end point. The end point is indicative, and the actual branch end point may differ somehow from the given one, as the branch is created with some randomization.

Parameters:
universe3D - the 3D universe
endPoint - indicative end point for the branch
treeBranch - tree branch data
Method Detail

getEndPoint

public javax.vecmath.Point3d getEndPoint()
Specified by:
getEndPoint in interface TreeBranch3D

getTranslationVector

public javax.vecmath.Vector3d getTranslationVector()
Specified by:
getTranslationVector in interface TreeBranch3D

getState

public TreeBranch3DState getState()
Specified by:
getState in interface Persistent<TreeBranch3DState>

synchronize

public void synchronize()
Specified by:
synchronize in interface Persistent<TreeBranch3DState>

getGroup

public javax.media.j3d.Group getGroup()
Specified by:
getGroup in interface TreeBranch3D

getBranchParts

public java.util.List<TreeBranchPart3D> getBranchParts()
Specified by:
getBranchParts in interface TreeBranch3D


Copyright © 2010. All Rights Reserved.