Package org.jmol.symmetry
Class SymmetryOperation
java.lang.Object
javajs.util.M34
javajs.util.M4
org.jmol.symmetry.SymmetryOperation
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet string version of fractionstatic SymmetryOperation[]getAdditionalOperations(SymmetryOperation[] ops, int per_dim) getCode()static chargetGlideFromTrans(T3 ftrans, T3 ax1) note = this method will return 'n' for SG 161 do an operator's odd 1/2 -1/2 1/2 glide (but only for additional operations, not the basic set but ITA says "tetragonal and cubic only" in Table ITA1969 4.1.6getInfo()static M4getMatrixFromXYZ(String xyz, float[] v, boolean halfOrLess) static M4getMatrixFromXYZScaled(String xyz, float[] v, boolean halfOrLess) intintstatic StringgetRotTransArrayAndXYZ(SymmetryOperation op, String xyz, float[] linearRotTrans, boolean allowScaling, boolean halfOrLess, boolean retString, String labels) Convert the Jones-Faithful notation "x, -z+1/2, y" or "x1, x3-1/2, x2, x5+1/2, -x6+1/2, x7..." to a linear array Also allows a-b,-5a-5b,-c;0,0,0 formatstatic StringgetSpinString(M34 m, boolean isUVW, boolean withParens) allows for 3x3 rotation-only matrix;getSUVW()static StringgetTransformABC(M4 transform, boolean normalize) This method properly transposes the matrix for ABC format, converting columns to rows before passing the information to getXYZFromMatrixFrac(...,"ABC").static StringgetTransformABCd(M4 transform, boolean normalize, boolean fractionAsDecimal) static StringgetTransformUVW(M4 spin) static StringgetTransformXYZ(M4 op) getXyz(boolean normalized) static final StringgetXYZFromMatrix(M4 mat, boolean is12ths, boolean allPositive, boolean halfOrLess) static StringgetXYZFromRsVs(Matrix rs, Matrix vs, boolean is12ths) getxyzTrans(T3 t) static booleanisTranslation(M4 op) static StringmatrixToRationalString(M34 matrix) rxyz option creates tab-separated string representation of a 3x4 (r,t) or 3x3 matrix with rational fractions adds "|" prior to translation; does NOT add last row of 0 0 0 1( 1 -1 0 | 1/2 0 0 1 | -1/2 0 1 0 | 0 )static voidnormalize12ths(V3 vtrans) static voidnormalizeOperationToCentroid(int dim, M4 m, P3[] fracPts, int i0, int n) Adjust the translation for this operator so that it moves the center of mass of the full set of atoms into the cell.V3[]rotateAxes(V3[] vectors, UnitCell unitcell, P3 ptTemp, M3 mTemp) voidrotateSpin(T3 vib) voidSets sigma and the subsystem code for modulated CIFvoidstatic ObjectstaticConvertOperation(String xyz, M34 matrix34, String labels) toString()Returns a string that contains the values of this Matrix4f.Methods inherited from class javajs.util.M4
add, determinant4, equals, getColumn, getElement, getRotationScale, getRow, getTranslation, hashCode, invert, mul, mul2, newA16, newM4, newMV, rotTrans, rotTrans2, round, scale, setA, setAsXYRotation, setAsXZRotation, setAsYZRotation, setColumn4, setColumnA, setElement, setIdentity, setM4, setMV, setRotationScale, setRowA, setToAA, setToM3, setTranslation, setZero, sub, transform, transform2, transpose
-
Field Details
-
xyz
-
suvw
-
suvwId
CIF space_group_symop_spin_operation_uvw_id was an idea Bob had to separate out the uvw part from the xyz part into separate CIF blocks. The idea was not ultimately part of the SpinCIF dictionary. -
spinIndex
public int spinIndex -
subsystemCode
-
opIsLong
public boolean opIsLong -
MODE_ABC
- See Also:
-
MODE_XYZ
- See Also:
-
MODE_UVW
- See Also:
-
MODE_MXYZ
- See Also:
-
-
Method Details
-
getOpDesc
-
setSigma
Sets sigma and the subsystem code for modulated CIF- Parameters:
subsystemCode-sigma-
-
getXyz
-
getxyzTrans
-
setSpin
-
getMatrixFromXYZ
-
getMatrixFromXYZScaled
-
getRotTransArrayAndXYZ
public static String getRotTransArrayAndXYZ(SymmetryOperation op, String xyz, float[] linearRotTrans, boolean allowScaling, boolean halfOrLess, boolean retString, String labels) Convert the Jones-Faithful notation "x, -z+1/2, y" or "x1, x3-1/2, x2, x5+1/2, -x6+1/2, x7..." to a linear array Also allows a-b,-5a-5b,-c;0,0,0 format- Parameters:
op-xyz-linearRotTrans-allowScaling-halfOrLess-retString-labels-- Returns:
- canonized Jones-Faithful string
-
getXYZFromMatrix
-
rotateAxes
-
fcoord
Get string version of fraction- Parameters:
p-sep- space or comma- Returns:
- "1/2" for example
-
getXYZFromRsVs
-
isTranslation
-
getSpinString
allows for 3x3 rotation-only matrix;- Parameters:
m-isUVW- will allow 0.577.... not changing that to a fractionwithParens-- Returns:
- full x,y,...(u,v,....) or just u,v,w
-
getInfo
-
normalizeOperationToCentroid
Adjust the translation for this operator so that it moves the center of mass of the full set of atoms into the cell.- Parameters:
dim-m-fracPts-i0- first indexn- number of atoms
-
getLatticeCentering
-
getLatticeCenteringStrings
-
getOpIsCCW
-
getOpType
public int getOpType() -
getOpOrder
public int getOpOrder() -
getOpPoint
-
getOpAxis
-
getOpPoint2
-
getOpTrans
-
getAdditionalOperations
-
normalize12ths
-
getCode
-
getGlideFromTrans
note = this method will return 'n' for SG 161 do an operator's odd 1/2 -1/2 1/2 glide (but only for additional operations, not the basic set but ITA says "tetragonal and cubic only" in Table ITA1969 4.1.6- Parameters:
ftrans-ax1-- Returns:
- one of a b c d g n
-
getTransformXYZ
-
getTransformUVW
-
getTransformABC
This method properly transposes the matrix for ABC format, converting columns to rows before passing the information to getXYZFromMatrixFrac(...,"ABC").- Parameters:
transform-normalize- only set to true by (undocumented?) script unitcell(m4,true); normalize translation to interval (-1/2,1/2]- Returns:
- a,b,c format for the given matrix
-
getTransformABCd
-
matrixToRationalString
rxyz option creates tab-separated string representation of a 3x4 (r,t) or 3x3 matrix with rational fractions adds "|" prior to translation; does NOT add last row of 0 0 0 1( 1 -1 0 | 1/2 0 0 1 | -1/2 0 1 0 | 0 )- Parameters:
matrix-- Returns:
- string representation
-
rotateSpin
-
staticConvertOperation
-
toString
Description copied from class:M4Returns a string that contains the values of this Matrix4f. -
getSUVW
-