public class BiologicalAssemblyTransformation extends Object implements Cloneable, Serializable
CrystalTransform
,
Serialized FormConstructor and Description |
---|
BiologicalAssemblyTransformation()
Default Constructor
|
BiologicalAssemblyTransformation(BiologicalAssemblyTransformation src)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
static BiologicalAssemblyTransformation |
combine(BiologicalAssemblyTransformation matrix1,
BiologicalAssemblyTransformation matrix2)
Returns the combination (product) of two biological assembly transformations.
|
static List<BiologicalAssemblyTransformation> |
fromMultiXML(String xml) |
static BiologicalAssemblyTransformation |
fromXML(String xml) |
String |
getChainId()
Returns the chain identifier (asym id) that this transformation should be applied to.
|
String |
getId()
Returns the identifier for this biological assembly transformation.
|
javax.vecmath.Matrix4d |
getTransformationMatrix()
Return the transformation (both rotational and translational component) as a 4x4 transformation matrix.
|
boolean |
isIdentity()
Tells whether this transformation is in identity.
|
static String |
rotMatrixToString(javax.vecmath.Matrix4d m) |
void |
setChainId(String chainId)
Sets the chain identifier (asym id) that this transformation should be applied to.
|
void |
setId(String id)
Sets the identifier for this biological assembly transformation.
|
void |
setRotationMatrix(double[][] m) |
void |
setTransformationMatrix(javax.vecmath.Matrix4d transformation)
Sets the transformation using a 4x4 transformation matrix
|
void |
setTranslation(double[] t) |
String |
toString() |
String |
toXML() |
void |
toXML(PrettyXMLWriter xml) |
void |
transformPoint(double[] point)
Applies the transformation to given point.
|
static String |
translVecToString(javax.vecmath.Matrix4d m) |
public BiologicalAssemblyTransformation()
public BiologicalAssemblyTransformation(BiologicalAssemblyTransformation src)
src
- public void setId(String id)
id
- public String getId()
public void setChainId(String chainId)
chainId
- public String getChainId()
public void setTransformationMatrix(javax.vecmath.Matrix4d transformation)
transformation
- public javax.vecmath.Matrix4d getTransformationMatrix()
CrystalCell.transfToCrystal(Matrix4d)
Note that this is a reference to the variable, thus it remains linked to this object's transformation field.
The user must deep copy it if need changing it.public void setRotationMatrix(double[][] m)
public void setTranslation(double[] t)
public void transformPoint(double[] point)
public static BiologicalAssemblyTransformation combine(BiologicalAssemblyTransformation matrix1, BiologicalAssemblyTransformation matrix2)
matrix1
- matrix2
- public boolean isIdentity()
public String toXML() throws IOException
IOException
public void toXML(PrettyXMLWriter xml) throws IOException
IOException
public static BiologicalAssemblyTransformation fromXML(String xml) throws SAXException, IOException, ParserConfigurationException
public static List<BiologicalAssemblyTransformation> fromMultiXML(String xml) throws ParserConfigurationException, SAXException, IOException
public static String rotMatrixToString(javax.vecmath.Matrix4d m)
public static String translVecToString(javax.vecmath.Matrix4d m)
Copyright © 2000–2018 BioJava. All rights reserved.