Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvloadimage_core.c File Reference
#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gvc/gvplugin_loadimage.h>
#include <cgraph/agxbuf.h>
#include <common/utils.h>
#include <gvc/gvio.h>
#include "core_loadimage_xdot.h"
Include dependency graph for gvloadimage_core.c:

Go to the source code of this file.

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_GIF_TK
}
 

Functions

shape_descfind_user_shape (char *name)
 
static void core_loadimage_svg (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 
static void core_loadimage_fig (GVJ_t *job, usershape_t *us, boxf bf, bool filled)
 
static void core_loadimage_vrml (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 
static void ps_freeimage (usershape_t *us)
 
static void core_loadimage_ps (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 
static void core_loadimage_pslib (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 
static void core_loadimage_tk (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 
static void core_loadimage_null (GVJ_t *gvc, usershape_t *us, boxf b, bool filled)
 

Variables

static gvloadimage_engine_t engine_svg
 
static gvloadimage_engine_t engine_fig
 
static gvloadimage_engine_t engine_vrml
 
static gvloadimage_engine_t engine_ps
 
static gvloadimage_engine_t engine_pslib
 
static gvloadimage_engine_t engine_null
 
static gvloadimage_engine_t engine_xdot
 
static gvloadimage_engine_t engine_tk
 
gvplugin_installed_t gvloadimage_core_types []
 

Enumeration Type Documentation

◆ format_type

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_GIF_TK 

Definition at line 29 of file gvloadimage_core.c.

Function Documentation

◆ core_loadimage_fig()

static void core_loadimage_fig ( GVJ_t job,
usershape_t us,
boxf  bf,
bool  filled 
)
static

Definition at line 70 of file gvloadimage_core.c.

References gvprintf(), boxf::LL, usershape_s::name, boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ core_loadimage_null()

static void core_loadimage_null ( GVJ_t gvc,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 244 of file gvloadimage_core.c.

References gvc.

◆ core_loadimage_ps()

static void core_loadimage_ps ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

◆ core_loadimage_pslib()

static void core_loadimage_pslib ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 202 of file gvloadimage_core.c.

References usershape_s::data, gvprintf(), boxf::LL, usershape_s::name, boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ core_loadimage_svg()

static void core_loadimage_svg ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 40 of file gvloadimage_core.c.

References gvprintf(), gvputs(), boxf::LL, usershape_s::name, GVJ_s::rotation, boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ core_loadimage_tk()

static void core_loadimage_tk ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 234 of file gvloadimage_core.c.

References gvprintf(), boxf::LL, usershape_s::name, boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ core_loadimage_vrml()

static void core_loadimage_vrml ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 109 of file gvloadimage_core.c.

References gvprintf(), obj_state_s::n, usershape_s::name, GVJ_s::obj, and obj_state_s::u.

Here is the call graph for this function:

◆ find_user_shape()

shape_desc * find_user_shape ( char *  name)
extern

◆ ps_freeimage()

static void ps_freeimage ( usershape_t us)
static

Definition at line 132 of file gvloadimage_core.c.

References usershape_s::data, usershape_s::datasize, and free().

Referenced by core_loadimage_ps().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ engine_fig

gvloadimage_engine_t engine_fig
static
Initial value:
= {
}
static void core_loadimage_fig(GVJ_t *job, usershape_t *us, boxf bf, bool filled)

Definition at line 257 of file gvloadimage_core.c.

◆ engine_null

gvloadimage_engine_t engine_null
static
Initial value:
= {
}
static void core_loadimage_null(GVJ_t *gvc, usershape_t *us, boxf b, bool filled)

Definition at line 273 of file gvloadimage_core.c.

◆ engine_ps

gvloadimage_engine_t engine_ps
static
Initial value:
= {
}
static void core_loadimage_ps(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 265 of file gvloadimage_core.c.

◆ engine_pslib

gvloadimage_engine_t engine_pslib
static
Initial value:
= {
}
static void core_loadimage_pslib(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 269 of file gvloadimage_core.c.

◆ engine_svg

gvloadimage_engine_t engine_svg
static
Initial value:
= {
}
static void core_loadimage_svg(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 253 of file gvloadimage_core.c.

◆ engine_tk

gvloadimage_engine_t engine_tk
static
Initial value:
= {
}
static void core_loadimage_tk(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 281 of file gvloadimage_core.c.

◆ engine_vrml

gvloadimage_engine_t engine_vrml
static
Initial value:
= {
}
static void core_loadimage_vrml(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 261 of file gvloadimage_core.c.

◆ engine_xdot

gvloadimage_engine_t engine_xdot
static
Initial value:
= {
}
void core_loadimage_xdot(GVJ_t *, usershape_t *, boxf, bool)

Definition at line 277 of file gvloadimage_core.c.

◆ gvloadimage_core_types

gvplugin_installed_t gvloadimage_core_types[]

Definition at line 285 of file gvloadimage_core.c.