public class Transformation2D extends Transformation
The Transformation2D
class represents a 2D transformation. it is derived from Transformation
and inherits all the attributes of a 3D transformation. In addition is provides new methods to
explicitly get and set 2D transformation properties.
A 2D transformation normally consists of a 3x3 matrix, but since the last row is always 0 0 1,
this is reduced to a 6 value array.
Using one of the new 2D specific functions to set the matrix always updates the 3D matrix
automatically and vice versa, so the 2D data and the 3D data inherited from Transformation
should
always be consistent.
Modifier and Type | Method and Description |
---|---|
void |
delete()
Explicitly deletes the underlying native object.
|
static SWIGTYPE_p_double |
getIdentityMatrix2D()
Returns a 2D identity matrix.
|
SWIGTYPE_p_double |
getMatrix2D()
Returns the 2D matrix which is an array of double values of length 6.
|
void |
setMatrix(SWIGTYPE_p_double m)
Sets the 2D matrix to the values given in the array.
|
void |
setMatrix2D(SWIGTYPE_p_double m)
Sets the 2D matrix to the values given in the array.
|
XMLNode |
toXML()
Creates an
XMLNode object from this Transformation2D object. |
getIdentityMatrix, getMatrix, isSetMatrix
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, cloneObject, connectToChild, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getElementByMetaId, getElementBySId, getElementName, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumDisabledPlugins, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getTypeCode, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, isSetUserData, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetId, unsetMetaId, unsetModelHistory, unsetName, unsetNotes, unsetSBOTerm, unsetUserData
public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the Transformation2D.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke Transformation2D.delete()
themselves.
delete
 in class Transformation
public static SWIGTYPE_p_double getIdentityMatrix2D()
public void setMatrix2D(SWIGTYPE_p_double m)
m
- array with new values to be set for this Transformation
object.public void setMatrix(SWIGTYPE_p_double m)
setMatrix
 in class Transformation
m
- array with new values to be set for this Transformation
object.public SWIGTYPE_p_double getMatrix2D()
public XMLNode toXML()
XMLNode
object from this Transformation2D
object.
XMLNode
with the XML representation for the
Transformation2D
object.
This method is purely virtual and has to be overwritten by derived classes.