|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava.bio.structure.quaternary.ModelTransformationMatrix
public class ModelTransformationMatrix
Isolation issue - The original version of this (renamed as GLTransformationMatrix) uses FloatBuffer objects obtained from GL to store and operate on the matrices - doing so destroys the ability to isolate the model, because the loaders use this to generate and store biological unit and non-crystallographic transformations. This version is a reimplementation that uses a simple array of floats. These are almost always stored in lists - note GLTransformationList has a utility to return a list of FloatBuffer objects for use in gl rendering. TODO: re-implement this as a subclass of Matrix3x and remove redundant functionality. Revert the array implementation to a Vector3x/Point3x implementation. All of the vertices and points should be carried consistently. 24-Nov-08 - rickb
org.rcsb.mbt.glscene.jogl.GLTransformationMatrix,
org.rcsb.vf.glscene.jogl.GLTransformationList,
org.rcsb.mbt.model.geometry.ModelTransformationList| Field Summary | |
|---|---|
java.lang.String |
code
|
static java.util.regex.Pattern |
commaSpaces
|
java.lang.String |
id
|
java.lang.String |
ndbChainId
|
static java.util.regex.Pattern |
slash
|
static java.util.regex.Pattern |
spaces
|
java.lang.String |
symmetryShorthand
|
float[] |
values
|
| Constructor Summary | |
|---|---|
ModelTransformationMatrix()
Default Constructor |
|
ModelTransformationMatrix(ModelTransformationMatrix src)
Copy Constructor |
|
| Method Summary | |
|---|---|
ModelTransformationMatrix |
clone()
|
static java.util.List<ModelTransformationMatrix> |
fromMultiXML(java.lang.String xml)
|
static ModelTransformationMatrix |
fromXML(java.lang.String xml)
|
java.lang.String |
getCode()
|
java.lang.String |
getId()
|
Matrix |
getMatrix()
|
java.lang.String |
getNdbChainId()
|
java.lang.String |
getSymmetryShorthand()
|
double[] |
getVector()
|
void |
init()
|
ModelTransformationMatrix |
inverse3()
|
static ModelTransformationMatrix |
multiply4square_x_4square2(ModelTransformationMatrix leftMat,
ModelTransformationMatrix rightMat)
|
void |
printMatrix(java.lang.String fullSymmetryOperation)
|
void |
setCode(java.lang.String code)
|
void |
setFullSymmetryOperation(java.lang.String fullSymmetryOperation_)
|
void |
setId(java.lang.String id)
|
void |
setIdentity()
|
void |
setMatrix(Matrix m)
|
void |
setNdbChainId(java.lang.String ndbChainId)
|
void |
setSymmetryShorthand(java.lang.String symmetryShorthand)
|
void |
setTransformationMatrix(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22,
float v0,
float v1,
float v2)
The provided rotation matrix is: m00 m01 m02 m10 m11 m12 m20 m21 m22 And the provided translation vector is |
void |
setTransformationMatrix(Matrix matrix,
double[] vector)
|
void |
setVector(double[] v)
|
java.lang.String |
toString()
|
java.lang.String |
toXML()
|
void |
toXML(PrettyXMLWriter xml)
|
void |
transformPoint(double[] point,
double[] result)
This function will change the contents of result, but will not change point. |
void |
updateFullSymmetryDataWithInverseFractionalTransform(ModelTransformationMatrix fractional,
ModelTransformationMatrix fractionalInverse)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String id
public java.lang.String ndbChainId
public java.lang.String symmetryShorthand
public java.lang.String code
public float[] values
public static final java.util.regex.Pattern spaces
public static final java.util.regex.Pattern commaSpaces
public static final java.util.regex.Pattern slash
| Constructor Detail |
|---|
public ModelTransformationMatrix()
public ModelTransformationMatrix(ModelTransformationMatrix src)
src - | Method Detail |
|---|
public void setTransformationMatrix(Matrix matrix,
double[] vector)
public void transformPoint(double[] point,
double[] result)
public void setTransformationMatrix(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22,
float v0,
float v1,
float v2)
public void setIdentity()
public ModelTransformationMatrix inverse3()
public void updateFullSymmetryDataWithInverseFractionalTransform(ModelTransformationMatrix fractional,
ModelTransformationMatrix fractionalInverse)
public static ModelTransformationMatrix multiply4square_x_4square2(ModelTransformationMatrix leftMat,
ModelTransformationMatrix rightMat)
public void setFullSymmetryOperation(java.lang.String fullSymmetryOperation_)
public void printMatrix(java.lang.String fullSymmetryOperation)
public void init()
public Matrix getMatrix()
public void setMatrix(Matrix m)
public double[] getVector()
public void setVector(double[] v)
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String toXML()
throws java.io.IOException
java.io.IOException
public void toXML(PrettyXMLWriter xml)
throws java.io.IOException
java.io.IOException
public static ModelTransformationMatrix fromXML(java.lang.String xml)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public static java.util.List<ModelTransformationMatrix> fromMultiXML(java.lang.String xml)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOExceptionpublic java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getNdbChainId()
public void setNdbChainId(java.lang.String ndbChainId)
public java.lang.String getSymmetryShorthand()
public void setSymmetryShorthand(java.lang.String symmetryShorthand)
public java.lang.String getCode()
public void setCode(java.lang.String code)
public ModelTransformationMatrix clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||