libSBML C API
5.18.0
|
LineEndings in the SBML Level 3 Render package are used to apply certain decorations to the end of curves. Since many curves in layout diagrams use the same decoration for the beginnings and start of a line, it would be highly redundant to encode those decorations with each line. Therefore, LineEnding_t objects can be defined which are then applied to the beginning or the ends of several curve objects.
A LineEnding_t contains an id by which it can be referenced from curve styles, it contains a visual representation of the decoration in the form of a render extension Group_t object and it has some attributes that define the viewport and how the LineEnding_t is to be applied to a curve.
A LineEnding_t object is only valid if it has an id, a viewport that has an area which is not 0 and a valid group object.
Public Member Functions | |
LineEnding_t * | LineEnding_clone (const LineEnding_t *le) |
Creates and returns a deep copy of this LineEnding_t object. More... | |
LineEnding_t * | LineEnding_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new LineEnding_t using the given SBML Level, Version and “render” package version. More... | |
BoundingBox_t * | LineEnding_createBoundingBox (LineEnding_t *le) |
Creates a new BoundingBox_t object, adds it to this LineEnding_t object and returns the BoundingBox_t object created. More... | |
RenderGroup_t * | LineEnding_createGroup (LineEnding_t *le) |
Creates a new RenderGroup_t object, adds it to this LineEnding_t object and returns the RenderGroup_t object created. More... | |
void | LineEnding_free (LineEnding_t *le) |
Frees this LineEnding_t object. More... | |
const BoundingBox_t * | LineEnding_getBoundingBox (const LineEnding_t *le) |
Returns the value of the "boundingBox" element of this LineEnding_t. More... | |
int | LineEnding_getEnableRotationalMapping (const LineEnding_t *le) |
Returns the value of the "enableRotationalMapping" attribute of this LineEnding_t. More... | |
const RenderGroup_t * | LineEnding_getGroup (const LineEnding_t *le) |
Returns the value of the "group" element of this LineEnding_t. More... | |
char * | LineEnding_getId (const LineEnding_t *le) |
Returns the value of the "id" attribute of this LineEnding_t. More... | |
int | LineEnding_hasRequiredAttributes (const LineEnding_t *le) |
Predicate returning 1 (true) if all the required attributes for this LineEnding_t object have been set. More... | |
int | LineEnding_hasRequiredElements (const LineEnding_t *le) |
Predicate returning 1 (true) if all the required elements for this LineEnding_t object have been set. More... | |
int | LineEnding_isSetBoundingBox (const LineEnding_t *le) |
Predicate returning 1 (true) if this LineEnding_t's "boundingBox" element is set. More... | |
int | LineEnding_isSetEnableRotationalMapping (const LineEnding_t *le) |
Predicate returning 1 (true) if this LineEnding_t's "enableRotationalMapping" attribute is set. More... | |
int | LineEnding_isSetGroup (const LineEnding_t *le) |
Predicate returning 1 (true) if this LineEnding_t's "group" element is set. More... | |
int | LineEnding_isSetId (const LineEnding_t *le) |
Predicate returning 1 (true) if this LineEnding_t's "id" attribute is set. More... | |
int | LineEnding_setBoundingBox (LineEnding_t *le, const BoundingBox_t *boundingBox) |
Sets the value of the "boundingBox" element of this LineEnding_t. More... | |
int | LineEnding_setEnableRotationalMapping (LineEnding_t *le, int enableRotationalMapping) |
Sets the value of the "enableRotationalMapping" attribute of this LineEnding_t. More... | |
int | LineEnding_setGroup (LineEnding_t *le, const RenderGroup_t *group) |
Sets the value of the "group" element of this LineEnding_t. More... | |
int | LineEnding_setId (LineEnding_t *le, const char *id) |
Sets the value of the "id" attribute of this LineEnding_t. More... | |
int | LineEnding_unsetBoundingBox (LineEnding_t *le) |
Unsets the value of the "boundingBox" element of this LineEnding_t. More... | |
int | LineEnding_unsetEnableRotationalMapping (LineEnding_t *le) |
Unsets the value of the "enableRotationalMapping" attribute of this LineEnding_t. More... | |
int | LineEnding_unsetGroup (LineEnding_t *le) |
Unsets the value of the "group" element of this LineEnding_t. More... | |
int | LineEnding_unsetId (LineEnding_t *le) |
Unsets the value of the "id" attribute of this LineEnding_t. More... | |
LineEnding_t * LineEnding_clone | ( | const LineEnding_t * | le | ) |
Creates and returns a deep copy of this LineEnding_t object.
le | the LineEnding_t structure. |
LineEnding_t * LineEnding_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new LineEnding_t using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this LineEnding_t. |
version | an unsigned int, the SBML Version to assign to this LineEnding_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this LineEnding_t. |
BoundingBox_t * LineEnding_createBoundingBox | ( | LineEnding_t * | le | ) |
Creates a new BoundingBox_t object, adds it to this LineEnding_t object and returns the BoundingBox_t object created.
le | the LineEnding_t structure to which the BoundingBox_t should be added. |
RenderGroup_t * LineEnding_createGroup | ( | LineEnding_t * | le | ) |
Creates a new RenderGroup_t object, adds it to this LineEnding_t object and returns the RenderGroup_t object created.
le | the LineEnding_t structure to which the RenderGroup_t should be added. |
void LineEnding_free | ( | LineEnding_t * | le | ) |
Frees this LineEnding_t object.
le | the LineEnding_t structure. |
const BoundingBox_t * LineEnding_getBoundingBox | ( | const LineEnding_t * | le | ) |
Returns the value of the "boundingBox" element of this LineEnding_t.
le | the LineEnding_t structure whose boundingBox is sought. |
int LineEnding_getEnableRotationalMapping | ( | const LineEnding_t * | le | ) |
Returns the value of the "enableRotationalMapping" attribute of this LineEnding_t.
le | the LineEnding_t structure whose enableRotationalMapping is sought. |
const RenderGroup_t * LineEnding_getGroup | ( | const LineEnding_t * | le | ) |
Returns the value of the "group" element of this LineEnding_t.
le | the LineEnding_t structure whose group is sought. |
char * LineEnding_getId | ( | const LineEnding_t * | le | ) |
Returns the value of the "id" attribute of this LineEnding_t.
le | the LineEnding_t structure whose id is sought. |
int LineEnding_hasRequiredAttributes | ( | const LineEnding_t * | le | ) |
Predicate returning 1
(true) if all the required attributes for this LineEnding_t object have been set.
le | the LineEnding_t structure. |
1
(true) to indicate that all the required attributes of this LineEnding_t have been set, otherwise 0
(false) is returned.int LineEnding_hasRequiredElements | ( | const LineEnding_t * | le | ) |
Predicate returning 1
(true) if all the required elements for this LineEnding_t object have been set.
le | the LineEnding_t structure. |
1
(true) to indicate that all the required elements of this LineEnding_t have been set, otherwise 0
(false) is returned.int LineEnding_isSetBoundingBox | ( | const LineEnding_t * | le | ) |
Predicate returning 1
(true) if this LineEnding_t's "boundingBox" element is set.
le | the LineEnding_t structure. |
1
(true) if this LineEnding_t's "boundingBox" element has been set, otherwise 0
(false) is returned. int LineEnding_isSetEnableRotationalMapping | ( | const LineEnding_t * | le | ) |
Predicate returning 1
(true) if this LineEnding_t's "enableRotationalMapping" attribute is set.
le | the LineEnding_t structure. |
1
(true) if this LineEnding_t's "enableRotationalMapping" attribute has been set, otherwise 0
(false) is returned. int LineEnding_isSetGroup | ( | const LineEnding_t * | le | ) |
Predicate returning 1
(true) if this LineEnding_t's "group" element is set.
le | the LineEnding_t structure. |
1
(true) if this LineEnding_t's "group" element has been set, otherwise 0
(false) is returned. int LineEnding_isSetId | ( | const LineEnding_t * | le | ) |
Predicate returning 1
(true) if this LineEnding_t's "id" attribute is set.
le | the LineEnding_t structure. |
1
(true) if this LineEnding_t's "id" attribute has been set, otherwise 0
(false) is returned. int LineEnding_setBoundingBox | ( | LineEnding_t * | le, |
const BoundingBox_t * | boundingBox | ||
) |
Sets the value of the "boundingBox" element of this LineEnding_t.
le | the LineEnding_t structure. |
boundingBox | BoundingBox_t value of the "boundingBox" element to be set. |
int LineEnding_setEnableRotationalMapping | ( | LineEnding_t * | le, |
int | enableRotationalMapping | ||
) |
Sets the value of the "enableRotationalMapping" attribute of this LineEnding_t.
le | the LineEnding_t structure. |
enableRotationalMapping | int value of the "enableRotationalMapping" attribute to be set. |
int LineEnding_setGroup | ( | LineEnding_t * | le, |
const RenderGroup_t * | group | ||
) |
Sets the value of the "group" element of this LineEnding_t.
le | the LineEnding_t structure. |
group | RenderGroup_t value of the "group" element to be set. |
int LineEnding_setId | ( | LineEnding_t * | le, |
const char * | id | ||
) |
Sets the value of the "id" attribute of this LineEnding_t.
le | the LineEnding_t structure. |
id | const char * value of the "id" attribute to be set. |
id
= NULL
or an empty string is equivalent to calling LineEnding_unsetId(). int LineEnding_unsetBoundingBox | ( | LineEnding_t * | le | ) |
Unsets the value of the "boundingBox" element of this LineEnding_t.
le | the LineEnding_t structure. |
int LineEnding_unsetEnableRotationalMapping | ( | LineEnding_t * | le | ) |
Unsets the value of the "enableRotationalMapping" attribute of this LineEnding_t.
le | the LineEnding_t structure. |
int LineEnding_unsetGroup | ( | LineEnding_t * | le | ) |
Unsets the value of the "group" element of this LineEnding_t.
le | the LineEnding_t structure. |
int LineEnding_unsetId | ( | LineEnding_t * | le | ) |
Unsets the value of the "id" attribute of this LineEnding_t.
le | the LineEnding_t structure. |