|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
AssemblyGraphic
Extends branchGroup to make a complete Assembly graphic. AssemblyGraphic | TransformGroup / | \ ... SubunitGraphics ........
| Field Summary |
| Fields inherited from class javax.media.j3d.BranchGroup |
ALLOW_DETACH |
| Fields inherited from class javax.media.j3d.Group |
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE |
| 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 |
| Constructor Summary | |
AssemblyGraphic()
Constructs a default AssemblyGraphic with a default detachable BranchGroup |
|
AssemblyGraphic(Assembly asm)
Constructs a AssemblyGraphic with a detachable childWritable BranchGroup. |
|
| Method Summary | |
void |
addSubunit(Subunit sub)
Adds the graphic of Subunit sub to the assembly graphic |
javax.media.j3d.BranchGroup |
branchGroup()
Return AssemblyGraphic as a BranchGroup |
javax.vecmath.Vector3d |
getBindingSitePos(Subunit sub,
BindingSite bs)
Returns position of the binding site in relation to the real axis |
javax.vecmath.Quat4d |
getBindingSiteRot(Subunit sub,
BindingSite bs)
Returns the rotation of bs in relation to the real axis |
javax.vecmath.Vector3d |
getPos()
Gets the translation component(position) of this AssemblyGraphic |
javax.vecmath.Quat4d |
getRot()
Gets the rotation component of this AssemblyGraphic |
javax.media.j3d.Transform3D |
getTransform()
Gets the Transform3D of this AssemblyGraphic |
void |
realRotate(javax.vecmath.Quat4d rot)
|
void |
rotate(javax.vecmath.AxisAngle4d newrot)
|
void |
rotate(javax.vecmath.Quat4d rot)
Rotates this AssemblyGraphic by rot |
void |
setPos(javax.vecmath.Vector3d newpos)
Sets position of this AssemblyGraphic to newpos |
void |
setRot(javax.vecmath.AxisAngle4d newrot)
|
void |
setRot(javax.vecmath.Quat4d newrot)
Sets rotation of this AssemblyGraphic to newrot |
void |
updateLocation(javax.vecmath.Quat4d rot,
javax.vecmath.Vector3d pos)
Updates the whole assembly graphic's new location specificed by rot and pos |
void |
updateLocation(javax.media.j3d.Transform3D tr)
Updates the whole assembly graphic's new location specificed Transform3D tr |
| Methods inherited from class javax.media.j3d.BranchGroup |
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, pickClosest |
| Methods inherited from class javax.media.j3d.Group |
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
| Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AssemblyGraphic()
public AssemblyGraphic(Assembly asm)
| Method Detail |
public void updateLocation(javax.vecmath.Quat4d rot,
javax.vecmath.Vector3d pos)
rot - Quat4d the rotation of new locationpos - Vector3d the position of new locationpublic void updateLocation(javax.media.j3d.Transform3D tr)
tr - Transform3Dpublic void addSubunit(Subunit sub)
sub - Subunit to be added to Assemblypublic javax.media.j3d.BranchGroup branchGroup()
public javax.vecmath.Vector3d getBindingSitePos(Subunit sub,
BindingSite bs)
sub - Subunitbs - BindingSite of sub
public javax.vecmath.Quat4d getBindingSiteRot(Subunit sub,
BindingSite bs)
sub - Subunitbs - BindingSite of sub
public javax.vecmath.Quat4d getRot()
public javax.vecmath.Vector3d getPos()
public void setPos(javax.vecmath.Vector3d newpos)
newpos - Vector3dpublic void setRot(javax.vecmath.Quat4d newrot)
newrot - Quat4dpublic void setRot(javax.vecmath.AxisAngle4d newrot)
public void realRotate(javax.vecmath.Quat4d rot)
public void rotate(javax.vecmath.Quat4d rot)
rot - Quat4dpublic void rotate(javax.vecmath.AxisAngle4d newrot)
public javax.media.j3d.Transform3D getTransform()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||