Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvrender_core_map.c File Reference
#include "config.h"
#include <stdlib.h>
#include <cgraph/unreachable.h>
#include <common/types.h>
#include <common/utils.h>
#include <gvc/gvplugin_render.h>
#include <gvc/gvplugin_device.h>
#include <gvc/gvio.h>
Include dependency graph for gvrender_core_map.c:

Go to the source code of this file.

Enumerations

enum  format_type { FORMAT_IMAP , FORMAT_ISMAP , FORMAT_CMAP , FORMAT_CMAPX }
 

Functions

static void xml_url_puts (GVJ_t *job, const char *s)
 
static void map_output_shape (GVJ_t *job, map_shape_t map_shape, pointf *AF, size_t nump, char *url, char *tooltip, char *target, char *id)
 
static void map_begin_page (GVJ_t *job)
 
static void map_end_page (GVJ_t *job)
 
static void map_begin_anchor (GVJ_t *job, char *url, char *tooltip, char *target, char *id)
 

Variables

static gvrender_engine_t map_engine
 
static gvrender_features_t render_features_map
 
static gvdevice_features_t device_features_map
 
static gvdevice_features_t device_features_map_nopoly
 
gvplugin_installed_t gvrender_map_types []
 
gvplugin_installed_t gvdevice_map_types []
 

Enumeration Type Documentation

◆ format_type

Enumerator
FORMAT_IMAP 
FORMAT_ISMAP 
FORMAT_CMAP 
FORMAT_CMAPX 

Definition at line 22 of file gvrender_core_map.c.

Function Documentation

◆ map_begin_anchor()

static void map_begin_anchor ( GVJ_t job,
char *  url,
char *  tooltip,
char *  target,
char *  id 
)
static

Definition at line 197 of file gvrender_core_map.c.

References map_output_shape(), GVJ_s::obj, obj_state_s::url_map_n, obj_state_s::url_map_p, and obj_state_s::url_map_shape.

Here is the call graph for this function:

◆ map_begin_page()

static void map_begin_page ( GVJ_t job)
static

Definition at line 142 of file gvrender_core_map.c.

References agnameof(), FORMAT_CMAPX, FORMAT_IMAP, FORMAT_ISMAP, obj_state_s::g, gvputs(), gvputs_xml(), gvplugin_active_render_s::id, GVJ_s::obj, GVJ_s::render, obj_state_s::u, and obj_state_s::url.

Here is the call graph for this function:

◆ map_end_page()

static void map_end_page ( GVJ_t job)
static

Definition at line 176 of file gvrender_core_map.c.

References FORMAT_CMAP, FORMAT_CMAPX, gvputs(), gvplugin_active_render_s::id, obj_state_s::id, map_output_shape(), GVJ_s::obj, GVJ_s::render, obj_state_s::target, obj_state_s::tooltip, obj_state_s::url, obj_state_s::url_map_n, obj_state_s::url_map_p, and obj_state_s::url_map_shape.

Here is the call graph for this function:

◆ map_output_shape()

static void map_output_shape ( GVJ_t job,
map_shape_t  map_shape,
pointf AF,
size_t  nump,
char *  url,
char *  tooltip,
char *  target,
char *  id 
)
static

Definition at line 30 of file gvrender_core_map.c.

References FORMAT_CMAP, FORMAT_CMAPX, FORMAT_IMAP, FORMAT_ISMAP, gvprintf(), gvputs(), gvputs_xml(), gvplugin_active_render_s::id, MAP_CIRCLE, MAP_POLYGON, MAP_RECTANGLE, GVJ_s::render, UNREACHABLE, and xml_url_puts().

Referenced by map_begin_anchor(), and map_end_page().

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

◆ xml_url_puts()

static void xml_url_puts ( GVJ_t job,
const char *  s 
)
static

Definition at line 25 of file gvrender_core_map.c.

References flags, gvputs(), and xml_escape().

Referenced by map_output_shape().

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

Variable Documentation

◆ device_features_map

gvdevice_features_t device_features_map
static
Initial value:
= {
{0.,0.},
{0.,0.},
{96.,96.},
}
#define GVRENDER_DOES_MAP_POLYGON
Definition gvcjob.h:100
#define GVRENDER_DOES_MAP_CIRCLE
Definition gvcjob.h:99

Definition at line 253 of file gvrender_core_map.c.

◆ device_features_map_nopoly

gvdevice_features_t device_features_map_nopoly
static
Initial value:
= {
0,
{0.,0.},
{0.,0.},
{96.,96.},
}

Definition at line 261 of file gvrender_core_map.c.

◆ gvdevice_map_types

gvplugin_installed_t gvdevice_map_types[]
Initial value:
= {
{FORMAT_CMAP, "cmap:map", 1, NULL, &device_features_map},
{FORMAT_IMAP, "imap:map", 1, NULL, &device_features_map},
{FORMAT_CMAPX, "cmapx:map", 1, NULL, &device_features_map},
{FORMAT_CMAPX, "cmapx_np:map", 1, NULL, &device_features_map_nopoly},
{0, NULL, 0, NULL, NULL}
}
node NULL
Definition grammar.y:149
static gvdevice_features_t device_features_map_nopoly
static gvdevice_features_t device_features_map
@ FORMAT_IMAP
@ FORMAT_CMAP
@ FORMAT_ISMAP
@ FORMAT_CMAPX

Definition at line 273 of file gvrender_core_map.c.

◆ gvrender_map_types

gvplugin_installed_t gvrender_map_types[]
Initial value:
= {
{0, NULL, 0, NULL, NULL}
}
static gvrender_engine_t map_engine
static gvrender_features_t render_features_map

Definition at line 268 of file gvrender_core_map.c.

◆ map_engine

gvrender_engine_t map_engine
static

Definition at line 206 of file gvrender_core_map.c.

◆ render_features_map

gvrender_features_t render_features_map
static
Initial value:
= {
4.,
NULL,
0,
0,
}
#define EMIT_CLUSTERS_LAST
Definition gvcjob.h:84
#define GVRENDER_DOES_TOOLTIPS
Definition gvcjob.h:103
#define GVRENDER_DOES_LABELS
Definition gvcjob.h:96
#define GVRENDER_DOES_MAPS
Definition gvcjob.h:97
#define GVRENDER_DOES_TARGETS
Definition gvcjob.h:104
#define GVRENDER_Y_GOES_DOWN
Definition gvcjob.h:94
#define GVRENDER_DOES_MAP_RECTANGLE
Definition gvcjob.h:98

Definition at line 239 of file gvrender_core_map.c.