|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
showStructure.UnitCell
public class UnitCell
| Field Summary |
|---|
| 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 | |
|---|---|
UnitCell()
Default constructor creates a simple cubic cell with dimension 1.0 |
|
UnitCell(int t,
float d)
Creates a cubic cell of arbitrary dimension |
|
UnitCell(int t,
float a,
float b,
float c)
Creates a cubic cell of arbitrary dimension |
|
| Method Summary | |
|---|---|
float |
getAlpha()
|
float |
getBeta()
|
float |
getCellA()
|
float |
getCellB()
|
float |
getCellC()
|
int |
getCellType()
Cell Types: 1 cubic (simple cubic) 2 body-centered cubic (bcc) 3 face-centered cubic (fcc) |
float |
getGamma()
|
javax.vecmath.Vector3f |
getPointTranslation(int idx)
Returns the virtual world translation of the specified point. |
void |
mulRotation(float x,
float y,
float z,
float a)
Multiplies the existing transform by the new rotation |
void |
mulTranslation(float x,
float y,
float z)
Multiplies the existing transform by the new translation |
void |
setFacesVisible(boolean s)
Sets the visibility of the unit cell faces |
void |
setLinesVisible(boolean s)
Sets the visibility of the unit cell lines |
void |
setRotation(float x,
float y,
float z,
float a)
Sets the UnitCell rotation |
void |
setTranslation(float x,
float y,
float z)
Sets the UnitCell translation. |
| 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, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnitCell()
public UnitCell(int t,
float d)
t - cell type (1 = sc, 2 = bcc, 3 = fcc)d - cell dimension
public UnitCell(int t,
float a,
float b,
float c)
t - cell type (1 = sc, 2 = bcc, 3 = fcc)a - cell a dimensionb - cell b dimensionc - cell c dimension| Method Detail |
|---|
public int getCellType()
public float getCellA()
public float getCellB()
public float getCellC()
public float getAlpha()
public float getBeta()
public float getGamma()
public javax.vecmath.Vector3f getPointTranslation(int idx)
idx - index of pointpublic void setFacesVisible(boolean s)
s - visibility statepublic void setLinesVisible(boolean s)
s - visibility state
public void setTranslation(float x,
float y,
float z)
x - y - z -
public void setRotation(float x,
float y,
float z,
float a)
x - x component of axis of rotationy - y component of axis of rotationz - z component of axis of rotationa - angle of rotation
public void mulRotation(float x,
float y,
float z,
float a)
public void mulTranslation(float x,
float y,
float z)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||