cct.j3d
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 cct.j3d.BondNode
All Implemented Interfaces:
java.lang.Cloneable

public class BondNode
extends javax.media.j3d.BranchGroup
implements java.lang.Cloneable

Title:

Description:

Copyright: Copyright (c) 2004

Company:


Field Summary
(package private)  int bondColoring
           
(package private)  int colorScheme
           
(package private)  javax.vecmath.Point3f coord
           
(package private)  javax.vecmath.Point3f[] coordinates
           
(package private)  float cylinderRadius
           
(package private)  javax.vecmath.Color3f defaultMonoColor
           
protected  boolean delete
           
(package private)  javax.media.j3d.Shape3D line_shape
           
(package private)  javax.media.j3d.LineArray lineBond
           
(package private)  int renderingStyle
           
(package private)  javax.media.j3d.BranchGroup rootBranch
           
(package private)  javax.media.j3d.Shape3D shape
           
 
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
BondNode()
           
BondNode(BondInterface b)
           
BondNode(BondInterface b, int bondFormat)
           
 
Method Summary
 java.lang.Object clone()
           
(package private)  com.sun.j3d.utils.geometry.Cylinder createCylinder(float radius, float height, javax.media.j3d.Appearance ap)
           
(package private)  javax.media.j3d.LineArray createLine()
           
(package private)  javax.media.j3d.TransformGroup createMonoCylinder(BondInterface b)
          Creates TransformGroup with a cylinder for monocolored bond
(package private)  javax.media.j3d.Appearance getAppearance(AtomInterface atom)
           
(package private)  javax.media.j3d.Shape3D getBicolorLine(BondInterface b)
           
 BondInterface getBond()
           
(package private)  javax.vecmath.Color3f getColor3f(AtomInterface atom)
           
(package private)  com.sun.j3d.utils.geometry.Cylinder getCylinder(int i)
           
 float getCylinderRadius()
           
(package private)  javax.media.j3d.TransformGroup getFirstCylinder(BondInterface b)
           
(package private)  javax.media.j3d.Shape3D getMonocolorLine(BondInterface b)
           
(package private)  javax.media.j3d.BranchGroup getRootBranch()
           
(package private)  javax.media.j3d.TransformGroup getSecondCylinder(BondInterface b)
           
 boolean isToDelete()
           
 void markForDeletion(boolean flag)
           
 void setBondColoring(int coloring)
           
 void setCylinderRadius(float radius)
           
 void updateBond()
           
 void updateBond(float[] a1, float[] a2)
           
(package private)  void updateBondColor()
           
(package private)  void updateBondRadius()
           
(package private)  void updateTransform3D(float[] origin_1, float[] origin_2)
           
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delete

protected boolean delete

bondColoring

int bondColoring

renderingStyle

int renderingStyle

colorScheme

int colorScheme

cylinderRadius

float cylinderRadius

rootBranch

javax.media.j3d.BranchGroup rootBranch

defaultMonoColor

javax.vecmath.Color3f defaultMonoColor

coord

javax.vecmath.Point3f coord

coordinates

javax.vecmath.Point3f[] coordinates

lineBond

javax.media.j3d.LineArray lineBond

line_shape

javax.media.j3d.Shape3D line_shape

shape

javax.media.j3d.Shape3D shape
Constructor Detail

BondNode

BondNode()

BondNode

BondNode(BondInterface b)

BondNode

BondNode(BondInterface b,
         int bondFormat)
Method Detail

getBond

public BondInterface getBond()

getMonocolorLine

javax.media.j3d.Shape3D getMonocolorLine(BondInterface b)

getBicolorLine

javax.media.j3d.Shape3D getBicolorLine(BondInterface b)

getSecondCylinder

javax.media.j3d.TransformGroup getSecondCylinder(BondInterface b)

getFirstCylinder

javax.media.j3d.TransformGroup getFirstCylinder(BondInterface b)

createMonoCylinder

javax.media.j3d.TransformGroup createMonoCylinder(BondInterface b)
Creates TransformGroup with a cylinder for monocolored bond

Parameters:
b - BondInterface
Returns:
TransformGroup

createLine

javax.media.j3d.LineArray createLine()

createCylinder

com.sun.j3d.utils.geometry.Cylinder createCylinder(float radius,
                                                   float height,
                                                   javax.media.j3d.Appearance ap)

getAppearance

javax.media.j3d.Appearance getAppearance(AtomInterface atom)

getColor3f

javax.vecmath.Color3f getColor3f(AtomInterface atom)

isToDelete

public boolean isToDelete()

markForDeletion

public void markForDeletion(boolean flag)

updateBond

public void updateBond()

updateBond

public void updateBond(float[] a1,
                       float[] a2)

getCylinder

com.sun.j3d.utils.geometry.Cylinder getCylinder(int i)

updateBondColor

void updateBondColor()

updateBondRadius

void updateBondRadius()

updateTransform3D

void updateTransform3D(float[] origin_1,
                       float[] origin_2)

setBondColoring

public void setBondColoring(int coloring)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getCylinderRadius

public float getCylinderRadius()

setCylinderRadius

public void setCylinderRadius(float radius)

getRootBranch

javax.media.j3d.BranchGroup getRootBranch()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException