Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
info.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <neatogen/voronoi.h>
18#include <neatogen/poly.h>
19
20 typedef struct ptitem { /* Point list */
21 struct ptitem *next;
24
25 typedef struct { /* Info concerning site */
26 Agnode_t *node; /* libgraph node */
27 Site site; /* site used by voronoi code */
28 int overlaps; /* true if node overlaps other nodes */
29 Poly poly; /* polygon at node */
30 PtItem *verts; /* sorted list of vertices of */
31 /* voronoi polygon */
32 } Info_t;
33
34 extern Info_t *nodeInfo; /* Array of node info */
35
36 extern void infoinit(void);
37 /* Insert vertex into sorted list */
38 extern void addVertex(Site *, double, double);
39
40#ifdef __cplusplus
41}
42#endif
Info_t * nodeInfo
Definition info.c:17
struct ptitem PtItem
void addVertex(Site *, double, double)
Definition info.c:110
void infoinit(void)
Definition info.c:20
Definition info.h:25
PtItem * verts
Definition info.h:30
int overlaps
Definition info.h:28
Poly poly
Definition info.h:29
Agnode_t * node
Definition info.h:26
Site site
Definition info.h:27
Definition poly.h:19
Definition site.h:22
Definition info.h:20
struct ptitem * next
Definition info.h:21
Point p
Definition info.h:22