Graphviz
2.41.20171026.1811
Main Page
Data Structures
Files
File List
Globals
lib
neatogen
info.h
Go to the documentation of this file.
1
/* $Id$ $Revision$ */
2
/* vim:set shiftwidth=4 ts=8: */
3
4
/*************************************************************************
5
* Copyright (c) 2011 AT&T Intellectual Property
6
* All rights reserved. This program and the accompanying materials
7
* are made available under the terms of the Eclipse Public License v1.0
8
* which accompanies this distribution, and is available at
9
* http://www.eclipse.org/legal/epl-v10.html
10
*
11
* Contributors: See CVS logs. Details at http://www.graphviz.org/
12
*************************************************************************/
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
19
#ifndef INFO_H
20
#define INFO_H
21
22
#include "
voronoi.h
"
23
#include "
poly.h
"
24
25
typedef
struct
ptitem
{
/* Point list */
26
struct
ptitem
*
next
;
27
Point
p
;
28
}
PtItem
;
29
30
typedef
struct
{
/* Info concerning site */
31
Agnode_t
*
node
;
/* libgraph node */
32
Site
site
;
/* site used by voronoi code */
33
int
overlaps
;
/* true if node overlaps other nodes */
34
Poly
poly
;
/* polygon at node */
35
PtItem
*
verts
;
/* sorted list of vertices of */
36
/* voronoi polygon */
37
}
Info_t
;
38
39
extern
Info_t
*
nodeInfo
;
/* Array of node info */
40
41
extern
void
infoinit
(
void
);
42
/* Insert vertex into sorted list */
43
extern
void
addVertex
(
Site
*,
double
,
double
);
44
#endif
45
46
#ifdef __cplusplus
47
}
48
#endif
Info_t::site
Site site
Definition:
info.h:32
Poly
Definition:
poly.h:23
PtItem
struct ptitem PtItem
nodeInfo
Info_t * nodeInfo
Definition:
info.c:20
Info_t::poly
Poly poly
Definition:
info.h:34
Site
Definition:
site.h:26
poly.h
Info_t::overlaps
int overlaps
Definition:
info.h:33
addVertex
void addVertex(Site *s, double x, double y)
Definition:
info.c:161
Info_t::node
Agnode_t * node
Definition:
info.h:31
Info_t
Definition:
info.h:30
Agnode_s
Definition:
cgraph.h:133
infoinit
void infoinit()
Definition:
info.c:23
ptitem::next
struct ptitem * next
Definition:
info.h:26
ptitem
Definition:
info.h:25
ptitem::p
Point p
Definition:
info.h:27
Point
Definition:
geometry.h:26
Info_t::verts
PtItem * verts
Definition:
info.h:35
voronoi.h
Generated by
1.8.5