Graphviz
2.41.20171026.1811
|
#include "neato.h"
#include <assert.h>
#include <string.h>
#include <math.h>
#include "poly.h"
#include "geom.h"
#include "mem.h"
Go to the source code of this file.
Macros | |
#define | BOX 1 |
#define | ISBOX(p) ((p)->kind & BOX) |
#define | CIRCLE 2 |
#define | ISCIRCLE(p) ((p)->kind & CIRCLE) |
#define | PUTPT(P, X, Y) ((P).x=(X),(P).y=(Y)) |
#define | Pin 1 |
#define | Qin 2 |
#define | Unknown 0 |
#define | advance(A, B, N) (B++, A = (A+1)%N) |
Functions | |
void | polyFree () |
void | breakPoly (Poly *pp) |
int | makeAddPoly (Poly *pp, Agnode_t *n, float xmargin, float ymargin) |
int | makePoly (Poly *pp, Agnode_t *n, float xmargin, float ymargin) |
int | polyOverlap (Point p, Poly *pp, Point q, Poly *qp) |
#define BOX 1 |
Definition at line 25 of file poly.c.
Referenced by makeAddPoly(), and makePoly().
#define CIRCLE 2 |
Definition at line 27 of file poly.c.
Referenced by makeAddPoly(), and makePoly().
#define ISBOX | ( | p | ) | ((p)->kind & BOX) |
Definition at line 26 of file poly.c.
Referenced by polyOverlap().
#define ISCIRCLE | ( | p | ) | ((p)->kind & CIRCLE) |
Definition at line 28 of file poly.c.
Referenced by polyOverlap().
#define PUTPT | ( | P, | |
X, | |||
Y | |||
) | ((P).x=(X),(P).y=(Y)) |
Definition at line 181 of file poly.c.
Referenced by makeAddPoly(), and makePoly().
void breakPoly | ( | Poly * | pp | ) |
Definition at line 46 of file poly.c.
References Poly::verts.
Definition at line 183 of file poly.c.
References agerr(), AGERR, BOX, CIRCLE, Poly::corner, if(), Poly::kind, LEN, boxf::LL, N_GNEW, ND_clust, ND_height, ND_shape, ND_shape_info, ND_width, Poly::nverts, Poly::origin, PS2INCH, PUTPT, polygon_t::regular, SH_POINT, SH_POLY, SH_RECORD, shapeOf(), polygon_t::sides, streq, boxf::UR, polygon_t::vertices, Poly::verts, Point::x, pointf_s::x, Point::y, and pointf_s::y.
Definition at line 275 of file poly.c.
References agerr(), AGERR, BOX, CIRCLE, Poly::corner, Poly::kind, boxf::LL, N_GNEW, ND_clust, ND_height, ND_shape, ND_shape_info, ND_width, Poly::nverts, Poly::origin, PS2INCH, PUTPT, polygon_t::regular, SH_POINT, SH_POLY, SH_RECORD, shapeOf(), polygon_t::sides, streq, boxf::UR, polygon_t::vertices, Poly::verts, Point::x, pointf_s::x, Point::y, and pointf_s::y.
Definition at line 504 of file poly.c.
References addpt(), Poly::corner, ISBOX, ISCIRCLE, N_GNEW, NULL, Poly::nverts, Poly::origin, Poly::verts, Point::x, and Point::y.