Package org.jmol.util
Class Vibration
java.lang.Object
javajs.util.T3
javajs.util.V3
org.jmol.util.Vibration
- All Implemented Interfaces:
Serializable
,JSONEncodable
- Direct Known Subclasses:
ModulationSet
A class to allow for more complex vibrations and associated
phenomena, such as modulated crystals. In the case of modulations,
ModulationSet extends Vibration and is implemented that way,
and, as well, magnetic spin is also a form of Vibration that
may have an associated ModulationSet, as indicated here
- Author:
- Bob Hanson hansonr@stolaf.edu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
modDim will be > 0 for modulationfloat
boolean
int
protected static final double
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionP3[]
addTracePt
(int n, Point3fi ptNew) clone()
void
int
getOccupancy100
(boolean isTemp) boolean
setCalcPoint
(T3 pt, T3 t456, float scale, float modulationScale) setType
(int type) void
void
startTrace
(int n)
-
Field Details
-
twoPI
protected static final double twoPI- See Also:
-
TYPE_VIBRATION
public static final int TYPE_VIBRATION- See Also:
-
TYPE_SPIN
public static final int TYPE_SPIN- See Also:
-
TYPE_WYCKOFF
public static final int TYPE_WYCKOFF- See Also:
-
modDim
public int modDimmodDim will be > 0 for modulation -
modScale
public float modScale -
showTrace
public boolean showTrace -
tracePt
public int tracePt
-
-
Constructor Details
-
Vibration
public Vibration()
-
-
Method Details
-
setCalcPoint
- Parameters:
pt
-t456
-scale
-modulationScale
-- Returns:
- pt
-
getInfo
-
clone
-
setXYZ
-
setType
-
isNonzero
public boolean isNonzero() -
getOccupancy100
public int getOccupancy100(boolean isTemp) - Parameters:
isTemp
- used only in ModulationSet when calculating actual display offset- Returns:
- Integer.MIN_VALUE if not applicable, occupancy if enabled, -occupancy if not enabled
-
startTrace
public void startTrace(int n) -
addTracePt
-