Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
site.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 <stddef.h>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
#include <
neatogen/geometry.h
>
20
21
/* Sites are also used as vertices on line segments */
22
typedef
struct
Site
{
23
Point
coord
;
24
size_t
sitenbr
;
25
unsigned
refcnt
;
26
}
Site
;
27
28
extern
int
siteidx
;
29
extern
Site
*
bottomsite
;
30
31
extern
void
siteinit
(
void
);
32
extern
Site
*
getsite
(
void
);
33
extern
double
dist
(
Site
*,
Site
*);
/* Distance between two sites */
34
extern
void
deref
(
Site
*);
/* Increment refcnt of site */
35
extern
void
ref
(
Site
*);
/* Decrement refcnt of site */
36
extern
void
makevertex
(
Site
*);
/* Transform a site into a vertex */
37
38
#ifdef __cplusplus
39
}
40
#endif
geometry.h
siteidx
int siteidx
Definition
site.c:16
deref
void deref(Site *)
Definition
site.c:52
siteinit
void siteinit(void)
Definition
site.c:22
makevertex
void makevertex(Site *)
Definition
site.c:46
dist
double dist(Site *, Site *)
Definition
site.c:34
getsite
Site * getsite(void)
Definition
site.c:29
bottomsite
Site * bottomsite
Definition
site.c:17
ref
void ref(Site *)
Definition
site.c:59
Point
Definition
geometry.h:22
Site
Definition
site.h:22
Site::coord
Point coord
Definition
site.h:23
Site::sitenbr
size_t sitenbr
Definition
site.h:24
Site::refcnt
unsigned refcnt
Definition
site.h:25
lib
neatogen
site.h
Generated by
1.9.8