Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
site.c File Reference
#include <neatogen/mem.h>
#include <neatogen/site.h>
#include <math.h>
Include dependency graph for site.c:

Go to the source code of this file.

Functions

void siteinit (void)
 
Sitegetsite (void)
 
double dist (Site *s, Site *t)
 
void makevertex (Site *v)
 
void deref (Site *v)
 
void ref (Site *v)
 

Variables

int siteidx
 
Sitebottomsite
 
static Freelist sfl
 
static size_t nvertices
 

Function Documentation

◆ deref()

void deref ( Site v)

Definition at line 52 of file site.c.

References makefree(), Site::refcnt, and sfl.

Here is the call graph for this function:

◆ dist()

double dist ( Site s,
Site t 
)

Definition at line 34 of file site.c.

References Site::coord, dx, dy, Point::x, and Point::y.

◆ getsite()

Site * getsite ( void  )

Definition at line 29 of file site.c.

References getfree(), and sfl.

Referenced by hintersect().

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

◆ makevertex()

void makevertex ( Site v)

Definition at line 46 of file site.c.

References nvertices, and Site::sitenbr.

Referenced by voronoi().

Here is the caller graph for this function:

◆ ref()

void ref ( Site v)

Definition at line 59 of file site.c.

References Site::refcnt.

Referenced by deref(), endpoint(), getval(), glCompButtonDraw(), glCompCalcWidget(), glCompImageDraw(), glCompLabelDraw(), glCompPanelDraw(), glCompRenderText(), gvbisect(), PQinsert(), refval(), setval(), and typeChkExp().

Here is the caller graph for this function:

◆ siteinit()

void siteinit ( void  )

Definition at line 22 of file site.c.

References freeinit(), nvertices, and sfl.

Referenced by cleanup(), and voronoi().

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

Variable Documentation

◆ bottomsite

Site* bottomsite

Definition at line 17 of file site.c.

Referenced by leftreg(), rightreg(), and voronoi().

◆ nvertices

size_t nvertices
static

Definition at line 20 of file site.c.

Referenced by find_ints(), makevertex(), and siteinit().

◆ sfl

Freelist sfl
static

Definition at line 19 of file site.c.

Referenced by deref(), getsite(), and siteinit().

◆ siteidx

int siteidx

Definition at line 16 of file site.c.