|
Graphviz 16.0.0~dev.20260810.2334
|
#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/alloc.h>#include <util/prisize_t.h>#include <util/streq.h>#include <util/unreachable.h>Go to the source code of this file.
Data Structures | |
| struct | fig_state_t |
Macros | |
| #define | BEZIERSUBDIVISION 6 |
| #define | maxColors 512 |
Enumerations | |
| enum | { FORMAT_FIG } |
Functions | |
| static void | fig_begin_job (GVJ_t *job) |
| static void | fig_end_job (GVJ_t *job) |
| static void | figptarray (GVJ_t *job, pointf *A, size_t n, int close) |
| static int | figColorResolve (fig_state_t *st, 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 char * | figcolor [] |
| static gvrender_engine_t | fig_engine |
| static char * | fig_knowncolors [] |
| static gvrender_features_t | render_features_fig |
| static gvdevice_features_t | device_features_fig |
| gvplugin_installed_t | gvrender_fig_types [] |
| gvplugin_installed_t | gvdevice_fig_types [] |
| #define BEZIERSUBDIVISION 6 |
Definition at line 33 of file gvrender_core_fig.c.
| #define maxColors 512 |
Definition at line 37 of file gvrender_core_fig.c.
| anonymous enum |
| Enumerator | |
|---|---|
| FORMAT_FIG | |
Definition at line 35 of file gvrender_core_fig.c.
|
static |
Definition at line 205 of file gvrender_core_fig.c.
References fig_state_t::Depth, and GVJ_s::window.
|
static |
Definition at line 162 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 47 of file gvrender_core_fig.c.
References gv_alloc(), and GVJ_s::window.
|
static |
Definition at line 193 of file gvrender_core_fig.c.
References fig_state_t::Depth, and GVJ_s::window.
|
static |
Definition at line 187 of file gvrender_core_fig.c.
References fig_state_t::Depth, and GVJ_s::window.
Definition at line 309 of file gvrender_core_fig.c.
References A, agxbfree(), agxbprint(), agxbuse(), Bezier(), BEZIERSUBDIVISION, fig_state_t::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, V, and GVJ_s::window.
|
static |
Definition at line 157 of file gvrender_core_fig.c.
References gvprintf(), and str.
Definition at line 272 of file gvrender_core_fig.c.
References A, fig_state_t::Depth, fig_line_style(), obj_state_s::fillcolor, gvprintf(), color_s::index, GVJ_s::obj, obj_state_s::pencolor, obj_state_s::penwidth, color_s::u, and GVJ_s::window.
|
static |
Definition at line 211 of file gvrender_core_fig.c.
References fig_state_t::Depth, and GVJ_s::window.
|
static |
Definition at line 182 of file gvrender_core_fig.c.
References gvputs().
|
static |
Definition at line 51 of file gvrender_core_fig.c.
References free(), NULL, and GVJ_s::window.
|
static |
Definition at line 199 of file gvrender_core_fig.c.
References fig_state_t::Depth, and GVJ_s::window.
|
static |
Definition at line 138 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 385 of file gvrender_core_fig.c.
References A, fig_state_t::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, color_s::u, and GVJ_s::window.
Definition at line 416 of file gvrender_core_fig.c.
References A, fig_state_t::Depth, fig_line_style(), figptarray(), gvprintf(), color_s::index, GVJ_s::obj, obj_state_s::pencolor, obj_state_s::penwidth, PRISIZE_T, color_s::u, and GVJ_s::window.
Definition at line 102 of file gvrender_core_fig.c.
References color(), COLOR_INDEX, COLOR_STRING, figcolor, figColorResolve(), gvprintf(), RGBA_BYTE, streq(), UNREACHABLE, and GVJ_s::window.
|
static |
Definition at line 217 of file gvrender_core_fig.c.
References color(), fig_state_t::Depth, font, textspan_t::font, gvprintf(), gvputs(), gvputs_nonascii(), color_s::index, textspan_t::just, length(), 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, GVJ_s::window, pointf_s::x, _PostscriptAlias::xfig_code, pointf_s::y, and GVJ_s::zoom.
|
static |
| st | Tracker of allocated colors |
Definition at line 67 of file gvrender_core_fig.c.
References fig_state_t::blue, dist(), fig_state_t::green, maxColors, fig_state_t::red, and fig_state_t::top.
Referenced by fig_resolve_color().
Definition at line 56 of file gvrender_core_fig.c.
References A, gvprintf(), and gvputs().
Referenced by fig_polygon(), and fig_polyline().
|
static |
Definition at line 495 of file gvrender_core_fig.c.
|
static |
Definition at line 447 of file gvrender_core_fig.c.
|
static |
Definition at line 482 of file gvrender_core_fig.c.
|
static |
Definition at line 99 of file gvrender_core_fig.c.
Referenced by fig_resolve_color().
| gvplugin_installed_t gvdevice_fig_types[] |
Definition at line 517 of file gvrender_core_fig.c.
| gvplugin_installed_t gvrender_fig_types[] |
Definition at line 512 of file gvrender_core_fig.c.
|
static |
Definition at line 486 of file gvrender_core_fig.c.