cct.j3d
Class AtomNode

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

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

Title:

Description:

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private)  javax.media.j3d.Appearance aAppear
           
(package private)  AtomInterface atom
           
(package private)  javax.vecmath.Color3f atomColor
           
(package private)  com.sun.j3d.utils.geometry.Sphere atomicSphere
           
(package private)  javax.media.j3d.Material atomMaterial
           
(package private)  javax.media.j3d.PointArray atomPoint
           
(package private)  javax.media.j3d.Shape3D atomShape
           
(package private)  javax.media.j3d.ColoringAttributes ca
           
(package private) static int defaultNumberDivisions
           
(package private)  boolean highlighted
           
(package private) static float highlightPointSize
           
(package private)  int numberDivisions
           
(package private)  javax.media.j3d.TransformGroup objTransform
           
(package private)  boolean pointAntialiasing
           
(package private)  javax.media.j3d.PointAttributes pointAttributes
           
(package private)  float pointSize
           
(package private)  javax.media.j3d.PolygonAttributes polyAppear
           
(package private)  int renderingStyle
           
(package private)  javax.media.j3d.BranchGroup rootBranch
           
(package private)  float sphereRadius
           
(package private)  javax.media.j3d.Transform3D t3d
           
(package private)  boolean visible
           
(package private)  float[] xyz
           
 
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
AtomNode(AtomInterface atom)
           
AtomNode(AtomInterface _atom, int divisions)
           
AtomNode(float radius, float x, float y, float z, int divisions, javax.vecmath.Color3f color, javax.media.j3d.Material material)
           
 
Method Summary
 java.lang.Object clone()
           
static javax.vecmath.Color3f getAtomColor(AtomInterface a)
           
 com.sun.j3d.utils.geometry.Sphere getAtomicSphere()
           
 float getAtomicSphereRadius()
           
static float getAtomicSphereRadius(AtomInterface atom)
          returns sphere radius for drawing an atom
 AtomInterface getAtomInterface()
           
 javax.vecmath.Color3f getColor3f()
           
 javax.media.j3d.Material getMaterial()
           
static int getRenderingStyle(AtomInterface a)
           
 void highlightAtom(boolean highlight)
           
 boolean isHighlighted()
           
 boolean isVisible()
           
(package private)  void renderPointIfNecessary()
           
 void setAtomColor(java.awt.Color new_color)
           
 void setAtomColor(javax.vecmath.Color3f new_color, javax.media.j3d.Material new_material)
           
 void setAtomicCoordinates(AtomInterface atom)
           
 void setAtomicCoordinates(float[] coord)
           
 void setAtomicSphereRadius(float radius)
           
 
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

defaultNumberDivisions

static int defaultNumberDivisions

rootBranch

javax.media.j3d.BranchGroup rootBranch

atom

AtomInterface atom

objTransform

javax.media.j3d.TransformGroup objTransform

t3d

javax.media.j3d.Transform3D t3d

ca

javax.media.j3d.ColoringAttributes ca

aAppear

javax.media.j3d.Appearance aAppear

polyAppear

javax.media.j3d.PolygonAttributes polyAppear

atomicSphere

com.sun.j3d.utils.geometry.Sphere atomicSphere

atomColor

javax.vecmath.Color3f atomColor

sphereRadius

float sphereRadius

numberDivisions

int numberDivisions

renderingStyle

int renderingStyle

atomMaterial

javax.media.j3d.Material atomMaterial

xyz

float[] xyz

atomPoint

javax.media.j3d.PointArray atomPoint

pointAttributes

javax.media.j3d.PointAttributes pointAttributes

pointSize

float pointSize

highlightPointSize

static float highlightPointSize

pointAntialiasing

boolean pointAntialiasing

atomShape

javax.media.j3d.Shape3D atomShape

visible

boolean visible

highlighted

boolean highlighted
Constructor Detail

AtomNode

public AtomNode(AtomInterface atom)

AtomNode

public AtomNode(AtomInterface _atom,
                int divisions)

AtomNode

public AtomNode(float radius,
                float x,
                float y,
                float z,
                int divisions,
                javax.vecmath.Color3f color,
                javax.media.j3d.Material material)
Method Detail

isVisible

public boolean isVisible()

renderPointIfNecessary

void renderPointIfNecessary()

getAtomicSphere

public com.sun.j3d.utils.geometry.Sphere getAtomicSphere()

getAtomicSphereRadius

public static float getAtomicSphereRadius(AtomInterface atom)
returns sphere radius for drawing an atom

Parameters:
atom - AtomInterface
Returns:
float

getAtomInterface

public AtomInterface getAtomInterface()

getAtomicSphereRadius

public float getAtomicSphereRadius()

getMaterial

public javax.media.j3d.Material getMaterial()

setAtomicSphereRadius

public void setAtomicSphereRadius(float radius)

setAtomColor

public void setAtomColor(javax.vecmath.Color3f new_color,
                         javax.media.j3d.Material new_material)

setAtomColor

public void setAtomColor(java.awt.Color new_color)

getColor3f

public javax.vecmath.Color3f getColor3f()

setAtomicCoordinates

public void setAtomicCoordinates(AtomInterface atom)

setAtomicCoordinates

public void setAtomicCoordinates(float[] coord)

getRenderingStyle

public static int getRenderingStyle(AtomInterface a)

getAtomColor

public static javax.vecmath.Color3f getAtomColor(AtomInterface a)

isHighlighted

public boolean isHighlighted()

highlightAtom

public void highlightAtom(boolean highlight)

clone

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