Class BindingSiteGraphic

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Group
              extended byjavax.media.j3d.BranchGroup
                  extended byBindingSiteGraphic

public class BindingSiteGraphic
extends javax.media.j3d.BranchGroup

Extends branchgroup to make a conic bindingsite graphic: BindingSiteGraphic | TransformGroup | cone


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
BindingSiteGraphic()
          Constructs a default BindingSiteGraphic
BindingSiteGraphic(BindingSite bs)
          Constructs a AssemblyGraphic according to the position and rotation of bs
 
Method Summary
 javax.media.j3d.BranchGroup branchGroup()
          Return BindingSiteGraphic as a BranchGroup
 void colorBlue()
           
 void colorGreen()
          Changes the color of this BindSiteGraphic to Green
 void colorPink()
           
 void colorYellow()
           
 javax.media.j3d.Transform3D getTransform()
          Gets the Transform3D of this BindingSiteGraphic
 double length()
          Gets the length of this BindingSite
 void updateLocation(javax.vecmath.Quat4d rot, javax.vecmath.Vector3d pos)
          Updates this BindingSiteGraphic location as specificed by rot and pos
 
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

BindingSiteGraphic

public BindingSiteGraphic()
Constructs a default BindingSiteGraphic


BindingSiteGraphic

public BindingSiteGraphic(BindingSite bs)
Constructs a AssemblyGraphic according to the position and rotation of bs

Method Detail

updateLocation

public void updateLocation(javax.vecmath.Quat4d rot,
                           javax.vecmath.Vector3d pos)
Updates this BindingSiteGraphic location as specificed by rot and pos

Parameters:
rot - Quat4d the new rotation
pos - Vector3d the new position

branchGroup

public javax.media.j3d.BranchGroup branchGroup()
Return BindingSiteGraphic as a BranchGroup

Returns:
BranchGroup

getTransform

public javax.media.j3d.Transform3D getTransform()
Gets the Transform3D of this BindingSiteGraphic

Returns:
Transform3D

length

public double length()
Gets the length of this BindingSite

Returns:
double

colorGreen

public void colorGreen()
Changes the color of this BindSiteGraphic to Green


colorPink

public void colorPink()

colorBlue

public void colorBlue()

colorYellow

public void colorYellow()