libSBML C API
5.18.0
|
The Transformation2D_t class represents a 2D transformation. it is derived from Transformation_t 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_t should always be consistent.
Public Member Functions | |
Transformation2D_t * | Transformation2D_clone (const Transformation2D_t *td) |
Creates and returns a deep copy of this Transformation2D_t object. More... | |
Transformation2D_t * | Transformation2D_createEllipse (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Ellipse_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createImage (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Image_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createLineEnding (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new LineEnding_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createPolygon (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Polygon_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createRectangle (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Rectangle_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createRenderCurve (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new RenderCurve_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createRenderGroup (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new RenderGroup_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation2D_t * | Transformation2D_createText (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Text_t (Transformation2D_t) using the given SBML Level, Version and “render” package version. More... | |
void | Transformation2D_free (Transformation2D_t *td) |
Frees this Transformation2D_t object. More... | |
int | Transformation2D_hasRequiredAttributes (const Transformation2D_t *td) |
Predicate returning 1 (true) if all the required attributes for this Transformation2D_t object have been set. More... | |
int | Transformation2D_isEllipse (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type Ellipse_t. More... | |
int | Transformation2D_isImage (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type Image_t. More... | |
int | Transformation2D_isLineEnding (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type LineEnding_t. More... | |
int | Transformation2D_isPolygon (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type Polygon_t. More... | |
int | Transformation2D_isRectangle (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type Rectangle_t. More... | |
int | Transformation2D_isRenderCurve (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type RenderCurve_t. More... | |
int | Transformation2D_isRenderGroup (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type RenderGroup_t. More... | |
int | Transformation2D_isText (const Transformation2D_t *td) |
Predicate returning 1 if this Transformation2D_t is of type Text_t. More... | |
Transformation2D_t * Transformation2D_clone | ( | const Transformation2D_t * | td | ) |
Creates and returns a deep copy of this Transformation2D_t object.
td | the Transformation2D_t structure. |
Transformation2D_t * Transformation2D_createEllipse | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Ellipse_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createImage | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Image_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createLineEnding | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new LineEnding_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createPolygon | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Polygon_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createRectangle | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Rectangle_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createRenderCurve | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new RenderCurve_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createRenderGroup | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new RenderGroup_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
Transformation2D_t * Transformation2D_createText | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Text_t (Transformation2D_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation2D_t. |
version | an unsigned int, the SBML Version to assign to this Transformation2D_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation2D_t. |
void Transformation2D_free | ( | Transformation2D_t * | td | ) |
Frees this Transformation2D_t object.
td | the Transformation2D_t structure. |
int Transformation2D_hasRequiredAttributes | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
(true) if all the required attributes for this Transformation2D_t object have been set.
td | the Transformation2D_t structure. |
1
(true) to indicate that all the required attributes of this Transformation2D_t have been set, otherwise 0
(false) is returned. int Transformation2D_isEllipse | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type Ellipse_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type Ellipse_t, 0
otherwise int Transformation2D_isImage | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type Image_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type Image_t, 0
otherwise int Transformation2D_isLineEnding | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type LineEnding_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type LineEnding_t, 0
otherwise int Transformation2D_isPolygon | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type Polygon_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type Polygon_t, 0
otherwise int Transformation2D_isRectangle | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type Rectangle_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type Rectangle_t, 0
otherwise int Transformation2D_isRenderCurve | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type RenderCurve_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type RenderCurve_t, 0
otherwise int Transformation2D_isRenderGroup | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type RenderGroup_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type RenderGroup_t, 0
otherwise int Transformation2D_isText | ( | const Transformation2D_t * | td | ) |
Predicate returning 1
if this Transformation2D_t is of type Text_t.
td | the Transformation2D_t structure. |
1
if this Transformation2D_t is of type Text_t, 0
otherwise