/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/plugin/core/gvrender_core_dot.c File Reference

#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "macros.h"
#include "const.h"
#include "gvplugin_render.h"
#include "graph.h"
#include "agxbuf.h"
#include "utils.h"

Include dependency graph for gvrender_core_dot.c:

Go to the source code of this file.

Data Structures

struct  xdot_state_t

Defines

#define GNEW(t)   (t*)malloc(sizeof(t))
#define XDOTVERSION   "1.2"
#define NUMXBUFS   (EMIT_HLABEL+1)

Enumerations

enum  format_type {
  FORMAT_PNG_SVG, FORMAT_GIF_SVG, FORMAT_JPEG_SVG, FORMAT_PNG_XDOT,
  FORMAT_GIF_XDOT, FORMAT_JPEG_XDOT, 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_SVG_SVG, FORMAT_DOT,
  FORMAT_CANON, FORMAT_PLAIN, FORMAT_PLAIN_EXT, FORMAT_XDOT,
  FORMAT_FIG, FORMAT_IMAP, FORMAT_ISMAP, FORMAT_CMAP,
  FORMAT_CMAPX, FORMAT_PS, FORMAT_PS2, FORMAT_SVG,
  FORMAT_SVGZ, FORMAT_VML, FORMAT_VMLZ
}

Functions

void attach_attrs (graph_t *g)
void attach_attrs_and_arrows (graph_t *, int *, int *)
char * xml_string (char *str)
void write_plain (GVJ_t *job, graph_t *g, FILE *f, boolean extend)
void output_point (agxbuf *xbuf, pointf p)
void core_loadimage_xdot (GVJ_t *job, usershape_t *us, boxf b, boolean filled)

Variables

gvrender_engine_t dot_engine
gvrender_engine_t xdot_engine
gvrender_features_t render_features_dot
gvrender_features_t render_features_xdot
gvdevice_features_t device_features_canon
gvdevice_features_t device_features_dot
gvplugin_installed_t gvrender_dot_types []
gvplugin_installed_t gvdevice_dot_types []


Define Documentation

#define GNEW (  )     (t*)malloc(sizeof(t))

Definition at line 44 of file gvrender_core_dot.c.

#define NUMXBUFS   (EMIT_HLABEL+1)

Definition at line 57 of file gvrender_core_dot.c.

#define XDOTVERSION   "1.2"

Definition at line 55 of file gvrender_core_dot.c.


Enumeration Type Documentation

enum format_type

Enumerator:
FORMAT_PNG_SVG 
FORMAT_GIF_SVG 
FORMAT_JPEG_SVG 
FORMAT_PNG_XDOT 
FORMAT_GIF_XDOT 
FORMAT_JPEG_XDOT 
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_SVG_SVG 
FORMAT_DOT 
FORMAT_CANON 
FORMAT_PLAIN 
FORMAT_PLAIN_EXT 
FORMAT_XDOT 
FORMAT_FIG 
FORMAT_IMAP 
FORMAT_ISMAP 
FORMAT_CMAP 
FORMAT_CMAPX 
FORMAT_PS 
FORMAT_PS2 
FORMAT_SVG 
FORMAT_SVGZ 
FORMAT_VML 
FORMAT_VMLZ 

Definition at line 46 of file gvrender_core_dot.c.


Function Documentation

void attach_attrs ( graph_t g  ) 

Definition at line 308 of file output.c.

References attach_attrs_and_arrows().

Referenced by main(), and render().

void attach_attrs_and_arrows ( graph_t ,
int *  ,
int *   
)

Definition at line 168 of file output.c.

References agedgeattr(), agfstnode(), agfstout(), agget(), agnodeattr(), agnxtnode(), agnxtout(), agraphattr(), agset(), agxbfree(), agxbinit(), agxbpop(), agxbput(), agxbputc, agxbuse, agxset(), Agproto_t::e, ED_edge_type, ED_head_label, ED_label, ED_spl, ED_tail_label, EDGE_LABEL, GD_has_labels, GD_label, GVSPLINES, HAS_CLUST_EDGE, HEAD_LABEL, IGNORED, Agsym_t::index, isPolygon(), M_PI, Agproto_t::n, N_height, N_vertices, N_width, ND_coord_i, ND_height, ND_ht_i, ND_lw_i, ND_rw_i, ND_shape, ND_shape_info, ND_width, NULL, Agraph_t::proto, safe_dcl(), polygon_t::sides, State, TAIL_LABEL, undoClusterEdges(), polygon_t::vertices, pointf_s::x, point::x, pointf_s::y, point::y, YDIR, and YFDIR.

Referenced by attach_attrs().

void core_loadimage_xdot ( GVJ_t job,
usershape_t us,
boxf  b,
boolean  filled 
)

Definition at line 402 of file gvrender_core_dot.c.

References agxbput(), obj_state_s::emit_state, boxf::LL, usershape_s::name, GVJ_s::obj, output_point(), ROUND, boxf::UR, pointf_s::x, and pointf_s::y.

void output_point ( agxbuf xbuf,
pointf  p 
)

Definition at line 314 of file output.c.

References agxbput(), ROUND, pointf_s::x, pointf_s::y, and YDIR.

Referenced by core_loadimage_xdot().

void write_plain ( GVJ_t job,
graph_t g,
FILE *  f,
boolean  extend 
)

Definition at line 64 of file output.c.

References agcanonical(), agfstnode(), agfstout(), agnxtnode(), agnxtout(), agxget(), Agedge_t::attr, DEFAULT_COLOR, DEFAULT_FILL, E_color, E_style, ED_label, ED_spl, GD_bb, Agedge_t::head, HEADX, Agsym_t::index, IS_CLUST_NODE, late_nnstring(), lbl, bezier::list, N_color, N_fillcolor, N_label, N_style, ND_coord_i, ND_height, ND_label, ND_shape, ND_width, bezier::size, Agedge_t::tail, TAILX, point::x, point::y, and GVJ_s::zoom.

char* xml_string ( char *  str  ) 

Definition at line 363 of file labels.c.


Variable Documentation

gvdevice_features_t device_features_canon

Initial value:

 {
    LAYOUT_NOT_REQUIRED,        
    {0.,0.},                    
    {0.,0.},                    
    {72.,72.},                  
}

Definition at line 492 of file gvrender_core_dot.c.

gvdevice_features_t device_features_dot

Initial value:

 {
    0,                          
    {0.,0.},                    
    {0.,0.},                    
    {72.,72.},                  
}

Definition at line 499 of file gvrender_core_dot.c.

gvrender_engine_t dot_engine

Initial value:

 {
    0,                          
    0,                          
    dot_begin_graph,
    dot_end_graph,
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
}

Definition at line 414 of file gvrender_core_dot.c.

gvplugin_installed_t gvdevice_dot_types[]

Initial value:

 {
    {FORMAT_DOT, "dot:dot", 1, NULL, &device_features_dot},
    {FORMAT_CANON, "canon:dot", 1, NULL, &device_features_canon},
    {FORMAT_PLAIN, "plain:dot", 1, NULL, &device_features_dot},
    {FORMAT_PLAIN_EXT, "plain-ext:dot", 1, NULL, &device_features_dot},
    {FORMAT_XDOT, "xdot:xdot", 1, NULL, &device_features_dot},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 512 of file gvrender_core_dot.c.

gvplugin_installed_t gvrender_dot_types[]

Initial value:

 {
    {FORMAT_DOT, "dot", 1, &dot_engine, &render_features_dot},
    {FORMAT_XDOT, "xdot", 1, &xdot_engine, &render_features_xdot},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 506 of file gvrender_core_dot.c.

gvrender_features_t render_features_dot

Initial value:

Definition at line 476 of file gvrender_core_dot.c.

gvrender_features_t render_features_xdot

Initial value:

Definition at line 484 of file gvrender_core_dot.c.

gvrender_engine_t xdot_engine

Initial value:

 {
    0,                          
    0,                          
    dot_begin_graph,
    dot_end_graph,
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    xdot_end_cluster,
    0,                          
    0,                          
    0,                          
    0,                          
    0,                          
    xdot_end_node,
    0,                          
    xdot_end_edge,
    0,                          
    0,                          
    xdot_textpara,
    0,                          
    xdot_ellipse,
    xdot_polygon,
    xdot_bezier,
    xdot_polyline,
    0,                          
    0,                          
}

Definition at line 445 of file gvrender_core_dot.c.


Generated on Mon Mar 31 19:08:01 2008 for Graphviz by  doxygen 1.5.1