Graphviz
13.1.2~dev.20250731.0139
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
#include <stdbool.h>
14
#include <stddef.h>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
#include <
neatogen/poly.h
>
21
#include <
neatogen/voronoi.h
>
22
23
#if !defined(__CYGWIN__) && defined(__GNUC__) && !defined(__MINGW32__)
24
#define INTERNAL __attribute__((visibility("hidden")))
25
#else
26
#define INTERNAL
/* nothing */
27
#endif
28
30
typedef
struct
{
31
Agnode_t
*
node
;
32
Site
site
;
33
bool
overlaps
;
34
Poly
poly
;
35
Point
*
verts
;
36
size_t
n_verts
;
37
}
Info_t
;
38
40
extern
Info_t
*
nodeInfo
;
41
43
INTERNAL
void
addVertex
(
Site
*,
double
,
double
);
44
45
#undef INTERNAL
46
47
#ifdef __cplusplus
48
}
49
#endif
INTERNAL
#define INTERNAL
Definition
info.h:26
addVertex
INTERNAL void addVertex(Site *, double, double)
insert vertex into sorted list
Definition
info.c:101
nodeInfo
Info_t * nodeInfo
array of node info
Definition
info.c:17
poly.h
Agnode_s
Definition
cgraph.h:259
Info_t
info concerning site
Definition
info.h:30
Info_t::n_verts
size_t n_verts
number of elements in verts
Definition
info.h:36
Info_t::verts
Point * verts
sorted list of vertices of voronoi polygon
Definition
info.h:35
Info_t::overlaps
bool overlaps
true if node overlaps other nodes
Definition
info.h:33
Info_t::poly
Poly poly
polygon at node
Definition
info.h:34
Info_t::node
Agnode_t * node
libgraph node
Definition
info.h:31
Info_t::site
Site site
site used by voronoi code
Definition
info.h:32
Point
Definition
geometry.h:28
Poly
Definition
poly.h:25
Site
Definition
site.h:28
voronoi.h
lib
neatogen
info.h
Generated by
1.9.8