ND_width(n) = PS2INCH(bb.x);
ND_height(n) = PS2INCH(bb.y);
}
- ND_shape_info(n) = (void *) poly;
+ ND_shape_info(n) = poly;
}
static void poly_free(node_t * n)
if (n != lastn) {
double n_width, n_height;
- poly = (polygon_t *) ND_shape_info(n);
+ poly = ND_shape_info(n);
vertex = poly->vertices;
sides = poly->sides;
obj->url, obj->tooltip, obj->target,
obj->id);
- poly = (polygon_t *) ND_shape_info(n);
+ poly = ND_shape_info(n);
vertices = poly->vertices;
sides = poly->sides;
peripheries = poly->peripheries;
poly->vertices = vertices;
ND_height(n) = ND_width(n) = PS2INCH(sz);
- ND_shape_info(n) = (void *) poly;
+ ND_shape_info(n) = poly;
}
static bool point_inside(inside_t * inside_context, pointf p)
if (n != lastn) {
int outp;
- polygon_t *poly = (polygon_t *) ND_shape_info(n);
+ polygon_t *poly = ND_shape_info(n);
/* index to outer-periphery */
outp = 2 * (poly->peripheries - 1);
obj->url, obj->tooltip, obj->target,
obj->id);
- poly = (polygon_t *) ND_shape_info(n);
+ poly = ND_shape_info(n);
vertices = poly->vertices;
sides = poly->sides;
peripheries = poly->peripheries;
ND_width(n) = PS2INCH(info->size.x);
ND_height(n) = PS2INCH(info->size.y + 1); /* Kluge!! +1 to fix rounding diff between layout and rendering
otherwise we can get -1 coords in output */
- ND_shape_info(n) = (void *) info;
+ ND_shape_info(n) = info;
}
static void record_free(node_t * n)
sides = BOTTOM | RIGHT | TOP | LEFT;
if (compass == NULL)
compass = "_";
- f = (field_t *) ND_shape_info(n);
+ f = ND_shape_info(n);
if ((subf = map_rec_port(f, portname))) {
if (compassPort(n, &subf->b, &rv, compass, subf->sides, NULL)) {
agerr(AGWARN,
p = ccwrotatepf(p, 90 * GD_rankdir(agraphof(n)));
if (bp == NULL) {
- fld0 = (field_t *) ND_shape_info(n);
+ fld0 = ND_shape_info(n);
bbox = fld0->b;
} else
bbox = *bp;
if (!prt->defined)
return 0;
p = prt->p;
- info = (field_t *) ND_shape_info(n);
+ info = ND_shape_info(n);
for (i = 0; i < info->n_flds; i++) {
if (!GD_flip(agraphof(n))) {
int filled;
char* clrs[2];
- f = (field_t *) ND_shape_info(n);
+ f = ND_shape_info(n);
BF = f->b;
BF.LL.x += ND_coord(n).x;
BF.LL.y += ND_coord(n).y;
epsf_t *desc;
int doMap = obj->url || obj->explicit_tooltip;
- desc = (epsf_t *) (ND_shape_info(n));
+ desc = ND_shape_info(n);
if (!desc)
return;
}
if (n != lastn) {
- poly = (polygon_t *) ND_shape_info(n);
+ poly = ND_shape_info(n);
vertex = poly->vertices;
sides = poly->sides;