showHybrid
Class OrbitalSet

java.lang.Object
  extended by showHybrid.OrbitalSet

public class OrbitalSet
extends java.lang.Object


Field Summary
static int D
           
static int S
           
static int SP
           
static int SP2
           
static int SP3
           
 
Constructor Summary
OrbitalSet()
           
OrbitalSet(java.lang.String path, int orb)
          Creates a set of orbitals
 
Method Summary
 void destroy()
          Destroys Java3D objects and releases memory.
 javax.media.j3d.Switch getSwitch()
          Returns the Switch group for this orbital set.
 void setChildMask(java.util.BitSet b)
           
 void setOrbital(int n)
          Determines which orbital or atom is displayed.
 void setShowArrow(java.lang.Boolean s)
           
 void setShowOverlay(java.lang.Boolean s)
           
 void setWhichChild(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

S

public static int S

SP

public static int SP

SP2

public static int SP2

SP3

public static int SP3

D

public static int D
Constructor Detail

OrbitalSet

public OrbitalSet()

OrbitalSet

public OrbitalSet(java.lang.String path,
                  int orb)
Creates a set of orbitals

Parameters:
path - path from current directory to orbital VRML files
orb - index indicating which orbitals are to be loaded
Method Detail

destroy

public void destroy()
Destroys Java3D objects and releases memory.


getSwitch

public javax.media.j3d.Switch getSwitch()
Returns the Switch group for this orbital set. Element 0 is the atom TransformGroup. Remaining elements are arrows.

Returns:
Switch object

setChildMask

public void setChildMask(java.util.BitSet b)

setOrbital

public void setOrbital(int n)
Determines which orbital or atom is displayed. Orbitals and atoms are numbered 0 to n-1. If n < 0, no orbital is displayed.

Parameters:
n - number of arrow or orbital

setShowArrow

public void setShowArrow(java.lang.Boolean s)

setShowOverlay

public void setShowOverlay(java.lang.Boolean s)

setWhichChild

public void setWhichChild(int n)