Graphviz  2.41.20171026.1811
Data Structures | Functions
pointset.c File Reference
#include "render.h"
#include "pointset.h"
Include dependency graph for pointset.c:

Go to the source code of this file.

Data Structures

struct  pair
 
struct  mpair
 
struct  MPairDisc
 

Functions

PointSetnewPS (void)
 
void freePS (PointSet *ps)
 
void insertPS (PointSet *ps, point pt)
 
void addPS (PointSet *ps, int x, int y)
 
int inPS (PointSet *ps, point pt)
 
int isInPS (PointSet *ps, int x, int y)
 
int sizeOf (PointSet *ps)
 
pointpointsOf (PointSet *ps)
 
PointMapnewPM (void)
 
void clearPM (PointMap *ps)
 
void freePM (PointMap *ps)
 
int updatePM (PointMap *pm, int x, int y, int v)
 
int insertPM (PointMap *pm, int x, int y, int v)
 

Function Documentation

void addPS ( PointSet ps,
int  x,
int  y 
)

Definition at line 82 of file pointset.c.

References dtinsert, point::x, and point::y.

Referenced by fillLine().

void clearPM ( PointMap ps)

Definition at line 182 of file pointset.c.

References dtclear.

void freePM ( PointMap ps)

Definition at line 187 of file pointset.c.

References _dt_s::disc, dtclose(), MPairDisc::flist, mpair::link, and _dtlink_s::right.

void freePS ( PointSet ps)

Definition at line 68 of file pointset.c.

References dtclose().

int inPS ( PointSet ps,
point  pt 
)

Definition at line 94 of file pointset.c.

References dtsearch, and pair::id.

int insertPM ( PointMap pm,
int  x,
int  y,
int  v 
)

Definition at line 216 of file pointset.c.

References dtinsert, mpair::id, mpair::v, point::x, and point::y.

void insertPS ( PointSet ps,
point  pt 
)

Definition at line 73 of file pointset.c.

References dtinsert.

int isInPS ( PointSet ps,
int  x,
int  y 
)

Definition at line 101 of file pointset.c.

References dtsearch, pair::id, point::x, and point::y.

PointMap* newPM ( void  )

Definition at line 172 of file pointset.c.

References MPairDisc::disc, dtopen(), Dtoset, MPairDisc::flist, and GNEW.

PointSet* newPS ( void  )

Definition at line 63 of file pointset.c.

References dtopen(), and Dtoset.

point* pointsOf ( PointSet ps)

Definition at line 114 of file pointset.c.

References dtflatten(), dtlink, dtsize(), pair::id, and N_NEW.

int sizeOf ( PointSet ps)

Definition at line 109 of file pointset.c.

References dtsize().

int updatePM ( PointMap pm,
int  x,
int  y,
int  v 
)

Definition at line 201 of file pointset.c.

References dtinsert, mpair::id, mpair::v, point::x, and point::y.