Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
gvrender_core_dia.c File Reference
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "macros.h"
#include "const.h"
#include "gvplugin_render.h"
#include "gvplugin_device.h"
#include "gvio.h"
#include "gvcint.h"
Include dependency graph for gvrender_core_dia.c:

Go to the source code of this file.

Data Structures

struct  context_t
 

Macros

#define REGULAR   0
 
#define BOLD   1
 
#define ITALIC   2
 
#define P_SOLID   0
 
#define P_NONE   15
 
#define P_DOTTED   4 /* i wasn't sure about this */
 
#define P_DASHED   11 /* or this */
 
#define WIDTH_NORMAL   1
 
#define WIDTH_BOLD   3
 
#define DIA_RESOLUTION   1.0
 
#define SCALE   (DIA_RESOLUTION/15.0)
 
#define MAXNEST   4
 
#define SVG_COLORS_P   0
 

Typedefs

typedef struct context_t context_t
 

Enumerations

enum  format_type {
  FORMAT_PNG_XDOT, FORMAT_GIF_XDOT, FORMAT_JPEG_XDOT, FORMAT_SVG_XDOT,
  FORMAT_PS_XDOT, FORMAT_PNG_DOT, FORMAT_GIF_DOT, FORMAT_JPEG_DOT,
  FORMAT_SVG_DOT, FORMAT_PS_DOT, FORMAT_PNG_MAP, FORMAT_GIF_MAP,
  FORMAT_JPEG_MAP, FORMAT_SVG_MAP, FORMAT_PS_MAP, FORMAT_PNG_SVG,
  FORMAT_GIF_SVG, FORMAT_JPEG_SVG, FORMAT_SVG_SVG, FORMAT_PNG_FIG,
  FORMAT_GIF_FIG, FORMAT_JPEG_FIG, FORMAT_PNG_VRML, FORMAT_GIF_VRML,
  FORMAT_JPEG_VRML, FORMAT_PS_PS, FORMAT_PSLIB_PS, FORMAT_PNG_VML,
  FORMAT_GIF_VML, FORMAT_JPEG_VML, FORMAT_GIF_TK, FORMAT_DIA,
  FORMAT_DOT, FORMAT_CANON, FORMAT_PLAIN, FORMAT_PLAIN_EXT,
  FORMAT_XDOT, FORMAT_XDOT12, FORMAT_XDOT14, FORMAT_FIG,
  FORMAT_HPGL, FORMAT_JSON, FORMAT_JSON0, FORMAT_DOT_JSON,
  FORMAT_XDOT_JSON, FORMAT_IMAP, FORMAT_ISMAP, FORMAT_CMAP,
  FORMAT_CMAPX, FORMAT_MIF, FORMAT_MP, FORMAT_PIC,
  FORMAT_POV, FORMAT_PS, FORMAT_PS2, FORMAT_EPS,
  FORMAT_SVG, FORMAT_SVGZ, FORMAT_TK, FORMAT_VML,
  FORMAT_VMLZ, FORMAT_VTX, FORMAT_PNG_GD, FORMAT_GIF_GD,
  FORMAT_JPG_GD, FORMAT_GD_GD, FORMAT_GD2_GD, FORMAT_XPM_GD,
  FORMAT_WBMP_GD, FORMAT_XBM_GD, FORMAT_PNG_PS, FORMAT_GIF_PS,
  FORMAT_JPG_PS, FORMAT_GD_PS, FORMAT_GD2_PS, FORMAT_XPM_PS,
  FORMAT_WBMP_PS, FORMAT_XBM_PS, FORMAT_PNG_CAIRO, FORMAT_GIF_CAIRO,
  FORMAT_JPG_CAIRO, FORMAT_GD_CAIRO, FORMAT_GD2_CAIRO, FORMAT_XPM_CAIRO,
  FORMAT_WBMP_CAIRO, FORMAT_XBM_CAIRO, FORMAT_GIF, FORMAT_JPEG,
  FORMAT_PNG, FORMAT_WBMP, FORMAT_GD, FORMAT_GD2,
  FORMAT_XBM, FORMAT_PS_PS, FORMAT_PS, FORMAT_PS2,
  FORMAT_EPS, FORMAT_PNG_CAIRO, FORMAT_PNG_PS, FORMAT_CAIRO,
  FORMAT_PNG, FORMAT_PS, FORMAT_PDF, FORMAT_SVG
}
 

Functions

char * xml_string (char *str)
 
int ellipse_connection (pointf cp, pointf p)
 
int box_connection (node_t *n, pointf p)
 

Variables

gvrender_engine_t dia_engine
 
gvplugin_installed_t gvrender_dia_types []
 
gvplugin_installed_t gvdevice_dia_types []
 

Macro Definition Documentation

#define BOLD   1

Definition at line 37 of file gvrender_core_dia.c.

#define DIA_RESOLUTION   1.0

Definition at line 50 of file gvrender_core_dia.c.

#define ITALIC   2

Definition at line 38 of file gvrender_core_dia.c.

#define MAXNEST   4

Definition at line 65 of file gvrender_core_dia.c.

#define P_DASHED   11 /* or this */

Definition at line 44 of file gvrender_core_dia.c.

#define P_DOTTED   4 /* i wasn't sure about this */

Definition at line 43 of file gvrender_core_dia.c.

#define P_NONE   15

Definition at line 42 of file gvrender_core_dia.c.

#define P_SOLID   0

Definition at line 41 of file gvrender_core_dia.c.

#define REGULAR   0

Definition at line 36 of file gvrender_core_dia.c.

#define SCALE   (DIA_RESOLUTION/15.0)

Definition at line 51 of file gvrender_core_dia.c.

#define SVG_COLORS_P   0

Definition at line 69 of file gvrender_core_dia.c.

#define WIDTH_BOLD   3

Definition at line 48 of file gvrender_core_dia.c.

#define WIDTH_NORMAL   1

Definition at line 47 of file gvrender_core_dia.c.

Typedef Documentation

typedef struct context_t context_t

Enumeration Type Documentation

Enumerator
FORMAT_PNG_XDOT 
FORMAT_GIF_XDOT 
FORMAT_JPEG_XDOT 
FORMAT_SVG_XDOT 
FORMAT_PS_XDOT 
FORMAT_PNG_DOT 
FORMAT_GIF_DOT 
FORMAT_JPEG_DOT 
FORMAT_SVG_DOT 
FORMAT_PS_DOT 
FORMAT_PNG_MAP 
FORMAT_GIF_MAP 
FORMAT_JPEG_MAP 
FORMAT_SVG_MAP 
FORMAT_PS_MAP 
FORMAT_PNG_SVG 
FORMAT_GIF_SVG 
FORMAT_JPEG_SVG 
FORMAT_SVG_SVG 
FORMAT_PNG_FIG 
FORMAT_GIF_FIG 
FORMAT_JPEG_FIG 
FORMAT_PNG_VRML 
FORMAT_GIF_VRML 
FORMAT_JPEG_VRML 
FORMAT_PS_PS 
FORMAT_PSLIB_PS 
FORMAT_PNG_VML 
FORMAT_GIF_VML 
FORMAT_JPEG_VML 
FORMAT_GIF_TK 
FORMAT_DIA 
FORMAT_DOT 
FORMAT_CANON 
FORMAT_PLAIN 
FORMAT_PLAIN_EXT 
FORMAT_XDOT 
FORMAT_XDOT12 
FORMAT_XDOT14 
FORMAT_FIG 
FORMAT_HPGL 
FORMAT_JSON 
FORMAT_JSON0 
FORMAT_DOT_JSON 
FORMAT_XDOT_JSON 
FORMAT_IMAP 
FORMAT_ISMAP 
FORMAT_CMAP 
FORMAT_CMAPX 
FORMAT_MIF 
FORMAT_MP 
FORMAT_PIC 
FORMAT_POV 
FORMAT_PS 
FORMAT_PS2 
FORMAT_EPS 
FORMAT_SVG 
FORMAT_SVGZ 
FORMAT_TK 
FORMAT_VML 
FORMAT_VMLZ 
FORMAT_VTX 
FORMAT_PNG_GD 
FORMAT_GIF_GD 
FORMAT_JPG_GD 
FORMAT_GD_GD 
FORMAT_GD2_GD 
FORMAT_XPM_GD 
FORMAT_WBMP_GD 
FORMAT_XBM_GD 
FORMAT_PNG_PS 
FORMAT_GIF_PS 
FORMAT_JPG_PS 
FORMAT_GD_PS 
FORMAT_GD2_PS 
FORMAT_XPM_PS 
FORMAT_WBMP_PS 
FORMAT_XBM_PS 
FORMAT_PNG_CAIRO 
FORMAT_GIF_CAIRO 
FORMAT_JPG_CAIRO 
FORMAT_GD_CAIRO 
FORMAT_GD2_CAIRO 
FORMAT_XPM_CAIRO 
FORMAT_WBMP_CAIRO 
FORMAT_XBM_CAIRO 
FORMAT_GIF 
FORMAT_JPEG 
FORMAT_PNG 
FORMAT_WBMP 
FORMAT_GD 
FORMAT_GD2 
FORMAT_XBM 
FORMAT_PS_PS 
FORMAT_PS 
FORMAT_PS2 
FORMAT_EPS 
FORMAT_PNG_CAIRO 
FORMAT_PNG_PS 
FORMAT_CAIRO 
FORMAT_PNG 
FORMAT_PS 
FORMAT_PDF 
FORMAT_SVG 

Definition at line 31 of file gvrender_core_dia.c.

Function Documentation

int box_connection ( node_t n,
pointf  p 
)
int ellipse_connection ( pointf  cp,
pointf  p 
)

Definition at line 610 of file gvrender_core_dia.c.

References pointf_s::x, and pointf_s::y.

char* xml_string ( char *  str)

Definition at line 485 of file labels.c.

Variable Documentation

gvrender_engine_t dia_engine
Initial value:
= {
dia_begin_job, dia_end_job,
dia_begin_graph, dia_end_graph,
0, 0,
dia_begin_page, dia_end_page,
dia_begin_cluster, dia_end_cluster,
0, 0,
0, 0,
dia_begin_node, dia_end_node,
dia_begin_edge, dia_end_edge,
0, 0,
0, 0,
dia_textspan, dia_resolve_color,
dia_ellipse, dia_polygon,
dia_bezier, dia_polyline,
dia_comment,
0,
}

Definition at line 942 of file gvrender_core_dia.c.

gvplugin_installed_t gvdevice_dia_types[]
Initial value:
= {
{FORMAT_DIA, "dia:dia", -1, NULL, &device_features_dia},
{0, NULL, 0, NULL, NULL}
}
#define NULL
Definition: logic.h:39

Definition at line 982 of file gvrender_core_dia.c.

gvplugin_installed_t gvrender_dia_types[]
Initial value:
= {
{FORMAT_DIA, "dia", -1, &dia_engine, &render_features_dia},
{0, NULL, 0, NULL, NULL}
}
#define NULL
Definition: logic.h:39
gvrender_engine_t dia_engine

Definition at line 977 of file gvrender_core_dia.c.