|
libSBML C API
5.18.0
|
Render objects are often specified relative to the current viewport, i.e. we need a way to specify relative coordinate values in curves. For this we introduced the RenderPoint_t and the RenderCubicBezier_t class in the render extension. Those two classes are used to specify curve and polygon elements.
Public Member Functions | |
| RenderPoint_t * | RenderPoint_clone (const RenderPoint_t *rp) |
| Creates and returns a deep copy of this RenderPoint_t object. More... | |
| RenderPoint_t * | RenderPoint_createRenderCubicBezier (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new RenderCubicBezier_t (RenderPoint_t) using the given SBML Level, Version and “render” package version. More... | |
| RenderPoint_t * | RenderPoint_createRenderPoint (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new RenderPoint_t (RenderPoint_t) using the given SBML Level, Version and “render” package version. More... | |
| void | RenderPoint_free (RenderPoint_t *rp) |
| Frees this RenderPoint_t object. More... | |
| const RelAbsVector_t * | RenderPoint_getX (const RenderPoint_t *rp) |
| Returns the value of the "x" element of this RenderPoint_t. More... | |
| const RelAbsVector_t * | RenderPoint_getY (const RenderPoint_t *rp) |
| Returns the value of the "y" element of this RenderPoint_t. More... | |
| const RelAbsVector_t * | RenderPoint_getZ (const RenderPoint_t *rp) |
| Returns the value of the "z" element of this RenderPoint_t. More... | |
| int | RenderPoint_hasRequiredAttributes (const RenderPoint_t *rp) |
Predicate returning 1 (true) if all the required attributes for this RenderPoint_t object have been set. More... | |
| int | RenderPoint_isRenderCubicBezier (const RenderPoint_t *rp) |
Predicate returning 1 if this RenderPoint_t is of type RenderCubicBezier_t. More... | |
| int | RenderPoint_isRenderPoint (const RenderPoint_t *rp) |
Predicate returning 1 if this RenderPoint_t is of type RenderPoint_t. More... | |
| int | RenderPoint_isSetX (const RenderPoint_t *rp) |
Predicate returning 1 (true) if this RenderPoint_t's "x" element is set. More... | |
| int | RenderPoint_isSetY (const RenderPoint_t *rp) |
Predicate returning 1 (true) if this RenderPoint_t's "y" element is set. More... | |
| int | RenderPoint_isSetZ (const RenderPoint_t *rp) |
Predicate returning 1 (true) if this RenderPoint_t's "z" element is set. More... | |
| int | RenderPoint_setX (RenderPoint_t *rp, const RelAbsVector_t *x) |
| Sets the value of the "x" element of this RenderPoint_t. More... | |
| int | RenderPoint_setY (RenderPoint_t *rp, const RelAbsVector_t *y) |
| Sets the value of the "y" element of this RenderPoint_t. More... | |
| int | RenderPoint_setZ (RenderPoint_t *rp, const RelAbsVector_t *z) |
| Sets the value of the "z" element of this RenderPoint_t. More... | |
| int | RenderPoint_unsetX (RenderPoint_t *rp) |
| Unsets the value of the "x" element of this RenderPoint_t. More... | |
| int | RenderPoint_unsetY (RenderPoint_t *rp) |
| Unsets the value of the "y" element of this RenderPoint_t. More... | |
| int | RenderPoint_unsetZ (RenderPoint_t *rp) |
| Unsets the value of the "z" element of this RenderPoint_t. More... | |
| RenderPoint_t * RenderPoint_clone | ( | const RenderPoint_t * | rp | ) |
Creates and returns a deep copy of this RenderPoint_t object.
| rp | the RenderPoint_t structure. |
| RenderPoint_t * RenderPoint_createRenderCubicBezier | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new RenderCubicBezier_t (RenderPoint_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this RenderPoint_t. |
| version | an unsigned int, the SBML Version to assign to this RenderPoint_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this RenderPoint_t. |
| RenderPoint_t * RenderPoint_createRenderPoint | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new RenderPoint_t (RenderPoint_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this RenderPoint_t. |
| version | an unsigned int, the SBML Version to assign to this RenderPoint_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this RenderPoint_t. |
| void RenderPoint_free | ( | RenderPoint_t * | rp | ) |
Frees this RenderPoint_t object.
| rp | the RenderPoint_t structure. |
| const RelAbsVector_t * RenderPoint_getX | ( | const RenderPoint_t * | rp | ) |
Returns the value of the "x" element of this RenderPoint_t.
| rp | the RenderPoint_t structure whose x is sought. |
| const RelAbsVector_t * RenderPoint_getY | ( | const RenderPoint_t * | rp | ) |
Returns the value of the "y" element of this RenderPoint_t.
| rp | the RenderPoint_t structure whose y is sought. |
| const RelAbsVector_t * RenderPoint_getZ | ( | const RenderPoint_t * | rp | ) |
Returns the value of the "z" element of this RenderPoint_t.
| rp | the RenderPoint_t structure whose z is sought. |
| int RenderPoint_hasRequiredAttributes | ( | const RenderPoint_t * | rp | ) |
Predicate returning 1 (true) if all the required attributes for this RenderPoint_t object have been set.
| rp | the RenderPoint_t structure. |
1 (true) to indicate that all the required attributes of this RenderPoint_t have been set, otherwise 0 (false) is returned.| int RenderPoint_isRenderCubicBezier | ( | const RenderPoint_t * | rp | ) |
Predicate returning 1 if this RenderPoint_t is of type RenderCubicBezier_t.
| rp | the RenderPoint_t structure. |
1 if this RenderPoint_t is of type RenderCubicBezier_t, 0 otherwise | int RenderPoint_isRenderPoint | ( | const RenderPoint_t * | rp | ) |
Predicate returning 1 if this RenderPoint_t is of type RenderPoint_t.
| rp | the RenderPoint_t structure. |
1 if this RenderPoint_t is of type RenderPoint_t, 0 otherwise | int RenderPoint_isSetX | ( | const RenderPoint_t * | rp | ) |
Predicate returning 1 (true) if this RenderPoint_t's "x" element is set.
| rp | the RenderPoint_t structure. |
1 (true) if this RenderPoint_t's "x" element has been set, otherwise 0 (false) is returned. | int RenderPoint_isSetY | ( | const RenderPoint_t * | rp | ) |
Predicate returning 1 (true) if this RenderPoint_t's "y" element is set.
| rp | the RenderPoint_t structure. |
1 (true) if this RenderPoint_t's "y" element has been set, otherwise 0 (false) is returned. | int RenderPoint_isSetZ | ( | const RenderPoint_t * | rp | ) |
Predicate returning 1 (true) if this RenderPoint_t's "z" element is set.
| rp | the RenderPoint_t structure. |
1 (true) if this RenderPoint_t's "z" element has been set, otherwise 0 (false) is returned. | int RenderPoint_setX | ( | RenderPoint_t * | rp, |
| const RelAbsVector_t * | x | ||
| ) |
Sets the value of the "x" element of this RenderPoint_t.
| rp | the RenderPoint_t structure. |
| x | RelAbsVector_t value of the "x" element to be set. |
| int RenderPoint_setY | ( | RenderPoint_t * | rp, |
| const RelAbsVector_t * | y | ||
| ) |
Sets the value of the "y" element of this RenderPoint_t.
| rp | the RenderPoint_t structure. |
| y | RelAbsVector_t value of the "y" element to be set. |
| int RenderPoint_setZ | ( | RenderPoint_t * | rp, |
| const RelAbsVector_t * | z | ||
| ) |
Sets the value of the "z" element of this RenderPoint_t.
| rp | the RenderPoint_t structure. |
| z | RelAbsVector_t value of the "z" element to be set. |
| int RenderPoint_unsetX | ( | RenderPoint_t * | rp | ) |
Unsets the value of the "x" element of this RenderPoint_t.
| rp | the RenderPoint_t structure. |
| int RenderPoint_unsetY | ( | RenderPoint_t * | rp | ) |
Unsets the value of the "y" element of this RenderPoint_t.
| rp | the RenderPoint_t structure. |
| int RenderPoint_unsetZ | ( | RenderPoint_t * | rp | ) |
Unsets the value of the "z" element of this RenderPoint_t.
| rp | the RenderPoint_t structure. |