libSBML C API
5.18.0
|
The Transformation_t 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
Public Member Functions | |
Transformation_t * | Transformation_clone (const Transformation_t *t) |
Creates and returns a deep copy of this Transformation_t object. More... | |
Transformation_t * | Transformation_createEllipse (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Ellipse_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createImage (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Image_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createLineEnding (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new LineEnding_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createPolygon (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Polygon_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createRectangle (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Rectangle_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createRenderCurve (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new RenderCurve_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createRenderGroup (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new RenderGroup_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
Transformation_t * | Transformation_createText (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Text_t (Transformation_t) using the given SBML Level, Version and “render” package version. More... | |
void | Transformation_free (Transformation_t *t) |
Frees this Transformation_t object. More... | |
char * | Transformation_getName (const Transformation_t *t) |
Returns the value of the "name" attribute of this Transformation_t. More... | |
int | Transformation_hasRequiredAttributes (const Transformation_t *t) |
Predicate returning 1 (true) if all the required attributes for this Transformation_t object have been set. More... | |
int | Transformation_isEllipse (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type Ellipse_t. More... | |
int | Transformation_isImage (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type Image_t. More... | |
int | Transformation_isLineEnding (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type LineEnding_t. More... | |
int | Transformation_isPolygon (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type Polygon_t. More... | |
int | Transformation_isRectangle (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type Rectangle_t. More... | |
int | Transformation_isRenderCurve (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type RenderCurve_t. More... | |
int | Transformation_isRenderGroup (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type RenderGroup_t. More... | |
int | Transformation_isSetName (const Transformation_t *t) |
Predicate returning 1 (true) if this Transformation_t's "name" attribute is set. More... | |
int | Transformation_isSetTranform (const Transformation_t *t) |
Predicate returning 1 (true) if this Transformation_t's "transform" attribute is set. More... | |
int | Transformation_isText (const Transformation_t *t) |
Predicate returning 1 if this Transformation_t is of type Text_t. More... | |
int | Transformation_setName (Transformation_t *t, const char *name) |
Sets the value of the "name" attribute of this Transformation_t. More... | |
int | Transformation_setTransform (Transformation_t *t, double *transform) |
Sets the value of the "transform" attribute of this Transformation_t. More... | |
int | Transformation_unsetName (Transformation_t *t) |
Unsets the value of the "name" attribute of this Transformation_t. More... | |
Transformation_t * Transformation_clone | ( | const Transformation_t * | t | ) |
Creates and returns a deep copy of this Transformation_t object.
t | the Transformation_t structure. |
Transformation_t * Transformation_createEllipse | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Ellipse_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createImage | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Image_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createLineEnding | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new LineEnding_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createPolygon | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Polygon_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createRectangle | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Rectangle_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createRenderCurve | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new RenderCurve_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createRenderGroup | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new RenderGroup_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
Transformation_t * Transformation_createText | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Text_t (Transformation_t) using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Transformation_t. |
version | an unsigned int, the SBML Version to assign to this Transformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Transformation_t. |
void Transformation_free | ( | Transformation_t * | t | ) |
Frees this Transformation_t object.
t | the Transformation_t structure. |
char * Transformation_getName | ( | const Transformation_t * | t | ) |
Returns the value of the "name" attribute of this Transformation_t.
t | the Transformation_t structure whose name is sought. |
int Transformation_hasRequiredAttributes | ( | const Transformation_t * | t | ) |
Predicate returning 1
(true) if all the required attributes for this Transformation_t object have been set.
t | the Transformation_t structure. |
1
(true) to indicate that all the required attributes of this Transformation_t have been set, otherwise 0
(false) is returned.int Transformation_isEllipse | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type Ellipse_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type Ellipse_t, 0
otherwise int Transformation_isImage | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type Image_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type Image_t, 0
otherwise int Transformation_isLineEnding | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type LineEnding_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type LineEnding_t, 0
otherwise int Transformation_isPolygon | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type Polygon_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type Polygon_t, 0
otherwise int Transformation_isRectangle | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type Rectangle_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type Rectangle_t, 0
otherwise int Transformation_isRenderCurve | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type RenderCurve_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type RenderCurve_t, 0
otherwise int Transformation_isRenderGroup | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type RenderGroup_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type RenderGroup_t, 0
otherwise int Transformation_isSetName | ( | const Transformation_t * | t | ) |
Predicate returning 1
(true) if this Transformation_t's "name" attribute is set.
t | the Transformation_t structure. |
1
(true) if this Transformation_t's "name" attribute has been set, otherwise 0
(false) is returned. int Transformation_isSetTranform | ( | const Transformation_t * | t | ) |
Predicate returning 1
(true) if this Transformation_t's "transform" attribute is set.
t | the Transformation_t structure. |
1
(true) if this Transformation_t's "transform" attribute has been set, otherwise 0
(false) is returned. int Transformation_isText | ( | const Transformation_t * | t | ) |
Predicate returning 1
if this Transformation_t is of type Text_t.
t | the Transformation_t structure. |
1
if this Transformation_t is of type Text_t, 0
otherwise int Transformation_setName | ( | Transformation_t * | t, |
const char * | name | ||
) |
Sets the value of the "name" attribute of this Transformation_t.
t | the Transformation_t structure. |
name | const char * value of the "name" attribute to be set. |
name
= NULL
or an empty string is equivalent to calling Transformation_unsetName(). int Transformation_setTransform | ( | Transformation_t * | t, |
double * | transform | ||
) |
Sets the value of the "transform" attribute of this Transformation_t.
t | the Transformation_t structure. |
transform | double * array of the "transform" attribute to be set. |
int Transformation_unsetName | ( | Transformation_t * | t | ) |
Unsets the value of the "name" attribute of this Transformation_t.
t | the Transformation_t structure. |