#include "neato.h"
#include "adjust.h"
Include dependency graph for constraint.c:
Go to the source code of this file.
Data Structures | |
struct | nitem |
struct | info |
Defines | |
#define | SCALE 10 |
#define | SCALE2 (SCALE/2) |
#define | overlap(pb, qb) |
Typedefs | |
typedef int(*) | distfn (box *, box *) |
typedef int(*) | intersectfn (nitem *, nitem *) |
typedef int(*) | sortfn_t (const void *, const void *) |
Functions | |
int | cAdjust (graph_t *g, int mode) |
int | scAdjust (graph_t *g, int equal) |
#define overlap | ( | pb, | |||
qb | ) |
Value:
((pb.LL.x <= qb.UR.x) && (qb.LL.x <= pb.UR.x) && \ (pb.LL.y <= qb.UR.y) && (qb.LL.y <= pb.UR.y))
Definition at line 546 of file constraint.c.
#define SCALE 10 |
Definition at line 26 of file constraint.c.
#define SCALE2 (SCALE/2) |
Definition at line 27 of file constraint.c.
Definition at line 39 of file constraint.c.
typedef int(*) intersectfn(nitem *, nitem *) |
Definition at line 40 of file constraint.c.
typedef int(*) sortfn_t(const void *, const void *) |
Definition at line 698 of file constraint.c.
int cAdjust | ( | graph_t * | g, | |
int | mode | |||
) |
Definition at line 624 of file constraint.c.
References agfstnode(), agnnodes(), agnxtnode(), AM_ORTHO, AM_ORTHO_YX, AM_ORTHOXY, AM_ORTHOYX, AM_PORTHO, AM_PORTHO_YX, AM_PORTHOXY, AM_PORTHOYX, expFactor(), free(), N_GNEW, ND_pos, nitem::np, nitem::pos, SCALE, point::x, and point::y.
Referenced by removeOverlapAs().
int scAdjust | ( | graph_t * | g, | |
int | equal | |||
) |
Definition at line 859 of file constraint.c.
References agfstnode(), agnnodes(), agnxtnode(), info::bb, expFactor(), free(), info::ht2, boxf::LL, N_GNEW, ND_height, ND_pos, ND_width, info::np, info::pos, boxf::UR, info::wd2, pointf_s::x, and pointf_s::y.
Referenced by removeOverlapAs().