|
libSBML C API
5.18.0
|
The GraphicalPrimitive1D_t class implements attributes and methods necessary for 1D objects like lines. The attributes that are implemented are a stroke color, a stroke width and a stroke dasharray for dashed line drawing. Additionally, this class adds an id attribute with which all graphical primitives can be referenced.
The GraphicalPrimitive1D_t class is derived from Transformation2D_t and inherits all its methods and attributes.
Public Member Functions | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_clone (const GraphicalPrimitive1D_t *gpd) |
| Creates and returns a deep copy of this GraphicalPrimitive1D_t object. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createEllipse (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new Ellipse_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createLineEnding (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new LineEnding_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createPolygon (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new Polygon_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createRectangle (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new Rectangle_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createRenderCurve (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new RenderCurve_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createRenderGroup (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new RenderGroup_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| GraphicalPrimitive1D_t * | GraphicalPrimitive1D_createText (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new Text_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version. More... | |
| void | GraphicalPrimitive1D_free (GraphicalPrimitive1D_t *gpd) |
| Frees this GraphicalPrimitive1D_t object. More... | |
| char * | GraphicalPrimitive1D_getId (const GraphicalPrimitive1D_t *gpd) |
| Returns the value of the "id" attribute of this GraphicalPrimitive1D_t. More... | |
| char * | GraphicalPrimitive1D_getStroke (const GraphicalPrimitive1D_t *gpd) |
| Returns the value of the "stroke" attribute of this GraphicalPrimitive1D_t. More... | |
| double | GraphicalPrimitive1D_getStrokeWidth (const GraphicalPrimitive1D_t *gpd) |
| Returns the value of the "stroke-width" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_hasRequiredAttributes (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 (true) if all the required attributes for this GraphicalPrimitive1D_t object have been set. More... | |
| int | GraphicalPrimitive1D_isEllipse (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Ellipse_t. More... | |
| int | GraphicalPrimitive1D_isLineEnding (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type LineEnding_t. More... | |
| int | GraphicalPrimitive1D_isPolygon (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Polygon_t. More... | |
| int | GraphicalPrimitive1D_isRectangle (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Rectangle_t. More... | |
| int | GraphicalPrimitive1D_isRenderCurve (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type RenderCurve_t. More... | |
| int | GraphicalPrimitive1D_isRenderGroup (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type RenderGroup_t. More... | |
| int | GraphicalPrimitive1D_isSetId (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "id" attribute is set. More... | |
| int | GraphicalPrimitive1D_isSetStroke (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "stroke" attribute is set. More... | |
| int | GraphicalPrimitive1D_isSetStrokeDashArray (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "stroke-dasharray" attribute is set. More... | |
| int | GraphicalPrimitive1D_isSetStrokeWidth (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "stroke-width" attribute is set. More... | |
| int | GraphicalPrimitive1D_isText (const GraphicalPrimitive1D_t *gpd) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Text_t. More... | |
| int | GraphicalPrimitive1D_setId (GraphicalPrimitive1D_t *gpd, const char *id) |
| Sets the value of the "id" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_setStroke (GraphicalPrimitive1D_t *gpd, const char *stroke) |
| Sets the value of the "stroke" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_setStrokeDashArray (GraphicalPrimitive1D_t *gpd, const char *strokeDash) |
| Sets the value of the "stroke-dasharray" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_setStrokeWidth (GraphicalPrimitive1D_t *gpd, double strokeWidth) |
| Sets the value of the "stroke-width" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_unsetId (GraphicalPrimitive1D_t *gpd) |
| Unsets the value of the "id" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_unsetStroke (GraphicalPrimitive1D_t *gpd) |
| Unsets the value of the "stroke" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_unsetStrokeDashArray (GraphicalPrimitive1D_t *gpd) |
| Unsets the value of the "stroke-dasharray" attribute of this GraphicalPrimitive1D_t. More... | |
| int | GraphicalPrimitive1D_unsetStrokeWidth (GraphicalPrimitive1D_t *gpd) |
| Unsets the value of the "stroke-width" attribute of this GraphicalPrimitive1D_t. More... | |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_clone | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Creates and returns a deep copy of this GraphicalPrimitive1D_t object.
| gpd | the GraphicalPrimitive1D_t structure. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createEllipse | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new Ellipse_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createLineEnding | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new LineEnding_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createPolygon | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new Polygon_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createRectangle | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new Rectangle_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createRenderCurve | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new RenderCurve_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createRenderGroup | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new RenderGroup_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| GraphicalPrimitive1D_t * GraphicalPrimitive1D_createText | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new Text_t (GraphicalPrimitive1D_t) using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this GraphicalPrimitive1D_t. |
| version | an unsigned int, the SBML Version to assign to this GraphicalPrimitive1D_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this GraphicalPrimitive1D_t. |
| void GraphicalPrimitive1D_free | ( | GraphicalPrimitive1D_t * | gpd | ) |
Frees this GraphicalPrimitive1D_t object.
| gpd | the GraphicalPrimitive1D_t structure. |
| char * GraphicalPrimitive1D_getId | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Returns the value of the "id" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure whose id is sought. |
| char * GraphicalPrimitive1D_getStroke | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Returns the value of the "stroke" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure whose stroke is sought. |
| double GraphicalPrimitive1D_getStrokeWidth | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Returns the value of the "stroke-width" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure whose stroke-width is sought. |
| int GraphicalPrimitive1D_hasRequiredAttributes | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 (true) if all the required attributes for this GraphicalPrimitive1D_t object have been set.
| gpd | the GraphicalPrimitive1D_t structure. |
1 (true) to indicate that all the required attributes of this GraphicalPrimitive1D_t have been set, otherwise 0 (false) is returned. | int GraphicalPrimitive1D_isEllipse | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Ellipse_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type Ellipse_t, 0 otherwise | int GraphicalPrimitive1D_isLineEnding | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type LineEnding_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type LineEnding_t, 0 otherwise | int GraphicalPrimitive1D_isPolygon | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Polygon_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type Polygon_t, 0 otherwise | int GraphicalPrimitive1D_isRectangle | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Rectangle_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type Rectangle_t, 0 otherwise | int GraphicalPrimitive1D_isRenderCurve | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type RenderCurve_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type RenderCurve_t, 0 otherwise | int GraphicalPrimitive1D_isRenderGroup | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type RenderGroup_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type RenderGroup_t, 0 otherwise | int GraphicalPrimitive1D_isSetId | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "id" attribute is set.
| gpd | the GraphicalPrimitive1D_t structure. |
1 (true) if this GraphicalPrimitive1D_t's "id" attribute has been set, otherwise 0 (false) is returned. | int GraphicalPrimitive1D_isSetStroke | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "stroke" attribute is set.
| gpd | the GraphicalPrimitive1D_t structure. |
1 (true) if this GraphicalPrimitive1D_t's "stroke" attribute has been set, otherwise 0 (false) is returned. | int GraphicalPrimitive1D_isSetStrokeDashArray | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "stroke-dasharray" attribute is set.
| gpd | the GraphicalPrimitive1D_t structure. |
1 (true) if this GraphicalPrimitive1D_t's "stroke-dasharray" attribute has been set, otherwise 0 (false) is returned. | int GraphicalPrimitive1D_isSetStrokeWidth | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 (true) if this GraphicalPrimitive1D_t's "stroke-width" attribute is set.
| gpd | the GraphicalPrimitive1D_t structure. |
1 (true) if this GraphicalPrimitive1D_t's "stroke-width" attribute has been set, otherwise 0 (false) is returned. | int GraphicalPrimitive1D_isText | ( | const GraphicalPrimitive1D_t * | gpd | ) |
Predicate returning 1 if this GraphicalPrimitive1D_t is of type Text_t.
| gpd | the GraphicalPrimitive1D_t structure. |
1 if this GraphicalPrimitive1D_t is of type Text_t, 0 otherwise | int GraphicalPrimitive1D_setId | ( | GraphicalPrimitive1D_t * | gpd, |
| const char * | id | ||
| ) |
Sets the value of the "id" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| id | const char * value of the "id" attribute to be set. |
id = NULL or an empty string is equivalent to calling GraphicalPrimitive1D_unsetId(). | int GraphicalPrimitive1D_setStroke | ( | GraphicalPrimitive1D_t * | gpd, |
| const char * | stroke | ||
| ) |
Sets the value of the "stroke" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| stroke | const char * value of the "stroke" attribute to be set. |
stroke = NULL or an empty string is equivalent to calling GraphicalPrimitive1D_unsetStroke(). | int GraphicalPrimitive1D_setStrokeDashArray | ( | GraphicalPrimitive1D_t * | gpd, |
| const char * | strokeDash | ||
| ) |
Sets the value of the "stroke-dasharray" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| strokeDash | pointer value of the "stroke-dasharray" attribute to be set. |
| int GraphicalPrimitive1D_setStrokeWidth | ( | GraphicalPrimitive1D_t * | gpd, |
| double | strokeWidth | ||
| ) |
Sets the value of the "stroke-width" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| strokeWidth | double value of the "stroke-width" attribute to be set. |
| int GraphicalPrimitive1D_unsetId | ( | GraphicalPrimitive1D_t * | gpd | ) |
Unsets the value of the "id" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| int GraphicalPrimitive1D_unsetStroke | ( | GraphicalPrimitive1D_t * | gpd | ) |
Unsets the value of the "stroke" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| int GraphicalPrimitive1D_unsetStrokeDashArray | ( | GraphicalPrimitive1D_t * | gpd | ) |
Unsets the value of the "stroke-dasharray" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |
| int GraphicalPrimitive1D_unsetStrokeWidth | ( | GraphicalPrimitive1D_t * | gpd | ) |
Unsets the value of the "stroke-width" attribute of this GraphicalPrimitive1D_t.
| gpd | the GraphicalPrimitive1D_t structure. |