showStructure
Class HexagonalCell

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 showStructure.UnitCell
                      extended by showStructure.HexagonalCell

public class HexagonalCell
extends UnitCell


Field Summary
 
Fields inherited from class showStructure.UnitCell
alpha, ambientColor, beta, cellA, cellB, cellC, cellPts, cellTG, cellType, emissiveColor, faceDiffuseColor, faceRA, gamma, lineRA, shininess, specularColor
 
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
HexagonalCell()
          Default constructor creates a hexagonal cell with a = b = 1.000, c = 1.633
HexagonalCell(int t, float d)
          Creates a cubic cell of arbitrary dimension a = b = d
HexagonalCell(int t, float a, float c)
          Creates a cubic cell of arbitrary dimension
 
Method Summary
 
Methods inherited from class showStructure.UnitCell
getAlpha, getBeta, getCellA, getCellB, getCellC, getCellPts, getCellType, getGamma, getPointTranslation, mulRotation, mulTranslation, setCellAngles, setCellSize, setCellType, setFacesVisible, setLinesVisible, setRotation, setTranslation
 
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

HexagonalCell

public HexagonalCell()
Default constructor creates a hexagonal cell with a = b = 1.000, c = 1.633


HexagonalCell

public HexagonalCell(int t,
                     float d)
Creates a cubic cell of arbitrary dimension a = b = d

Parameters:
d - cell dimension for a and b

HexagonalCell

public HexagonalCell(int t,
                     float a,
                     float c)
Creates a cubic cell of arbitrary dimension

Parameters:
t - cell type (1 = sc, 2 = bcc, 3 = fcc)
a - cell a dimension
c - cell c dimension