showStructure
Class PointGroup

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.PointGroup

public class PointGroup
extends javax.media.j3d.BranchGroup


Field Summary
protected  javax.vecmath.Color3f ambientColor
           
protected  javax.vecmath.Color3f emissiveColor
           
protected  javax.vecmath.Color3f faceDiffuseColor
           
protected  javax.media.j3d.RenderingAttributes pointRA
           
protected  javax.vecmath.Point3f[] points
           
protected  javax.media.j3d.TransformGroup pointTG
           
protected  float shininess
           
protected  javax.vecmath.Color3f 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
PointGroup()
          Do not use default constructor
PointGroup(float r, int nx, int ny)
          Creates a single layer of lattice points for a closest-packed structure
 
Method Summary
 void setPointsVisible(boolean s)
          Sets the visibility of the lattice points.
 void setRotation(float x, float y, float z, float a)
          Set rotation for the entire group.
 void setTranslation(float x, float y, float z)
          Set the translation for the entire group.
 
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
 

Field Detail

pointTG

protected javax.media.j3d.TransformGroup pointTG

points

protected javax.vecmath.Point3f[] points

pointRA

protected javax.media.j3d.RenderingAttributes pointRA

ambientColor

protected javax.vecmath.Color3f ambientColor

faceDiffuseColor

protected javax.vecmath.Color3f faceDiffuseColor

emissiveColor

protected javax.vecmath.Color3f emissiveColor

specularColor

protected javax.vecmath.Color3f specularColor

shininess

protected float shininess
Constructor Detail

PointGroup

public PointGroup()
Do not use default constructor


PointGroup

public PointGroup(float r,
                  int nx,
                  int ny)
Creates a single layer of lattice points for a closest-packed structure

Parameters:
r - atom radius
nx - number of points along x axis
ny - number of points along y axis
Method Detail

setPointsVisible

public void setPointsVisible(boolean s)
Sets the visibility of the lattice points.

Parameters:
s - visibility state

setRotation

public void setRotation(float x,
                        float y,
                        float z,
                        float a)
Set rotation for the entire group.


setTranslation

public void setTranslation(float x,
                           float y,
                           float z)
Set the translation for the entire group.