libSBML C API
5.18.0
|
The ListOfDrawables_t is a container for Transformation2D_t elements. It is implemented in libSBML only, and does not appear in the "render" specification, where the RenderGroup_t object contains child Transformation2D_t objects directly.
The relationship between the lists and the rest of an SBML model is illustrated by the following (for SBML Level 2 Version 4):
SBML Level 3 Version 1 has essentially the same structure as Level 2 Version 4, depicted above, but SBML Level 3 Version 2 allows containers to contain zero or more of the relevant object, instead of requiring at least one. As such, libsbml will write out an otherwise-empty ListOf___ element that has any optional attribute set (such as 'id' or 'metaid'), that has an optional child (such as a 'notes' or 'annotation'), or that has attributes or children set from any SBML Level 3 package, whether or not the ListOf___ has any other children.
Readers may wonder about the motivations for using the ListOf___ containers in SBML. A simpler approach in XML might be to place the components all directly at the top level of the model definition. The choice made in SBML is to group them within XML elements named after ListOfClassname, in part because it helps organize the components. More importantly, the fact that the container classes are derived from SBase_t means that software tools can add information about the lists themselves into each list container's "annotation".
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.
Public Member Functions | |
Transformation2D_t * | ListOfDrawables_getById (ListOf_t *lo, const char *sid) |
Get a Transformation2D_t from the ListOf_t based on its identifier. More... | |
Transformation2D_t * | ListOfDrawables_getTransformation2D (ListOf_t *lo, unsigned int n) |
Get a Transformation2D_t from the ListOf_t. More... | |
Transformation2D_t * | ListOfDrawables_remove (ListOf_t *lo, unsigned int n) |
Removes the nth Transformation2D_t from this ListOf_t and returns a pointer to it. More... | |
Transformation2D_t * | ListOfDrawables_removeById (ListOf_t *lo, const char *sid) |
Removes the Transformation2D_t from this ListOf_t based on its identifier and returns a pointer to it. More... | |
Transformation2D_t * ListOfDrawables_getById | ( | ListOf_t * | lo, |
const char * | sid | ||
) |
Get a Transformation2D_t from the ListOf_t based on its identifier.
lo | the ListOf_t structure to search. |
sid | a string representing the identifier of the Transformation2D_t to retrieve. |
sid
or NULL
if no such Transformation2D_t exists.Transformation2D_t * ListOfDrawables_getTransformation2D | ( | ListOf_t * | lo, |
unsigned int | n | ||
) |
Get a Transformation2D_t from the ListOf_t.
lo | the ListOf_t structure to search. |
n | an unsigned int representing the index of the Transformation2D_t to retrieve. |
n
is invalid, NULL
is returned.Transformation2D_t * ListOfDrawables_remove | ( | ListOf_t * | lo, |
unsigned int | n | ||
) |
Removes the nth Transformation2D_t from this ListOf_t and returns a pointer to it.
lo | the ListOf_t structure to search. |
n | an unsigned int representing the index of the Transformation2D_t to remove. |
Transformation2D_t * ListOfDrawables_removeById | ( | ListOf_t * | lo, |
const char * | sid | ||
) |
Removes the Transformation2D_t from this ListOf_t based on its identifier and returns a pointer to it.
lo | the ListOf_t structure to search. |
sid | a string representing the identifier of the Transformation2D_t to remove. |