|
Graphviz 14.1.3~dev.20260124.0732
|
#include "config.h"#include <common/render.h>#include <common/pointset.h>#include <stddef.h>#include <util/alloc.h>Go to the source code of this file.
Data Structures | |
| struct | pair |
| struct | mpair |
Functions | |
| static pair * | mkPair (pointf p) |
| static int | cmppair (void *k1, void *k2) |
| static int | cmpmpair (void *k1, void *k2) |
| PointSet * | newPS (void) |
| void | freePS (PointSet *ps) |
| void | insertPS (PointSet *ps, pointf pt) |
| void | addPS (PointSet *ps, double x, double y) |
| int | inPS (PointSet *ps, pointf pt) |
| int | isInPS (PointSet *ps, double x, double y) |
| int | sizeOf (PointSet *ps) |
| pointf * | pointsOf (PointSet *ps) |
| static void * | mkMPair (void *p, Dtdisc_t *disc) |
| PointMap * | newPM (void) |
| void | clearPM (PointMap *ps) |
| void | freePM (PointMap *ps) |
| int | insertPM (PointMap *pm, int x, int y, int value) |
Variables | |
| static Dtdisc_t | intPairDisc |
| static Dtdisc_t | intMPairDisc |
| void addPS | ( | PointSet * | ps, |
| double | x, | ||
| double | y | ||
| ) |
Definition at line 88 of file pointset.c.
References dtinsert, free(), mkPair(), ps, and pointf_s::x.
Referenced by fillLine(), findCol(), genBox(), genPoly(), and orthoEdges().
| void clearPM | ( | PointMap * | ps | ) |
Definition at line 153 of file pointset.c.
Referenced by makeGraphData().
|
static |
Definition at line 46 of file pointset.c.
|
static |
Definition at line 31 of file pointset.c.
References pointf_s::x, and pointf_s::y.
| void freePM | ( | PointMap * | ps | ) |
Definition at line 158 of file pointset.c.
Referenced by makeGraphData().
| void freePS | ( | PointSet * | ps | ) |
Definition at line 75 of file pointset.c.
Referenced by genBox(), genPoly(), orthoEdges(), polyGraphs(), polyRects(), and processTbl().
| int insertPM | ( | PointMap * | pm, |
| int | x, | ||
| int | y, | ||
| int | value | ||
| ) |
Definition at line 163 of file pointset.c.
References dtinsert, mpair::id, mpair::v, point::x, and point::y.
Referenced by checkEdge().
Definition at line 80 of file pointset.c.
References dtinsert, free(), mkPair(), and ps.
Referenced by fits(), and placeFixed().
| int isInPS | ( | PointSet * | ps, |
| double | x, | ||
| double | y | ||
| ) |
Definition at line 101 of file pointset.c.
Referenced by findCol(), and orthoEdges().
|
static |
Definition at line 130 of file pointset.c.
References disc, gv_alloc(), mpair::id, and mpair::v.
Definition at line 25 of file pointset.c.
References gv_alloc(), and pair::id.
Referenced by addPS(), and insertPS().
| PointMap * newPM | ( | void | ) |
Definition at line 148 of file pointset.c.
References dtopen(), Dtoset, and intMPairDisc.
Referenced by makeGraphData().
| PointSet * newPS | ( | void | ) |
Definition at line 70 of file pointset.c.
References dtopen(), Dtoset, and intPairDisc.
Referenced by genBox(), genPoly(), orthoEdges(), polyGraphs(), polyRects(), and processTbl().
Definition at line 110 of file pointset.c.
References dtflatten(), dtlink, dtsize(), gv_calloc(), pair::id, and ps.
Referenced by genBox(), and genPoly().
| int sizeOf | ( | PointSet * | ps | ) |
|
static |
Definition at line 139 of file pointset.c.
Referenced by newPM().
|
static |
Definition at line 61 of file pointset.c.
Referenced by newPS().