|
libSBML C API
5.18.0
|
LocalRenderInformation_t is one of the subclasses of RenderInformationBase_t. A "local rendering information" object contains color definitions, gradient definitions and line endings as defined in RenderInformationBase_t. Additionally it has a list of local styles which specifies type, role and id based render information. Local render information can specify id based render information because it does belong to a certain layout and it can reference ids of object in that layout.
| int LocalRenderInformation_addLocalStyle | ( | LocalRenderInformation_t * | lri, |
| const LocalStyle_t * | ls | ||
| ) |
Adds a copy of the given LocalStyle_t to this LocalRenderInformation_t.
| lri | the LocalRenderInformation_t structure to which the LocalStyle_t should be added. |
| ls | the LocalStyle_t object to add. |
| LocalRenderInformation_t * LocalRenderInformation_clone | ( | const LocalRenderInformation_t * | lri | ) |
Creates and returns a deep copy of this LocalRenderInformation_t object.
| lri | the LocalRenderInformation_t structure. |
| LocalRenderInformation_t * LocalRenderInformation_create | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new LocalRenderInformation_t using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this LocalRenderInformation_t. |
| version | an unsigned int, the SBML Version to assign to this LocalRenderInformation_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this LocalRenderInformation_t. |
| LocalStyle_t * LocalRenderInformation_createLocalStyle | ( | LocalRenderInformation_t * | lri | ) |
Creates a new LocalStyle_t object, adds it to this LocalRenderInformation_t object and returns the LocalStyle_t object created.
| lri | the LocalRenderInformation_t structure to which the LocalStyle_t should be added. |
| void LocalRenderInformation_free | ( | LocalRenderInformation_t * | lri | ) |
Frees this LocalRenderInformation_t object.
| lri | the LocalRenderInformation_t structure. |
| ListOf_t * LocalRenderInformation_getListOfLocalStyles | ( | LocalRenderInformation_t * | lri | ) |
Returns a ListOf_t * containing LocalStyle_t objects from this LocalRenderInformation_t.
| lri | the LocalRenderInformation_t structure whose ListOfLocalStyles_t is sought. |
| LocalStyle_t * LocalRenderInformation_getLocalStyle | ( | LocalRenderInformation_t * | lri, |
| unsigned int | n | ||
| ) |
Get a LocalStyle_t from the LocalRenderInformation_t.
| lri | the LocalRenderInformation_t structure to search. |
| n | an unsigned int representing the index of the LocalStyle_t to retrieve. |
n is invalid, NULL is returned.| unsigned int LocalRenderInformation_getNumLocalStyles | ( | LocalRenderInformation_t * | lri | ) |
Get the number of LocalStyle_t objects in this LocalRenderInformation_t.
| lri | the LocalRenderInformation_t structure to query. |
| int LocalRenderInformation_hasRequiredAttributes | ( | const LocalRenderInformation_t * | lri | ) |
Predicate returning 1 (true) if all the required attributes for this LocalRenderInformation_t object have been set.
| lri | the LocalRenderInformation_t structure. |
1 (true) to indicate that all the required attributes of this LocalRenderInformation_t have been set, otherwise 0 (false) is returned. | int LocalRenderInformation_hasRequiredElements | ( | const LocalRenderInformation_t * | lri | ) |
Predicate returning 1 (true) if all the required elements for this LocalRenderInformation_t object have been set.
| lri | the LocalRenderInformation_t structure. |
1 (true) to indicate that all the required elements of this LocalRenderInformation_t have been set, otherwise 0 (false) is returned.| LocalStyle_t * LocalRenderInformation_removeLocalStyle | ( | LocalRenderInformation_t * | lri, |
| unsigned int | n | ||
| ) |
Removes the nth LocalStyle_t from this LocalRenderInformation_t and returns a pointer to it.
| lri | the LocalRenderInformation_t structure to search. |
| n | an unsigned int representing the index of the LocalStyle_t to remove. |