org.jscience.chemistry.gui.extended.graphics3d
Class BondNode

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Group
              extended by javax.media.j3d.BranchGroup
                  extended by org.jscience.chemistry.gui.extended.graphics3d.BondNode

public class BondNode
extends javax.media.j3d.BranchGroup

DOCUMENT ME!


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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
protected BondNode(Bond b)
          Creates a new BondNode object.
 
Method Summary
protected static float calcAngle(javax.vecmath.Vector3f coor, javax.vecmath.Vector3f other)
          DOCUMENT ME!
protected  float calcDistance(Atom from, Atom to)
          DOCUMENT ME!
protected static float calcSign(javax.vecmath.Vector3f coor, javax.vecmath.Vector3f other)
          DOCUMENT ME!
static javax.media.j3d.Node createWire(Bond b)
          DOCUMENT ME!
protected static javax.vecmath.Vector3f getMiddleOfBond(Atom from, Atom to)
          DOCUMENT ME!
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, 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, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BondNode

protected BondNode(Bond b)
Creates a new BondNode object.

Parameters:
b - DOCUMENT ME!
Method Detail

createWire

public static javax.media.j3d.Node createWire(Bond b)
DOCUMENT ME!

Parameters:
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

calcDistance

protected float calcDistance(Atom from,
                             Atom to)
DOCUMENT ME!

Parameters:
from - DOCUMENT ME!
to - DOCUMENT ME!
Returns:
DOCUMENT ME!

getMiddleOfBond

protected static javax.vecmath.Vector3f getMiddleOfBond(Atom from,
                                                        Atom to)
DOCUMENT ME!

Parameters:
from - DOCUMENT ME!
to - DOCUMENT ME!
Returns:
DOCUMENT ME!

calcAngle

protected static float calcAngle(javax.vecmath.Vector3f coor,
                                 javax.vecmath.Vector3f other)
DOCUMENT ME!

Parameters:
coor - DOCUMENT ME!
other - DOCUMENT ME!
Returns:
DOCUMENT ME!

calcSign

protected static float calcSign(javax.vecmath.Vector3f coor,
                                javax.vecmath.Vector3f other)
DOCUMENT ME!

Parameters:
coor - DOCUMENT ME!
other - DOCUMENT ME!
Returns:
DOCUMENT ME!