Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
vis.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 <assert.h>
14
#include <math.h>
15
#include <stdbool.h>
16
#include <stdlib.h>
17
#include <limits.h>
18
#include "
vispath.h
"
19
#include "
pathutil.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
typedef
COORD
**
array2
;
26
27
#define EQ(p,q) ((p.x == q.x) && (p.y == q.y))
28
29
struct
vconfig_s
{
30
int
Npoly
;
31
int
N
;
/* number of points in walk of barriers */
32
Ppoint_t
*
P
;
/* barrier points */
33
int
*
start
;
34
int
*
next
;
35
int
*
prev
;
36
37
/* this is computed from the above */
38
array2
vis
;
39
};
40
#ifdef GVDLL
41
#ifdef PATHPLAN_EXPORTS
42
#define VIS_API __declspec(dllexport)
43
#else
44
#define VIS_API __declspec(dllimport)
45
#endif
46
#endif
47
48
#ifndef VIS_API
49
#define VIS_API
/* nothing */
50
#endif
51
52
VIS_API
COORD
*
ptVis
(
vconfig_t
*,
int
,
Ppoint_t
);
53
VIS_API
bool
directVis
(
Ppoint_t
,
int
,
Ppoint_t
,
int
,
vconfig_t
*);
54
VIS_API
void
visibility
(
vconfig_t
*);
55
VIS_API
int
*
makePath
(
Ppoint_t
p,
int
pp,
COORD
* pvis,
56
Ppoint_t
q,
int
qp,
COORD
* qvis,
57
vconfig_t
* conf);
58
59
#undef VIS_API
60
61
#ifdef __cplusplus
62
}
63
#endif
pathutil.h
COORD
double COORD
Definition
pathutil.h:31
Pxy_t
Definition
pathgeom.h:37
vconfig_s
Definition
vis.h:29
vconfig_s::N
int N
Definition
vis.h:31
vconfig_s::P
Ppoint_t * P
Definition
vis.h:32
vconfig_s::start
int * start
Definition
vis.h:33
vconfig_s::next
int * next
Definition
vis.h:34
vconfig_s::vis
array2 vis
Definition
vis.h:38
vconfig_s::prev
int * prev
Definition
vis.h:35
vconfig_s::Npoly
int Npoly
Definition
vis.h:30
visibility
VIS_API void visibility(vconfig_t *)
Definition
visibility.c:211
array2
COORD ** array2
Definition
vis.h:25
VIS_API
#define VIS_API
Definition
vis.h:49
makePath
VIS_API int * makePath(Ppoint_t p, int pp, COORD *pvis, Ppoint_t q, int qp, COORD *qvis, vconfig_t *conf)
Definition
shortestpth.c:91
ptVis
VIS_API COORD * ptVis(vconfig_t *, int, Ppoint_t)
Definition
visibility.c:245
directVis
VIS_API bool directVis(Ppoint_t, int, Ppoint_t, int, vconfig_t *)
Definition
visibility.c:304
vispath.h
lib
pathplan
vis.h
Generated by
1.9.8