public class SymmetryAxes extends Object
It also stores the parts of the structure (symmetric units) involved in each axis, in addition to the way to calculate them.
This is intended to provide a general axis support for the multiple repeat alignment optimization and the axis display in Jmol. This object is related to a MultipleAlignment object that defines the symmetric units.
Constructor and Description |
---|
SymmetryAxes()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAxis(javax.vecmath.Matrix4d axis,
List<List<Integer>> superposition,
List<Integer> repeats,
Integer division)
Adds a new axis of symmetry.
|
List<javax.vecmath.Matrix4d> |
getElementaryAxes()
Return all elementary axes of symmetry of the structure, that is,
the axes stored in the List as unique and from which all the symmetry
axes are constructed.
|
List<List<Integer>> |
getRepeatRelation(Integer index)
Return the repeat superposition relation needed to obtain the
axis of symmetry (which repeats and in which order have to be
superimposed to obtain the axis).
|
javax.vecmath.Matrix4d |
getRepeatTransform(int repeat)
Return the transformation that needs to be applied to a determinate
repeat so that all get superimposed to the same point.
|
List<javax.vecmath.Matrix4d> |
getSymmetryAxes()
Deprecated.
because it does not work as expected for open symmetry
|
void |
updateAxis(Integer index,
javax.vecmath.Matrix4d newAxis)
Updates an axis of symmetry, after the superposition changed.
|
public void addAxis(javax.vecmath.Matrix4d axis, List<List<Integer>> superposition, List<Integer> repeats, Integer division)
axis
- the new axis of symmetry foundsuperposition
- repeats participating and superposition relationrepeats
- number of times the transformation is applied to every
repeat. index1=repeat, index2=times.division
- number of parts that this axis divides the structure inIllegalArgumentException
- if the repeat relation is in the
wrong format: should be double List of equal sizes.public void updateAxis(Integer index, javax.vecmath.Matrix4d newAxis)
index
- old axis indexnewAxis
- public List<javax.vecmath.Matrix4d> getElementaryAxes()
public List<List<Integer>> getRepeatRelation(Integer index)
index
- the axis indexpublic javax.vecmath.Matrix4d getRepeatTransform(int repeat)
repeat
- the repeat index@Deprecated public List<javax.vecmath.Matrix4d> getSymmetryAxes()
Copyright © 2000–2016 BioJava. All rights reserved.