Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
vis.h File Reference
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <limits.h>
#include "vispath.h"
#include "pathutil.h"
Include dependency graph for vis.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vconfig_s
 

Macros

#define EQ(p, q)   ((p.x == q.x) && (p.y == q.y))
 
#define VIS_API   /* nothing */
 

Typedefs

typedef COORD ** array2
 

Functions

VIS_API COORDptVis (vconfig_t *, int, Ppoint_t)
 
VIS_API bool directVis (Ppoint_t, int, Ppoint_t, int, vconfig_t *)
 
VIS_API void visibility (vconfig_t *)
 
VIS_API int * makePath (Ppoint_t p, int pp, COORD *pvis, Ppoint_t q, int qp, COORD *qvis, vconfig_t *conf)
 

Macro Definition Documentation

◆ EQ

#define EQ (   p,
 
)    ((p.x == q.x) && (p.y == q.y))

Definition at line 27 of file vis.h.

◆ VIS_API

#define VIS_API   /* nothing */

Definition at line 49 of file vis.h.

Typedef Documentation

◆ array2

typedef COORD** array2

Definition at line 25 of file vis.h.

Function Documentation

◆ directVis()

VIS_API bool directVis ( Ppoint_t  p,
int  pp,
Ppoint_t  q,
int  qp,
vconfig_t conf 
)

Definition at line 304 of file visibility.c.

References intersect(), vconfig_s::N, vconfig_s::next, vconfig_s::P, s1(), vconfig_s::start, and V.

Referenced by makePath().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makePath()

VIS_API int * makePath ( Ppoint_t  p,
int  pp,
COORD pvis,
Ppoint_t  q,
int  qp,
COORD qvis,
vconfig_t conf 
)

Definition at line 91 of file shortestpth.c.

References directVis(), gv_calloc(), vconfig_s::N, shortestPath(), V, and vconfig_s::vis.

Here is the call graph for this function:

◆ ptVis()

VIS_API COORD * ptVis ( vconfig_t conf,
int  pp,
Ppoint_t  p 
)

Definition at line 245 of file visibility.c.

References clear(), dist(), gv_calloc(), in_cone(), vconfig_s::N, vconfig_s::next, vconfig_s::P, polyhit(), POLYID_UNKNOWN, vconfig_s::prev, vconfig_s::start, and V.

Referenced by Pobspath().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ visibility()

VIS_API void visibility ( vconfig_t conf)

Definition at line 211 of file visibility.c.

References allocArray(), compVis(), vconfig_s::N, and vconfig_s::vis.

Referenced by Pobsopen(), and set_visibility().

Here is the call graph for this function:
Here is the caller graph for this function: