|
Graphviz
2.31.20130523.0446
|
#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.
Defines | |
| #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 advance | ( | A, | |
| B, | |||
| N | |||
| ) | (B++, A = (A+1)%N) |
Definition at line 367 of file poly.c.
Referenced by re_search_2().
| #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 free(), and Poly::verts.
Definition at line 183 of file poly.c.
References ND_clust, Point::x, ND_width, Point::y, ND_height, Poly::kind, BOX, N_GNEW, PUTPT, shapeOf(), SH_POLY, ND_shape_info, polygon_t::sides, streq, ND_shape, polygon_t::vertices, polygon_t::regular, CIRCLE, pointf_s::x, pointf_s::y, SH_RECORD, boxf::LL, boxf::UR, SH_POINT, agerr(), AGERR, Poly::verts, Poly::nverts, Poly::origin, and Poly::corner.
Definition at line 275 of file poly.c.
References ND_clust, Point::x, ND_width, Point::y, ND_height, Poly::kind, BOX, N_GNEW, PUTPT, shapeOf(), SH_POLY, ND_shape_info, polygon_t::sides, polygon_t::vertices, pointf_s::x, pointf_s::y, streq, ND_shape, polygon_t::regular, CIRCLE, SH_RECORD, boxf::LL, boxf::UR, SH_POINT, agerr(), AGERR, Poly::verts, Poly::nverts, Poly::origin, and Poly::corner.
Definition at line 504 of file poly.c.
References addpt(), Poly::origin, Poly::corner, ISBOX, ISCIRCLE, Point::x, Point::y, NULL, N_GNEW, Poly::verts, and Poly::nverts.
1.7.5