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
14
extern
"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
;
22
Point
p
;
23
}
PtItem
;
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
nodeInfo
Info_t * nodeInfo
Definition
info.c:17
PtItem
struct ptitem PtItem
addVertex
void addVertex(Site *, double, double)
Definition
info.c:110
infoinit
void infoinit(void)
Definition
info.c:20
poly.h
Agnode_s
Definition
cgraph.h:259
Info_t
Definition
info.h:25
Info_t::verts
PtItem * verts
Definition
info.h:30
Info_t::overlaps
int overlaps
Definition
info.h:28
Info_t::poly
Poly poly
Definition
info.h:29
Info_t::node
Agnode_t * node
Definition
info.h:26
Info_t::site
Site site
Definition
info.h:27
Point
Definition
geometry.h:22
Poly
Definition
poly.h:19
Site
Definition
site.h:22
ptitem
Definition
info.h:20
ptitem::next
struct ptitem * next
Definition
info.h:21
ptitem::p
Point p
Definition
info.h:22
voronoi.h
lib
neatogen
info.h
Generated by
1.9.8