Graphviz 13.0.0~dev.20241220.2304
|
#include "config.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <common/macros.h>
#include <common/const.h>
#include <gvc/gvplugin_render.h>
#include <gvc/gvplugin_device.h>
#include <gvc/gvio.h>
#include <common/utils.h>
#include <common/color.h>
#include <util/agxbuf.h>
#include <util/prisize_t.h>
#include <util/streq.h>
#include <util/unreachable.h>
Go to the source code of this file.
Macros | |
#define | BEZIERSUBDIVISION 6 |
#define | maxColors 512 |
Enumerations | |
enum | format_type { FORMAT_FIG } |
Functions | |
static void | figptarray (GVJ_t *job, pointf *A, size_t n, int close) |
static int | figColorResolve (bool *new, unsigned char r, unsigned char g, unsigned char b) |
static void | fig_resolve_color (GVJ_t *job, gvcolor_t *color) |
static void | fig_line_style (obj_state_t *obj, int *line_style, double *style_val) |
static void | fig_comment (GVJ_t *job, char *str) |
static void | fig_begin_graph (GVJ_t *job) |
static void | fig_end_graph (GVJ_t *job) |
static void | fig_begin_page (GVJ_t *job) |
static void | fig_begin_node (GVJ_t *job) |
static void | fig_end_node (GVJ_t *job) |
static void | fig_begin_edge (GVJ_t *job) |
static void | fig_end_edge (GVJ_t *job) |
static void | fig_textspan (GVJ_t *job, pointf p, textspan_t *span) |
static void | fig_ellipse (GVJ_t *job, pointf *A, int filled) |
static void | fig_bezier (GVJ_t *job, pointf *A, size_t n, int filled) |
static void | fig_polygon (GVJ_t *job, pointf *A, size_t n, int filled) |
static void | fig_polyline (GVJ_t *job, pointf *A, size_t n) |
Variables | |
static int | Depth |
static char * | figcolor [] |
gvrender_engine_t | fig_engine |
static char * | fig_knowncolors [] |
gvrender_features_t | render_features_fig |
gvdevice_features_t | device_features_fig |
gvplugin_installed_t | gvrender_fig_types [] |
gvplugin_installed_t | gvdevice_fig_types [] |
#define BEZIERSUBDIVISION 6 |
Definition at line 32 of file gvrender_core_fig.c.
#define maxColors 512 |
enum format_type |
Enumerator | |
---|---|
FORMAT_FIG |
Definition at line 34 of file gvrender_core_fig.c.
|
static |
Definition at line 193 of file gvrender_core_fig.c.
References Depth.
|
static |
Definition at line 147 of file gvrender_core_fig.c.
References agnameof(), GVJ_s::common, obj_state_s::g, gvprintf(), gvputs(), GVCOMMON_s::info, GVJ_s::obj, GVJ_s::pagesArraySize, obj_state_s::u, point::x, and point::y.
|
static |
Definition at line 179 of file gvrender_core_fig.c.
References Depth.
|
static |
Definition at line 172 of file gvrender_core_fig.c.
References Depth.
Definition at line 297 of file gvrender_core_fig.c.
References A, agxbfree(), agxbprint(), agxbuse(), Bezier(), BEZIERSUBDIVISION, Depth, fig_line_style(), obj_state_s::fillcolor, gvprintf(), gvputs(), color_s::index, NULL, GVJ_s::obj, obj_state_s::pencolor, obj_state_s::penwidth, color_s::u, and V.
|
static |
Definition at line 142 of file gvrender_core_fig.c.
References gvprintf(), and str.
Definition at line 261 of file gvrender_core_fig.c.
References A, Depth, fig_line_style(), obj_state_s::fillcolor, gvprintf(), color_s::index, GVJ_s::obj, obj_state_s::pencolor, obj_state_s::penwidth, and color_s::u.
|
static |
Definition at line 200 of file gvrender_core_fig.c.
References Depth.
|
static |
Definition at line 167 of file gvrender_core_fig.c.
References gvputs().
|
static |
Definition at line 186 of file gvrender_core_fig.c.
References Depth.
|
static |
Definition at line 123 of file gvrender_core_fig.c.
References obj_state_s::pen, PEN_DASHED, PEN_DOTTED, and PEN_SOLID.
Referenced by fig_bezier(), fig_ellipse(), fig_polygon(), and fig_polyline().
Definition at line 372 of file gvrender_core_fig.c.
References A, Depth, fig_line_style(), figptarray(), obj_state_s::fillcolor, gvprintf(), color_s::index, GVJ_s::obj, obj_state_s::pencolor, obj_state_s::penwidth, PRISIZE_T, and color_s::u.
Definition at line 402 of file gvrender_core_fig.c.
References A, Depth, fig_line_style(), figptarray(), gvprintf(), color_s::index, GVJ_s::obj, obj_state_s::pencolor, obj_state_s::penwidth, PRISIZE_T, and color_s::u.
Definition at line 87 of file gvrender_core_fig.c.
References color(), COLOR_INDEX, COLOR_STRING, figcolor, figColorResolve(), gvprintf(), RGBA_BYTE, streq(), and UNREACHABLE.
|
static |
Definition at line 207 of file gvrender_core_fig.c.
References color(), Depth, font, textspan_t::font, gvprintf(), gvputs(), gvputs_nonascii(), color_s::index, textspan_t::just, M_PI, GVJ_s::obj, obj_state_s::pencolor, textfont_t::postscript_alias, GVJ_s::rotation, textfont_t::size, textspan_t::str, color_s::u, pointf_s::x, _PostscriptAlias::xfig_code, pointf_s::y, and GVJ_s::zoom.
|
static |
Definition at line 48 of file gvrender_core_fig.c.
References dist(), maxColors, and top().
Referenced by fig_resolve_color().
Definition at line 38 of file gvrender_core_fig.c.
References A, gvprintf(), and gvputs().
Referenced by fig_polygon(), and fig_polyline().
|
static |
Definition at line 36 of file gvrender_core_fig.c.
Referenced by fig_begin_edge(), fig_begin_node(), fig_begin_page(), fig_bezier(), fig_ellipse(), fig_end_edge(), fig_end_node(), fig_polygon(), fig_polyline(), and fig_textspan().
gvdevice_features_t device_features_fig |
Definition at line 481 of file gvrender_core_fig.c.
gvrender_engine_t fig_engine |
Definition at line 432 of file gvrender_core_fig.c.
|
static |
Definition at line 467 of file gvrender_core_fig.c.
|
static |
Definition at line 84 of file gvrender_core_fig.c.
Referenced by fig_resolve_color().
gvplugin_installed_t gvdevice_fig_types[] |
Definition at line 503 of file gvrender_core_fig.c.
gvplugin_installed_t gvrender_fig_types[] |
Definition at line 498 of file gvrender_core_fig.c.
gvrender_features_t render_features_fig |
Definition at line 472 of file gvrender_core_fig.c.