Package org.jmol.adapter.readers.cif
Class MSRdr
java.lang.Object
org.jmol.adapter.readers.cif.MSRdr
- All Implemented Interfaces:
MSInterface
- Direct Known Subclasses:
MSCifParser
generalized modulated structure reader class for CIF and Jana
-- includes Fourier, Crenel, Sawtooth, Legendre; displacement, occupancy, and Uij
-- handles up to 6 modulation wave vectors
-- commensurate and incommensurate, including composites
-- not handling _cell_commen_t_section_1
- Author:
- Bob Hanson hansonr@stolaf.edu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected AtomSetCollectionReaderprotected booleanprotected booleanprotected Stringprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLatticeVector(Lst<float[]> lattvecs, String data) voidaddModulation(Map<String, double[]> map, String id, double[] pt, int iModel) Types include O (occupation) D (displacement) U (anisotropy) M (magnetic moment) _coefs_ indicates this is a wave descriptionvoidaddSubsystem(String code, Matrix w) voidCreate a script that will run to turn modulation on and to display only atoms with modulated occupancy >= 0.5.getAtomSymmetry(Atom a, XtalSymmetry.FileSymmetry defaultSymmetry) When applying symmetry, this method allows us to use a set of symmetry operators unique to this particular atom -- or in this case, to its subsystem.double[]Modulation data keys are keyed by model number as well as type using [at]n, where n is the model number, starting with 0.chargetModType(String key) double[]getSymmetryFromCode(String code) intinitialize(AtomSetCollectionReader r, int modDim) voidsetMinMax0(P3 minXYZ, P3 maxXYZ) protected voidsetModDim(int ndim) voidsetModulation(boolean isPost, XtalSymmetry.FileSymmetry symmetry) Both the Jana reader and the CIF reader will call this to set the modulation for a given model.
-
Field Details
-
cr
-
modDim
protected int modDim -
modAxes
-
modAverage
protected boolean modAverage -
isCommensurate
protected boolean isCommensurate -
commensurateSection1
protected int commensurateSection1
-
-
Constructor Details
-
MSRdr
public MSRdr()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceMSInterface- Throws:
Exception
-
setModDim
protected void setModDim(int ndim) -
addModulation
Types include O (occupation) D (displacement) U (anisotropy) M (magnetic moment) _coefs_ indicates this is a wave description- Specified by:
addModulationin interfaceMSInterface- Parameters:
map-id-pt-iModel-
-
setModulation
Both the Jana reader and the CIF reader will call this to set the modulation for a given model.- Specified by:
setModulationin interfaceMSInterface- Throws:
Exception
-
finalizeModulation
public void finalizeModulation()Create a script that will run to turn modulation on and to display only atoms with modulated occupancy >= 0.5.- Specified by:
finalizeModulationin interfaceMSInterface
-
getMod
Modulation data keys are keyed by model number as well as type using [at]n, where n is the model number, starting with 0.- Specified by:
getModin interfaceMSInterface- Parameters:
key-- Returns:
- modulation data
-
getModulationMap
- Specified by:
getModulationMapin interfaceMSInterface
-
getQCoefs
- Specified by:
getQCoefsin interfaceMSInterface
-
getModType
- Specified by:
getModTypein interfaceMSInterface
-
addSubsystem
- Specified by:
addSubsystemin interfaceMSInterface
-
getAtomSymmetry
When applying symmetry, this method allows us to use a set of symmetry operators unique to this particular atom -- or in this case, to its subsystem.- Specified by:
getAtomSymmetryin interfaceMSInterface
-
setMinMax0
- Specified by:
setMinMax0in interfaceMSInterface
-
getSymmetryFromCode
- Specified by:
getSymmetryFromCodein interfaceMSInterface
-
addLatticeVector
- Specified by:
addLatticeVectorin interfaceMSInterface- Throws:
Exception
-