ColorSchemeCollective
public static class ConfigFromFileLAMMPS.ColorSchemeDeviation extends ColorScheme implements ColorSchemeCollective
ColorScheme.Simple
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected java.awt.Color[] |
colors |
|
protected Vector |
dr |
|
protected Vector[] |
edges |
|
protected Vector |
r0 |
|
protected Vector[] |
rescaledCoords0 |
|
protected double |
rNbr |
|
protected Vector[] |
scaledCoords0 |
|
protected Tensor |
t |
DEFAULT_ATOM_COLOR, defaultColor
Constructor | Description |
---|---|
ColorSchemeDeviation(Box box,
Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
colorAllAtoms() |
Determine color of all atoms.
|
java.awt.Color |
getAtomColor(IAtom a) |
|
Vector |
getDisplacement(IAtom a) |
|
double |
getRelativeDisplacement(IAtom a) |
|
void |
setLattice(Vector[] latticeEdges,
Vector[] latticeCoords) |
getDefaultColor, main, setDefaultColor
protected final Vector[] scaledCoords0
protected final Vector[] rescaledCoords0
protected final Box box
protected final Vector dr
protected final java.awt.Color[] colors
protected final Vector[] edges
protected final Tensor t
protected final Vector r0
protected double rNbr
public void colorAllAtoms()
ColorSchemeCollective
colorAllAtoms
in interface ColorSchemeCollective
public double getRelativeDisplacement(IAtom a)
public java.awt.Color getAtomColor(IAtom a)
getAtomColor
in class ColorScheme