barsuift.simLife.j3d.tree
Class BasicTreeBranch3D
java.lang.Object
barsuift.simLife.j3d.tree.BasicTreeBranch3D
- All Implemented Interfaces:
- TreeBranch3D, Persistent<TreeBranch3DState>
public class BasicTreeBranch3D
- extends java.lang.Object
- implements TreeBranch3D
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 universeendPoint - indicative end point for the branchtreeBranch - tree branch data
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.