public class Transformation extends SBase
The Transformation class represents a 3D transformation which normally is
a 4x4 matrix. Since the last row is always 0 0 0 1 for affine
transformations, we leave out those values and store the matrix as an
array of 4x3 columns
| Constructor and Description |
|---|
Transformation()
Creates a new
Transformation using the given SBML Level, Version and
“render” package version. |
Transformation(long level)
Creates a new
Transformation using the given SBML Level, Version and
“render” package version. |
Transformation(long level,
long version)
Creates a new
Transformation using the given SBML Level, Version and
“render” package version. |
Transformation(long level,
long version,
long pkgVersion)
Creates a new
Transformation using the given SBML Level, Version and
“render” package version. |
Transformation(RenderPkgNamespaces renderns)
Creates a new
Transformation using the given RenderPkgNamespaces object. |
Transformation(Transformation orig)
Copy constructor for
Transformation. |
| Modifier and Type | Method and Description |
|---|---|
SBase |
cloneObject()
Creates and returns a deep copy of this
Transformation object. |
void |
delete()
Explicitly deletes the underlying native object.
|
java.lang.String |
getElementName()
Returns the XML element name of this
Transformation object. |
static SWIGTYPE_p_double |
getIdentityMatrix()
Returns a 3D identity matrix.
|
SWIGTYPE_p_double |
getMatrix()
Returns the value of the 'transform' attribute of this
Transformation. |
java.lang.String |
getName()
Returns the value of the 'name' attribute of this
Transformation. |
void |
getTransform(SWIGTYPE_p_double outArray)
Returns the value of the 'transform' attribute of this
Transformation. |
int |
getTypeCode()
Returns the libSBML type code for this
Transformation object. |
boolean |
isEllipse()
|
boolean |
isImage()
|
boolean |
isLineEnding()
|
boolean |
isPolygon()
|
boolean |
isRectangle()
|
boolean |
isRenderCurve()
|
boolean |
isRenderGroup()
|
boolean |
isSetMatrix()
Returns
true if the matrix has been set or false otherwise. |
boolean |
isSetName()
Predicate returning
true if this Transformation's 'name' attribute is
set. |
boolean |
isSetTransform()
Predicate returning
true if this Transformation's 'transform' attribute
is set. |
boolean |
isText()
|
void |
setMatrix(SWIGTYPE_p_double m)
Sets the matrix to the values given in the array.
|
int |
setName(java.lang.String name)
Sets the value of the 'name' attribute of this
Transformation. |
int |
setTransform(SWIGTYPE_p_double inArray)
Sets the value of the 'transform' attribute of this
Transformation. |
int |
unsetMatrix()
Unsets the value of the 'transform' attribute of this
Transformation. |
int |
unsetName()
Unsets the value of the 'name' attribute of this
Transformation. |
int |
unsetTransform()
Unsets the value of the 'transform' attribute of this
Transformation. |
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, connectToChild, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getElementByMetaId, getElementBySId, getId, getIdAttribute, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumDisabledPlugins, getNumPlugins, getPackageCoreVersion, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetId, isSetIdAttribute, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, isSetUserData, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setId, setIdAttribute, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetId, unsetIdAttribute, unsetMetaId, unsetModelHistory, unsetNotes, unsetSBOTerm, unsetUserDatapublic Transformation(long level, long version, long pkgVersion)
Transformation using the given SBML Level, Version and
“render” package version.
level - a long integer, the SBML Level to assign to this
Transformation.
version - a long integer, the SBML Version to assign to this
Transformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this Transformation.
SBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public Transformation(long level, long version)
Transformation using the given SBML Level, Version and
“render” package version.
level - a long integer, the SBML Level to assign to this
Transformation.
version - a long integer, the SBML Version to assign to this
Transformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this Transformation.
SBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public Transformation(long level)
Transformation using the given SBML Level, Version and
“render” package version.
level - a long integer, the SBML Level to assign to this
Transformation.
version - a long integer, the SBML Version to assign to this
Transformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this Transformation.
SBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public Transformation()
Transformation using the given SBML Level, Version and
“render” package version.
level - a long integer, the SBML Level to assign to this
Transformation.
version - a long integer, the SBML Version to assign to this
Transformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this Transformation.
SBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public Transformation(RenderPkgNamespaces renderns)
Transformation using the given RenderPkgNamespaces object.
The package namespaces object used in this constructor is derived from a
SBMLNamespaces object, which encapsulates SBML Level/Version/namespaces
information. It is used to communicate the SBML Level, Version, and
package version and name information used in addition to SBML Level 3 Core. A
common approach to using libSBML's SBMLNamespaces facilities is to create an
package namespace object somewhere in a program once, then hand that object
as needed to object constructors of that package that accept it as and
argument, such as this one.
renderns - the RenderPkgNamespaces object.
SBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public Transformation(Transformation orig)
Transformation.
orig - the Transformation instance to copy.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 Transformation.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 Transformation.delete() themselves.
public SBase cloneObject()
Transformation object.
cloneObject in class SBaseTransformation object.public void getTransform(SWIGTYPE_p_double outArray)
Transformation.
outArray - double* array that will be used to return the value of the
'transform' attribute of this Transformation.
Transformation is
returned in the argument array.public java.lang.String getName()
Transformation.
getName in class SBaseTransformation as a
string.SBase.getIdAttribute(),
SBase.isSetName(),
SBase.setName(String sid),
SBase.unsetName()public SWIGTYPE_p_double getMatrix()
Transformation.
which is an array of double values of length 12.
public static SWIGTYPE_p_double getIdentityMatrix()
public boolean isSetTransform()
true if this Transformation's 'transform' attribute
is set.
true if this Transformation's 'transform' attribute has been
set, otherwise false is returned.public boolean isSetName()
true if this Transformation's 'name' attribute is
set.
isSetName in class SBasetrue if this Transformation's 'name' attribute has been set,
otherwise false is returned.SBase.getName(),
SBase.setName(String sid),
SBase.unsetName()public boolean isSetMatrix()
true if the matrix has been set or false otherwise.
The matrix is considered as set if none of the values in the matrix is NaN.
true or false depending on whether a NaN was found.public int setTransform(SWIGTYPE_p_double inArray)
Transformation.
inArray - double* array value of the 'transform' attribute to be set.
public int setName(java.lang.String name)
Transformation.
setName in class SBasename - String& value of the 'name' attribute to be set.
Calling this function with name = null or an empty string is
equivalent to calling unsetName().
public void setMatrix(SWIGTYPE_p_double m)
m - array with new values to be set for this Transformation object.public int unsetTransform()
Transformation.
public int unsetName()
Transformation.
unsetName in class SBaseSBase.getName(),
SBase.setName(String sid),
SBase.isSetName()public int unsetMatrix()
Transformation.
public boolean isImage()
true if this abstract Transformation is of type Image,
false otherwisepublic boolean isEllipse()
true if this abstract Transformation is of type Ellipse,
false otherwisepublic boolean isRectangle()
true if this abstract Transformation is of type Rectangle,
false otherwisepublic boolean isPolygon()
true if this abstract Transformation is of type Polygon,
false otherwisepublic boolean isRenderGroup()
true if this abstract Transformation is of type RenderGroup,
false otherwisepublic boolean isLineEnding()
true if this abstract Transformation is of type LineEnding,
false otherwisepublic boolean isText()
true if this abstract Transformation is of type Text,
false otherwisepublic boolean isRenderCurve()
true if this abstract Transformation is of type RenderCurve,
false otherwisepublic java.lang.String getElementName()
Transformation object.
For Transformation, the XML element name is always 'transformation'.
getElementName in class SBase'transformation'.public int getTypeCode()
Transformation object.
LibSBML attaches an identifying code to every kind of SBML object. These
are integer constants known as SBML type codes. The names of all
the codes begin with the characters SBML_.
In the Java language interface for libSBML, the
type codes are defined as static integer constants in the interface class
libsbmlConstants. Note that different Level 3
package plug-ins may use overlapping type codes; to identify the package
to which a given object belongs, call the
method on the object.
SBase.getPackageName()
The exception to this is lists: all SBML-style list elements have the type
SBML_LIST_OF, regardless of what package they
are from.
getTypeCode in class SBaseSBML_RENDER_TRANSFORMATION.
Transformation.getElementName(),
SBase.getPackageName()ListOf.getItemTypeCode()).