Class AtomSetCollection
java.lang.Object
org.jmol.adapter.smarter.AtomSetCollection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAtomSetCollection(String fileTypeName, AtomSetCollectionReader reader, AtomSetCollection[] array, Lst<?> list) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAtomWithMappedName(Atom atom) voidvoidvoidaddBondNoCheck(Bond bond) addNewBondFromNames(String atomName1, String atomName2, int order) addNewBondWithOrder(int atomIndex1, int atomIndex2, int order) addNewBondWithOrderA(Atom atom1, Atom atom2, int order) voidaddStructure(Structure structure) addVibrationVector(int iatom, float x, float y, float z) voidaddVibrationVectorWithSymmetry(int iatom, float vx, float vy, float vz, boolean withSymmetry) voidappendAtomSetCollection(int collectionIndex, AtomSetCollection collection) Appends an AtomSetCollectionvoidvoidvoidclearGlobalBoolean(int globalIndex) voidcloneAtomSetWithBonds(boolean isLast) intcloneFirstAtomSet(int atomCount) intintcloneLastAtomSetFromPoints(int ac, P3[] pts) voidvoidvoidfinalizeTrajectoryAs(Lst<P3[]> trajectorySteps, Lst<V3[]> vibrationSteps) voidgetAtomFromName(String atomName) intgetAtomIndex(String name) intgetAtomSetAtomCount(int i) intgetAtomSetAtomIndex(int i) getAtomSetAuxiliaryInfo(int atomSetIndex) getAtomSetAuxiliaryInfoValue(int index, String key) intgetAtomSetBondCount(int i) String[][]getBSAtoms(int n) Create bsAtoms if it is null, and set bits if desired.intintintvoidmapPartialCharge(String atomName, float charge) voidCreate a new atoms set, clearing the atom mapvoidnewAtomSetClear(boolean doClearMap) Create a new atom set, optionally clearing the atom map.newCloneAtom(Atom atom) voidremoveAtomSet(int imodel) note that sets must be iterated from LAST to FIRST not a general method -- would mess up if we had unit cellsvoidvoidvoidsetAnisoBorU(Atom atom, float[] data, int type) voidvoidsetAtomProperties(String key, Object data, int atomSetIndex, boolean isGroup) booleanSets the partial atomic charges based on asc auxiliary infovoidsetAtomSetEnergy(String energyString, float value) / for XmlChem3dReader, but could be for CUBEsetAtomSetFrequency(int mode, String pathKey, String label, String freq, String units) voidsetAtomSetModelProperty(String key, String value) Sets a property for the current AtomSet used specifically for creating directories and plots of frequencies and molecular energiesvoidsetAtomSetModelPropertyForSet(String key, String value, int atomSetIndex) Sets the a property for the an AtomSetvoidsetAtomSetName(String atomSetName) Sets the name for the current AtomSetvoidsetAtomSetNumber(int index, int atomSetNumber) voidsetBSAtomsForSet(int iSet) Add a full set of atoms to BSAtoms if they are not already indicated there.voidsetCollectionName(String collectionName) voidsetCoordinatesAreFractional(boolean tf) voidsetCurrentAtomSetNumber(int atomSetNumber) Sets the number for the current AtomSetvoidsetCurrentModelInfo(String key, Object value) Sets auxiliary information for the AtomSetvoidsetGlobalBoolean(int globalIndex) voidvoidsetModelInfoForSet(String key, Object value, int atomSetIndex) Sets auxiliary information for an AtomSetvoidvoidvoidvoid
-
Field Details
-
bsAtoms
-
fileTypeName
-
atomSetInfo
-
atoms
-
ac
public int ac -
bonds
-
bondCount
public int bondCount -
structures
-
structureCount
public int structureCount -
atomSetCount
public int atomSetCount -
iSet
public int iSet -
atomSetAtomCounts
public int[] atomSetAtomCounts -
errorMessage
-
coordinatesAreFractional
public boolean coordinatesAreFractional -
doFixPeriodic
public boolean doFixPeriodic -
allowMultiple
public boolean allowMultiple -
atomMapAnyCase
public boolean atomMapAnyCase -
bsStructuredModels
-
haveAnisou
public boolean haveAnisou -
baseSymmetryAtomCount
public int baseSymmetryAtomCount -
crystalReaderLatticeOpsOnly
public boolean crystalReaderLatticeOpsOnly -
xtalSymmetry
-
atomSymbolicMap
-
haveUnitCell
public boolean haveUnitCell -
vibScale
public int vibScale -
firstAtomToBond
public int firstAtomToBond
-
-
Constructor Details
-
AtomSetCollection
public AtomSetCollection(String fileTypeName, AtomSetCollectionReader reader, AtomSetCollection[] array, Lst<?> list)
-
-
Method Details
-
setCollectionName
-
clearGlobalBoolean
public void clearGlobalBoolean(int globalIndex) -
setGlobalBoolean
public void setGlobalBoolean(int globalIndex) -
setTrajectory
public void setTrajectory() -
appendAtomSetCollection
Appends an AtomSetCollection- Parameters:
collectionIndex- collection index for new model numbercollection- AtomSetCollection to append
-
setNoAutoBond
public void setNoAutoBond() -
discardPreviousAtoms
public void discardPreviousAtoms() -
removeCurrentAtomSet
public void removeCurrentAtomSet() -
getHydrogenAtomCount
public int getHydrogenAtomCount() -
newCloneAtom
-
cloneFirstAtomSet
public int cloneFirstAtomSet(int atomCount) -
cloneAtomSetWithBonds
public void cloneAtomSetWithBonds(boolean isLast) -
cloneLastAtomSet
public int cloneLastAtomSet() -
cloneLastAtomSetFromPoints
-
getLastAtomSetAtomCount
public int getLastAtomSetAtomCount() -
getLastAtomSetAtomIndex
public int getLastAtomSetAtomIndex() -
addNewAtom
-
addAtom
-
addAtomWithMappedName
-
addAtomWithMappedSerialNumber
-
getAtomFromName
-
setAtomMapAnyCase
public void setAtomMapAnyCase() -
getAtomIndex
-
addNewBondWithOrder
-
addNewBondFromNames
-
addNewBondWithOrderA
-
addBond
-
addBondNoCheck
-
finalizeStructures
public void finalizeStructures() -
addStructure
-
addVibrationVectorWithSymmetry
public void addVibrationVectorWithSymmetry(int iatom, float vx, float vy, float vz, boolean withSymmetry) -
addVibrationVector
-
setCoordinatesAreFractional
public void setCoordinatesAreFractional(boolean tf) -
setAnisoBorU
-
setU
-
getXSymmetry
-
getSymmetry
-
setSymmetryFromAuditBlock
-
newFileSymmetry
-
setTensors
public void setTensors() -
setInfo
-
setAtomSetCollectionPartialCharges
Sets the partial atomic charges based on asc auxiliary info- Parameters:
auxKey- The auxiliary key name that contains the charges- Returns:
- true if the data exist; false if not
-
mapPartialCharge
-
finalizeTrajectoryAs
-
newAtomSet
public void newAtomSet()Create a new atoms set, clearing the atom map -
newAtomSetClear
public void newAtomSetClear(boolean doClearMap) Create a new atom set, optionally clearing the atom map.- Parameters:
doClearMap- set to false only in CastepReader
-
getAtomSetAtomIndex
public int getAtomSetAtomIndex(int i) -
getAtomSetAtomCount
public int getAtomSetAtomCount(int i) -
getAtomSetBondCount
public int getAtomSetBondCount(int i) -
setAtomSetName
Sets the name for the current AtomSet- Parameters:
atomSetName- The name to be associated with the current AtomSet
-
setCurrentAtomSetNumber
public void setCurrentAtomSetNumber(int atomSetNumber) Sets the number for the current AtomSet- Parameters:
atomSetNumber- The number for the current AtomSet.
-
setAtomSetNumber
public void setAtomSetNumber(int index, int atomSetNumber) -
setAtomSetModelProperty
-
setAtomSetModelPropertyForSet
-
setAtomProperties
-
getAtomSetAuxiliaryInfoValue
-
setCurrentModelInfo
-
setModelInfoForSet
-
getAtomSetAuxiliaryInfo
-
setAtomSetEnergy
/ for XmlChem3dReader, but could be for CUBE -
setAtomSetFrequency
-
getBondList
-
centralize
public void centralize() -
removeAtomSet
public void removeAtomSet(int imodel) note that sets must be iterated from LAST to FIRST not a general method -- would mess up if we had unit cells- Parameters:
imodel-
-
removeLastUnselectedAtoms
public void removeLastUnselectedAtoms() -
checkNoEmptyModel
public void checkNoEmptyModel() -
getBSAtoms
Create bsAtoms if it is null, and set bits if desired.- Parameters:
n- if created only, -1 to set all atoms, 0 for no setting, otherwise, set [0,n)- Returns:
- bsAtoms
-
setBSAtomsForSet
public void setBSAtomsForSet(int iSet) Add a full set of atoms to BSAtoms if they are not already indicated there.- Parameters:
iSet-
-
fix2Stereo
public void fix2Stereo()
-