Graphviz 13.0.0~dev.20241220.2304
|
#include "config.h"
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <gvc/gvplugin_render.h>
#include <gvc/gvplugin_device.h>
#include <gvc/gvio.h>
#include <common/utils.h>
#include <common/color.h>
#include <common/colorprocs.h>
#include <common/const.h>
#include <util/agxbuf.h>
#include <util/strview.h>
Go to the source code of this file.
Data Structures | |
struct | fontinfo |
Macros | |
#define | BEZIERSUBDIVISION 6 |
Enumerations | |
enum | { FORMAT_PIC } |
Functions | |
static void | unsupported (char *s) |
static const void * | memrchr (const void *s, int c, size_t n) |
static const char * | picfontname (strview_t psname) |
static void | picptarray (GVJ_t *job, pointf *A, size_t n, int close) |
static void | pic_comment (GVJ_t *job, char *str) |
static void | pic_begin_graph (GVJ_t *job) |
static void | pic_end_graph (GVJ_t *job) |
static void | pic_begin_page (GVJ_t *job) |
static void | pic_end_page (GVJ_t *job) |
static void | pic_textspan (GVJ_t *job, pointf p, textspan_t *span) |
static void | pic_ellipse (GVJ_t *job, pointf *A, int filled) |
static void | pic_bezier (GVJ_t *job, pointf *A, size_t n, int filled) |
static void | pic_polygon (GVJ_t *job, pointf *A, size_t n, int filled) |
static void | pic_polyline (GVJ_t *job, pointf *A, size_t n) |
Variables | |
static bool | onetime = true |
static double | Fontscale |
static const char | pic_comments [] = "# " |
static const char | troff_comments [] = ".\\\" " |
static const char | picgen_msghdr [] = "dot pic plugin: " |
static const fontinfo | fonttab [] |
static const size_t | fonttab_size = sizeof(fonttab) / sizeof(fonttab[0]) |
gvrender_engine_t | pic_engine |
static gvrender_features_t | render_features_pic |
static gvdevice_features_t | device_features_pic |
gvplugin_installed_t | gvrender_pic_types [] |
gvplugin_installed_t | gvdevice_pic_types [] |
#define BEZIERSUBDIVISION 6 |
Definition at line 31 of file gvrender_core_pic.c.
anonymous enum |
Enumerator | |
---|---|
FORMAT_PIC |
Definition at line 33 of file gvrender_core_pic.c.
|
static |
Definition at line 113 of file gvrender_core_pic.c.
References NULL, SIZE_MAX, and str.
Referenced by picfontname().
|
static |
Definition at line 159 of file gvrender_core_pic.c.
References agnameof(), GVJ_s::common, obj_state_s::g, gvprintf(), GVCOMMON_s::info, GVJ_s::obj, troff_comments, and obj_state_s::u.
|
static |
Definition at line 178 of file gvrender_core_pic.c.
References Fontscale, gvprintf(), box::LL, onetime, GVJ_s::pageBoundingBox, pic_comments, PS2INCH, GVJ_s::rotation, unsupported(), box::UR, point::x, and point::y.
Definition at line 339 of file gvrender_core_pic.c.
References A, Bezier(), BEZIERSUBDIVISION, gvprintf(), gvputs(), NULL, V, and pointf_s::x.
|
static |
Definition at line 154 of file gvrender_core_pic.c.
References gvprintf(), pic_comments, and str.
Definition at line 326 of file gvrender_core_pic.c.
References A, gvprintf(), and PS2INCH.
|
static |
Definition at line 171 of file gvrender_core_pic.c.
References gvprintf(), and troff_comments.
|
static |
Definition at line 286 of file gvrender_core_pic.c.
References gvprintf().
Definition at line 364 of file gvrender_core_pic.c.
References A, and picptarray().
Definition at line 369 of file gvrender_core_pic.c.
References A, and picptarray().
|
static |
Definition at line 292 of file gvrender_core_pic.c.
References textspan_t::font, Fontscale, gvprintf(), gvputc(), gvputs_nonascii(), textspan_t::just, textfont_t::name, picfontname(), POINTS_PER_INCH, textfont_t::size, textspan_t::size, textspan_t::str, strview(), pointf_s::x, and pointf_s::y.
|
static |
Definition at line 124 of file gvrender_core_pic.c.
References agerrorf(), strview_t::data, fonttab, fonttab_size, memrchr(), NULL, picfontname(), picgen_msghdr, prefix, strview_t::size, strview_str_eq(), and fontinfo::trname.
Referenced by pic_textspan(), and picfontname().
Definition at line 140 of file gvrender_core_pic.c.
References A, gvprintf(), and gvputs().
Referenced by pic_polygon(), and pic_polyline().
|
static |
Definition at line 63 of file gvrender_core_pic.c.
References agwarningf(), and picgen_msghdr.
Referenced by pic_begin_page().
|
static |
Definition at line 415 of file gvrender_core_pic.c.
|
static |
Definition at line 36 of file gvrender_core_pic.c.
Referenced by pic_begin_page(), and pic_textspan().
|
static |
Definition at line 73 of file gvrender_core_pic.c.
Referenced by picfontname().
Definition at line 108 of file gvrender_core_pic.c.
Referenced by picfontname().
gvplugin_installed_t gvdevice_pic_types[] |
Definition at line 427 of file gvrender_core_pic.c.
gvplugin_installed_t gvrender_pic_types[] |
Definition at line 422 of file gvrender_core_pic.c.
|
static |
Definition at line 35 of file gvrender_core_pic.c.
Referenced by pic_begin_page(), and safefile().
|
static |
Definition at line 59 of file gvrender_core_pic.c.
Referenced by pic_begin_page(), and pic_comment().
gvrender_engine_t pic_engine |
Definition at line 373 of file gvrender_core_pic.c.
|
static |
Definition at line 61 of file gvrender_core_pic.c.
Referenced by picfontname(), and unsupported().
|
static |
Definition at line 407 of file gvrender_core_pic.c.
|
static |
Definition at line 60 of file gvrender_core_pic.c.
Referenced by pic_begin_graph(), and pic_end_graph().