Class ModulationSet
java.lang.Object
javajs.util.T3
javajs.util.V3
org.jmol.util.Vibration
org.jmol.util.ModulationSet
- All Implemented Interfaces:
Serializable, JSONEncodable, JmolModulationSet
A class to group a set of modulations for an atom as a "vibration" Extends V3
so that it will be a displacement, and its value will be an occupancy
- Author:
- Bob Hanson hansonr@stolaf.edu 8/9/2013
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptioncurrent value of anisotropic parameter modulationthe modulated magnetic spinvib is a spin vector when the model has modulation; otherwise an unmodulated vibration.floatthe current value of the occupancy modulationFields inherited from class Vibration
isFractional, isFrom000, magMoment, modDim, modScale, showTrace, symmform, tracePt, twoPI, TYPE_SPIN, TYPE_VIBRATION, TYPE_WYCKOFF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCalculate r_I internal d-space coordinate of an atom.voidgetModPoint(boolean asEnabled) getModulation(char type, T3 tuv, boolean occ100) intgetOccupancy100(boolean forVibVis) floatgetScale()getState()getV3()getVibration(boolean forceNew) booleanbooleanvoidscaleVibration(float m) setCalcPoint(T3 pt, T3 t456, float vibScale, float scale) get updated value for offset vector and for occupancysetMod(String id, P3 r00, P3 r0, int d, Lst<Modulation> mods, M3 gammaE, Matrix[] factors, SymmetryInterface symmetry, int nOps, int iop, Vibration v, boolean isCommensurate) A collection of modulations for a specific atom.voidSet modulation "t" value, which sets which unit cell in sequence we are looking at; d=1 only.voidfloatsetOccupancy(double[] pt, double foccupancy, double siteMult) get the occupancy, first from the reader, then from renderervoidMethods inherited from class Vibration
addTracePt, clone, find, getApproxString100, rotateModelSpinVectors, rotateSpin, setType, setV0, startTrace
-
Field Details
-
vib
vib is a spin vector when the model has modulation; otherwise an unmodulated vibration. -
mxyz
the modulated magnetic spin -
htUij
-
vOcc
public float vOccthe current value of the occupancy modulation
-
-
Constructor Details
-
ModulationSet
public ModulationSet()
-
-
Method Details
-
getSubSystemUnitCell
- Specified by:
getSubSystemUnitCellin interfaceJmolModulationSet
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceJmolModulationSet
-
getScale
public float getScale()- Specified by:
getScalein interfaceJmolModulationSet
-
setMod
public ModulationSet setMod(String id, P3 r00, P3 r0, int d, Lst<Modulation> mods, M3 gammaE, Matrix[] factors, SymmetryInterface symmetry, int nOps, int iop, Vibration v, boolean isCommensurate) A collection of modulations for a specific atom.- Parameters:
id-r00- originating atom position prior to application of symmetryr0- unmodulated (average) position after application of symmetryd-mods-gammaE-factors- including sigma and tFactorsymmetry-nOps-iop-v- TODOisCommensurate- TODO- Returns:
- this
-
calculate
Calculate r_I internal d-space coordinate of an atom.- Parameters:
tuv-isQ-- Returns:
- this ModulationSet, with this.rI set to the coordinate
-
addUTens
-
setModTQ
Set modulation "t" value, which sets which unit cell in sequence we are looking at; d=1 only.- Specified by:
setModTQin interfaceJmolModulationSet- Parameters:
isOn-qtOffset-isQ-scale-
-
addTo
- Specified by:
addToin interfaceJmolModulationSet
-
getState
- Specified by:
getStatein interfaceJmolModulationSet
-
getModPoint
- Specified by:
getModPointin interfaceJmolModulationSet
-
getModulation
- Specified by:
getModulationin interfaceJmolModulationSet
-
setCalcPoint
get updated value for offset vector and for occupancy- Overrides:
setCalcPointin classVibration- Parameters:
pt-t456-vibScale-scale-- Returns:
- pt
-
getInfo
-
setXYZ
-
getVibration
- Specified by:
getVibrationin interfaceJmolModulationSet
-
getV3
- Specified by:
getV3in interfaceJmolModulationSet
-
scaleVibration
public void scaleVibration(float m) - Specified by:
scaleVibrationin interfaceJmolModulationSet
-
setMoment
public void setMoment()- Specified by:
setMomentin interfaceJmolModulationSet
-
isNonzero
-
setOccupancy
public float setOccupancy(double[] pt, double foccupancy, double siteMult) get the occupancy, first from the reader, then from renderer- Parameters:
pt-foccupancy-siteMult- or 0 is this is not relevant- Returns:
- occupancy on [0,1]
-
getOccupancy100
public int getOccupancy100(boolean forVibVis) - Overrides:
getOccupancy100in classVibration- Parameters:
forVibVis- used only in ModulationSet when calculating actual display offset- Returns:
- Integer.MIN_VALUE if not applicable, occupancy if enabled, -occupancy if not enabled
-