public class AtomSetCollection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
allowMultiple |
(package private) boolean |
applySymmetryToBonds |
private int |
atomCount |
private Atom[] |
atoms |
private int[] |
atomSetAtomCounts |
private int[] |
atomSetAtomIndexes |
private java.util.Map<java.lang.String,java.lang.Object>[] |
atomSetAuxiliaryInfo |
private int[] |
atomSetBondCounts |
private java.util.Map<java.lang.String,java.lang.Object> |
atomSetCollectionAuxiliaryInfo |
private int |
atomSetCount |
private int[] |
atomSetNumbers |
private java.util.Map<java.lang.Object,java.lang.Integer> |
atomSymbolicMap |
private int |
baseSymmetryAtomCount |
private int |
bondCount |
(package private) int |
bondCount0 |
(package private) int |
bondIndex0 |
private Bond[] |
bonds |
BS |
bsAtoms |
BS |
bsStructuredModels |
(package private) P3[] |
cartesians |
private boolean |
centroidPacked |
(package private) boolean |
checkSpecial |
private java.lang.String |
collectionName |
(package private) int[] |
connectLast |
(package private) int |
connectNextAtomIndex |
(package private) int |
connectNextAtomSet |
boolean |
coordinatesAreFractional |
private int |
currentAtomSetIndex |
private boolean |
doCentroidUnitCell |
(package private) boolean |
doFixPeriodic |
(package private) boolean |
doNormalize |
(package private) boolean |
doPackUnitCell |
private int |
dtype |
java.lang.String |
errorMessage |
private java.lang.String |
fileTypeName |
float[] |
fmatSupercell |
private static int |
GLOBAL_CONECT |
static int |
GLOBAL_FRACTCOORD |
static int |
GLOBAL_ISPDB |
static int |
GLOBAL_SYMMETRY |
static int |
GLOBAL_UNITCELLS |
private static java.lang.String[] |
globalBooleans |
boolean |
haveAnisou |
(package private) boolean |
haveMappedSerials |
(package private) boolean |
haveUnitCell |
(package private) boolean |
isTrajectory |
private int[] |
latticeCells |
private P3i |
maxXYZ |
private P3i |
maxXYZ0 |
private P3i |
minXYZ |
private P3i |
minXYZ0 |
float[] |
notionalUnitCell |
static java.lang.String[] |
notionalUnitcellTags |
private P3 |
ptOffset |
P3 |
ptSupercell |
private P3 |
ptTemp |
private P3 |
ptTemp1 |
private P3 |
ptTemp2 |
(package private) AtomSetCollectionReader |
reader |
private JmolList<AtomSetCollectionReader> |
readerList |
private float |
rmaxx |
private float |
rmaxy |
private float |
rmaxz |
private float |
rminx |
private float |
rminy |
private float |
rminz |
private int |
structureCount |
private Structure[] |
structures |
(package private) SymmetryInterface |
symmetry |
(package private) float |
symmetryRange |
private JmolList<java.lang.String> |
trajectoryNames |
private int |
trajectoryStepCount |
private JmolList<P3[]> |
trajectorySteps |
P3 |
unitCellOffset |
private V3[] |
unitCellTranslations |
(package private) JmolList<int[]> |
vConnect |
private JmolList<V3[]> |
vibrationSteps |
Constructor and Description |
---|
AtomSetCollection(java.lang.String fileTypeName,
AtomSetCollectionReader reader,
AtomSetCollection[] array,
JmolList<?> list) |
Modifier and Type | Method and Description |
---|---|
void |
addAtom(Atom atom) |
void |
addAtomWithMappedName(Atom atom) |
void |
addAtomWithMappedSerialNumber(Atom atom) |
void |
addBond(Bond bond) |
void |
addConnection(int[] is) |
Atom |
addNewAtom() |
Bond |
addNewBond(int atomIndex1,
int atomIndex2) |
Bond |
addNewBondFromNames(java.lang.String atomName1,
java.lang.String atomName2,
int order) |
Bond |
addNewBondWithMappedSerialNumbers(int atomSerial1,
int atomSerial2,
int order) |
Bond |
addNewBondWithOrder(int atomIndex1,
int atomIndex2,
int order) |
(package private) Bond |
addNewSingleBondFromNames(java.lang.String atomName1,
java.lang.String atomName2) |
(package private) boolean |
addSpaceGroupOperation(java.lang.String xyz) |
void |
addStructure(Structure structure) |
private void |
addTrajectoryStep() |
void |
addVibrationVector(int iatom,
float x,
float y,
float z) |
void |
addVibrationVectorWithSymmetry(int iatom,
float vx,
float vy,
float vz,
boolean withSymmetry) |
private void |
appendAtomProperties(int nTimes) |
void |
appendAtomSetCollection(int collectionIndex,
AtomSetCollection collection)
Appends an AtomSetCollection
|
private void |
appendAtomSetCollectionList(JmolList<?> list) |
private void |
applyAllSymmetry() |
(package private) void |
applySymmetry() |
void |
applySymmetryBio(JmolList<Matrix4f> biomts,
float[] notionalUnitCell,
boolean applySymmetryToBonds,
java.lang.String filter) |
private void |
applySymmetryLattice(int maxX,
int maxY,
int maxZ) |
(package private) void |
applySymmetryUsing(SymmetryInterface symmetry) |
void |
centralize() |
void |
clearGlobalBoolean(int globalIndex) |
void |
clearSymbolicMap() |
(package private) void |
cloneAtomSetProperties(int index)
Clones the properties of an atom set and associated it with the
current atom set.
|
void |
cloneFirstAtomSet(int atomCount) |
void |
cloneFirstAtomSetWithBonds(int nBonds) |
void |
cloneLastAtomSet() |
void |
cloneLastAtomSetFromPoints(int atomCount,
P3[] pts) |
void |
cloneLastAtomSetProperties()
Clones the properties of the last atom set and associates it
with the current atom set.
|
void |
connectAll(int maxSerial,
boolean isConnectStateBug) |
private void |
connectAllBad(int maxSerial) |
void |
createAtomSerialMap() |
void |
discardPreviousAtoms() |
void |
finalizeStructures() |
private void |
finalizeSymmetry(int iAtomFirst,
int noSymmetryCount) |
private void |
finalizeTrajectory() |
void |
finalizeTrajectoryAs(JmolList<P3[]> trajectorySteps,
JmolList<V3[]> vibrationSteps) |
(package private) void |
finish() |
private static P3 |
fixPeriodic(P3 pt,
P3 pt0) |
private static float |
fixPoint(float x,
float x0) |
(package private) void |
freeze(boolean reverseModels) |
float[] |
getAnisoBorU(Atom atom) |
Atom |
getAtom(int i) |
int |
getAtomCount() |
int |
getAtomIndexFromName(java.lang.String atomName) |
int |
getAtomIndexFromSerial(int serialNumber) |
Atom[] |
getAtoms() |
int |
getAtomSetAtomCount(int i) |
int |
getAtomSetAtomIndex(int i) |
(package private) java.util.Map<java.lang.String,java.lang.Object> |
getAtomSetAuxiliaryInfo(int atomSetIndex) |
java.lang.Object |
getAtomSetAuxiliaryInfoValue(int index,
java.lang.String key) |
int |
getAtomSetBondCount(int i) |
java.lang.Object |
getAtomSetCollectionAuxiliaryInfo(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.Object> |
getAtomSetCollectionAuxiliaryInfoMap() |
int |
getAtomSetCount() |
(package private) java.lang.String |
getAtomSetName(int atomSetIndex) |
(package private) int |
getAtomSetNumber(int atomSetIndex) |
Bond |
getBond(int i) |
int |
getBondCount() |
java.lang.String[][] |
getBondList() |
Bond[] |
getBonds() |
java.lang.String |
getCollectionName() |
int |
getCurrentAtomSetIndex() |
java.lang.String |
getFileTypeName() |
int |
getFirstAtomSetAtomCount() |
(package private) boolean |
getGlobalBoolean(int globalIndex) |
int |
getHydrogenAtomCount() |
int |
getLastAtomSetAtomCount() |
int |
getLastAtomSetAtomIndex() |
private void |
getList(boolean isAltLoc) |
private int |
getMapIndex(java.lang.Object nameOrNum) |
int |
getStructureCount() |
Structure[] |
getStructures() |
SymmetryInterface |
getSymmetry() |
private boolean |
isInSymmetryRange(P3 c) |
private static boolean |
isWithinCell(int dtype,
P3 pt,
int minX,
int maxX,
int minY,
int maxY,
int minZ,
int maxZ) |
private void |
mapMostRecentAtomName() |
private void |
mapMostRecentAtomSerialNumber() |
void |
mapPartialCharge(java.lang.String atomName,
float charge) |
(package private) void |
mergeTrajectories(AtomSetCollection a) |
void |
newAtomSet() |
void |
newAtomSetClear(boolean doClearMap) |
(package private) Atom |
newCloneAtom(Atom atom) |
void |
removeAtomSet(int imodel)
note that sets must be iterated from LAST to FIRST
|
void |
removeCurrentAtomSet() |
private void |
reverseArray(int[] a) |
private void |
reverseAtomSets() |
private static void |
reverseList(JmolList<?> list) |
private void |
reverseObject(java.lang.Object[] o) |
private void |
reverseSets(AtomSetObject[] o,
int n) |
void |
setAnisoBorU(Atom atom,
float[] data,
int type) |
java.util.Properties |
setAtomNames(java.util.Properties atomIdNames) |
void |
setAtomSetAtomProperty(java.lang.String key,
java.lang.String data,
int atomSetIndex) |
void |
setAtomSetAuxiliaryInfo(java.lang.String key,
java.lang.Object value)
Sets auxiliary information for the AtomSet
|
void |
setAtomSetAuxiliaryInfoForSet(java.lang.String key,
java.lang.Object value,
int atomSetIndex)
Sets auxiliary information for an AtomSet
|
void |
setAtomSetCollectionAuxiliaryInfo(java.lang.String key,
java.lang.Object value) |
boolean |
setAtomSetCollectionPartialCharges(java.lang.String auxKey)
Sets the partial atomic charges based on atomSetCollection auxiliary info
|
void |
setAtomSetEnergy(java.lang.String energyString,
float value) |
java.lang.String |
setAtomSetFrequency(java.lang.String pathKey,
java.lang.String label,
java.lang.String freq,
java.lang.String units) |
void |
setAtomSetModelProperty(java.lang.String key,
java.lang.String value)
Sets a property for the current AtomSet
used specifically for creating directories and plots of frequencies and
molecular energies
|
void |
setAtomSetModelPropertyForSet(java.lang.String key,
java.lang.String value,
int atomSetIndex)
Sets the a property for the an AtomSet
|
void |
setAtomSetName(java.lang.String atomSetName)
Sets the name for the current AtomSet
|
void |
setAtomSetNames(java.lang.String atomSetName,
int n,
BS namedSets)
Sets the atom set names of the last n atomSets
|
void |
setAtomSetNumber(int index,
int atomSetNumber) |
(package private) boolean |
setAtomSetPartialCharges(java.lang.String auxKey)
Sets the partial atomic charges based on atomSet auxiliary info
|
void |
setAtomSetPropertyForSets(java.lang.String key,
java.lang.String value,
int n)
Sets the same properties for the last n atomSets.
|
(package private) void |
setAtomSetSpaceGroupName(java.lang.String spaceGroupName) |
void |
setBaseSymmetryAtomCount(int n) |
void |
setCheckSpecial(boolean TF) |
void |
setCollectionName(java.lang.String collectionName) |
void |
setCoordinatesAreFractional(boolean coordinatesAreFractional) |
void |
setCurrentAtomSetIndex(int i) |
void |
setCurrentAtomSetNumber(int atomSetNumber)
Sets the number for the current AtomSet
|
void |
setDoFixPeriodic() |
void |
setGlobalBoolean(int globalIndex) |
(package private) void |
setLatticeCells(int[] latticeCells,
boolean applySymmetryToBonds,
boolean doPackUnitCell,
boolean doCentroidUnitCell,
boolean centroidPacked,
java.lang.String strSupercell,
P3 ptSupercell) |
void |
setLatticeParameter(int latt) |
(package private) void |
setNoAutoBond() |
void |
setNotionalUnitCell(float[] info,
Matrix3f matUnitCellOrientation,
P3 unitCellOffset) |
private void |
setSuperCell(java.lang.String supercell) |
void |
setSupercellFromPoint(P3 pt) |
private P3 |
setSym(int i,
int j,
int k) |
private void |
setSymmetryMinMax(P3 c) |
private void |
setSymmetryOps() |
(package private) void |
setSymmetryRange(float factor) |
void |
setTensors() |
void |
setTrajectory() |
private void |
setTrajectoryName(java.lang.String name) |
private int |
symmetryAddAtoms(int iAtomFirst,
int noSymmetryCount,
int transX,
int transY,
int transZ,
int baseCount,
int pt,
int iCellOpPt) |
(package private) void |
toCartesian(SymmetryInterface symmetry) |
private java.lang.String fileTypeName
private java.lang.String collectionName
private java.util.Map<java.lang.String,java.lang.Object> atomSetCollectionAuxiliaryInfo
public BS bsAtoms
private static final java.lang.String[] globalBooleans
public static final int GLOBAL_FRACTCOORD
public static final int GLOBAL_SYMMETRY
public static final int GLOBAL_UNITCELLS
private static final int GLOBAL_CONECT
public static final int GLOBAL_ISPDB
public static final java.lang.String[] notionalUnitcellTags
private int atomCount
private Atom[] atoms
private int bondCount
private Bond[] bonds
private int structureCount
private Structure[] structures
private int atomSetCount
private int currentAtomSetIndex
private int[] atomSetNumbers
private int[] atomSetAtomIndexes
private int[] atomSetAtomCounts
private int[] atomSetBondCounts
private java.util.Map<java.lang.String,java.lang.Object>[] atomSetAuxiliaryInfo
private int[] latticeCells
public java.lang.String errorMessage
public boolean coordinatesAreFractional
boolean isTrajectory
private int trajectoryStepCount
private JmolList<java.lang.String> trajectoryNames
boolean doFixPeriodic
public float[] notionalUnitCell
public boolean allowMultiple
AtomSetCollectionReader reader
private JmolList<AtomSetCollectionReader> readerList
JmolList<int[]> vConnect
int connectNextAtomIndex
int connectNextAtomSet
int[] connectLast
public BS bsStructuredModels
float symmetryRange
private boolean doCentroidUnitCell
private boolean centroidPacked
public P3 ptSupercell
public float[] fmatSupercell
SymmetryInterface symmetry
boolean haveUnitCell
boolean doNormalize
boolean doPackUnitCell
private float rminx
private float rminy
private float rminz
private float rmaxx
private float rmaxy
private float rmaxz
private final P3 ptOffset
public P3 unitCellOffset
private P3i minXYZ
private P3i maxXYZ
private P3i minXYZ0
private P3i maxXYZ0
public boolean haveAnisou
private int dtype
private V3[] unitCellTranslations
private int baseSymmetryAtomCount
P3[] cartesians
int bondCount0
int bondIndex0
boolean applySymmetryToBonds
boolean checkSpecial
private final P3 ptTemp
private final P3 ptTemp1
private final P3 ptTemp2
private java.util.Map<java.lang.Object,java.lang.Integer> atomSymbolicMap
boolean haveMappedSerials
public AtomSetCollection(java.lang.String fileTypeName, AtomSetCollectionReader reader, AtomSetCollection[] array, JmolList<?> list)
public java.lang.String getFileTypeName()
public java.lang.String getCollectionName()
public void setCollectionName(java.lang.String collectionName)
public java.util.Map<java.lang.String,java.lang.Object> getAtomSetCollectionAuxiliaryInfoMap()
public void clearGlobalBoolean(int globalIndex)
public void setGlobalBoolean(int globalIndex)
boolean getGlobalBoolean(int globalIndex)
public int getAtomCount()
public int getHydrogenAtomCount()
public Atom[] getAtoms()
public Atom getAtom(int i)
public int getBondCount()
public Bond[] getBonds()
public Bond getBond(int i)
public int getStructureCount()
public Structure[] getStructures()
public int getAtomSetCount()
public int getCurrentAtomSetIndex()
public void setCurrentAtomSetIndex(int i)
public void setDoFixPeriodic()
private void appendAtomSetCollectionList(JmolList<?> list)
public void setTrajectory()
public void appendAtomSetCollection(int collectionIndex, AtomSetCollection collection)
collectionIndex
- collection index for new model numbercollection
- AtomSetCollection to appendvoid setNoAutoBond()
void freeze(boolean reverseModels)
private void reverseAtomSets()
private void reverseSets(AtomSetObject[] o, int n)
private void reverseObject(java.lang.Object[] o)
private static void reverseList(JmolList<?> list)
private void reverseArray(int[] a)
private void getList(boolean isAltLoc)
void finish()
public void discardPreviousAtoms()
public void removeAtomSet(int imodel)
imodel
- public void removeCurrentAtomSet()
public void cloneFirstAtomSet(int atomCount) throws java.lang.Exception
java.lang.Exception
public void cloneFirstAtomSetWithBonds(int nBonds) throws java.lang.Exception
java.lang.Exception
public void cloneLastAtomSet() throws java.lang.Exception
java.lang.Exception
public void cloneLastAtomSetFromPoints(int atomCount, P3[] pts) throws java.lang.Exception
java.lang.Exception
public int getFirstAtomSetAtomCount()
public int getLastAtomSetAtomCount()
public int getLastAtomSetAtomIndex()
public Atom addNewAtom()
public void addAtom(Atom atom)
public void addAtomWithMappedName(Atom atom)
public void addAtomWithMappedSerialNumber(Atom atom)
public Bond addNewBond(int atomIndex1, int atomIndex2)
Bond addNewSingleBondFromNames(java.lang.String atomName1, java.lang.String atomName2)
public Bond addNewBondWithOrder(int atomIndex1, int atomIndex2, int order)
public Bond addNewBondFromNames(java.lang.String atomName1, java.lang.String atomName2, int order)
public Bond addNewBondWithMappedSerialNumbers(int atomSerial1, int atomSerial2, int order)
public void addConnection(int[] is)
private void connectAllBad(int maxSerial)
public void connectAll(int maxSerial, boolean isConnectStateBug)
public void addBond(Bond bond)
public void finalizeStructures()
public void addStructure(Structure structure)
public void addVibrationVectorWithSymmetry(int iatom, float vx, float vy, float vz, boolean withSymmetry)
public void addVibrationVector(int iatom, float x, float y, float z)
void setAtomSetSpaceGroupName(java.lang.String spaceGroupName)
public void setCoordinatesAreFractional(boolean coordinatesAreFractional)
void setSymmetryRange(float factor)
void setLatticeCells(int[] latticeCells, boolean applySymmetryToBonds, boolean doPackUnitCell, boolean doCentroidUnitCell, boolean centroidPacked, java.lang.String strSupercell, P3 ptSupercell)
public void setSupercellFromPoint(P3 pt)
private void setSuperCell(java.lang.String supercell)
public SymmetryInterface getSymmetry()
public void setNotionalUnitCell(float[] info, Matrix3f matUnitCellOrientation, P3 unitCellOffset)
boolean addSpaceGroupOperation(java.lang.String xyz)
public void setLatticeParameter(int latt)
void applySymmetry() throws java.lang.Exception
java.lang.Exception
void applySymmetryUsing(SymmetryInterface symmetry) throws java.lang.Exception
java.lang.Exception
private void applySymmetryLattice(int maxX, int maxY, int maxZ) throws java.lang.Exception
java.lang.Exception
private P3 setSym(int i, int j, int k)
private void setSymmetryMinMax(P3 c)
private boolean isInSymmetryRange(P3 c)
private static boolean isWithinCell(int dtype, P3 pt, int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
public void setAnisoBorU(Atom atom, float[] data, int type)
public float[] getAnisoBorU(Atom atom)
public void setTensors()
public void setBaseSymmetryAtomCount(int n)
private void applyAllSymmetry() throws java.lang.Exception
java.lang.Exception
private void finalizeSymmetry(int iAtomFirst, int noSymmetryCount)
private void setSymmetryOps()
public void setCheckSpecial(boolean TF)
private int symmetryAddAtoms(int iAtomFirst, int noSymmetryCount, int transX, int transY, int transZ, int baseCount, int pt, int iCellOpPt) throws java.lang.Exception
java.lang.Exception
public void applySymmetryBio(JmolList<Matrix4f> biomts, float[] notionalUnitCell, boolean applySymmetryToBonds, java.lang.String filter)
private void mapMostRecentAtomName()
public void clearSymbolicMap()
private void mapMostRecentAtomSerialNumber()
public void createAtomSerialMap()
public int getAtomIndexFromName(java.lang.String atomName)
public int getAtomIndexFromSerial(int serialNumber)
private int getMapIndex(java.lang.Object nameOrNum)
public void setAtomSetCollectionAuxiliaryInfo(java.lang.String key, java.lang.Object value)
public boolean setAtomSetCollectionPartialCharges(java.lang.String auxKey)
auxKey
- The auxiliary key name that contains the chargespublic void mapPartialCharge(java.lang.String atomName, float charge)
public java.lang.Object getAtomSetCollectionAuxiliaryInfo(java.lang.String key)
private void addTrajectoryStep()
private static float fixPoint(float x, float x0)
public void finalizeTrajectoryAs(JmolList<P3[]> trajectorySteps, JmolList<V3[]> vibrationSteps)
private void finalizeTrajectory()
public void newAtomSet()
public void newAtomSetClear(boolean doClearMap)
public int getAtomSetAtomIndex(int i)
public int getAtomSetAtomCount(int i)
public int getAtomSetBondCount(int i)
public void setAtomSetName(java.lang.String atomSetName)
atomSetName
- The name to be associated with the current AtomSetprivate void setTrajectoryName(java.lang.String name)
public void setAtomSetNames(java.lang.String atomSetName, int n, BS namedSets)
atomSetName
- The namen
- The number of last AtomSets that needs these setnamedSets
- public void setCurrentAtomSetNumber(int atomSetNumber)
atomSetNumber
- The number for the current AtomSet.public void setAtomSetNumber(int index, int atomSetNumber)
public void setAtomSetModelProperty(java.lang.String key, java.lang.String value)
key
- The key for the propertyvalue
- The value to be associated with the keypublic void setAtomSetModelPropertyForSet(java.lang.String key, java.lang.String value, int atomSetIndex)
key
- The key for the propertyvalue
- The value for the propertyatomSetIndex
- The index of the AtomSet to get the propertypublic void setAtomSetAtomProperty(java.lang.String key, java.lang.String data, int atomSetIndex)
private void appendAtomProperties(int nTimes)
boolean setAtomSetPartialCharges(java.lang.String auxKey)
auxKey
- The auxiliary key name that contains the chargespublic java.lang.Object getAtomSetAuxiliaryInfoValue(int index, java.lang.String key)
public void setAtomSetAuxiliaryInfo(java.lang.String key, java.lang.Object value)
key
- The key for the propertyvalue
- The value to be associated with the keypublic void setAtomSetAuxiliaryInfoForSet(java.lang.String key, java.lang.Object value, int atomSetIndex)
key
- The key for the propertyvalue
- The value for the propertyatomSetIndex
- The index of the AtomSet to get the propertypublic void setAtomSetPropertyForSets(java.lang.String key, java.lang.String value, int n)
key
- The key for the propertyvalue
- The value of the propertyn
- The number of last AtomSets that needs these setpublic void cloneLastAtomSetProperties()
void cloneAtomSetProperties(int index)
index
- The index of the atom set whose properties are to be cloned.int getAtomSetNumber(int atomSetIndex)
java.lang.String getAtomSetName(int atomSetIndex)
java.util.Map<java.lang.String,java.lang.Object> getAtomSetAuxiliaryInfo(int atomSetIndex)
public java.util.Properties setAtomNames(java.util.Properties atomIdNames)
public void setAtomSetEnergy(java.lang.String energyString, float value)
public java.lang.String setAtomSetFrequency(java.lang.String pathKey, java.lang.String label, java.lang.String freq, java.lang.String units)
void toCartesian(SymmetryInterface symmetry)
public java.lang.String[][] getBondList()
public void centralize()
void mergeTrajectories(AtomSetCollection a)