Lines Matching defs:bbox

24     double bbox[4];		/* Coordinates (x1, y1, x2, y2) of bounding
251 if ((Tk_CanvasGetCoord(interp, canvas, argv[0], &arcPtr->bbox[0]) != TCL_OK)
253 &arcPtr->bbox[1]) != TCL_OK)
255 &arcPtr->bbox[2]) != TCL_OK)
257 &arcPtr->bbox[3]) != TCL_OK)) {
303 Tcl_PrintDouble(interp, arcPtr->bbox[0], c0);
304 Tcl_PrintDouble(interp, arcPtr->bbox[1], c1);
305 Tcl_PrintDouble(interp, arcPtr->bbox[2], c2);
306 Tcl_PrintDouble(interp, arcPtr->bbox[3], c3);
311 &arcPtr->bbox[0]) != TCL_OK)
313 &arcPtr->bbox[1]) != TCL_OK)
315 &arcPtr->bbox[2]) != TCL_OK)
317 &arcPtr->bbox[3]) != TCL_OK)) {
515 ArcItem *arcPtr; /* Item whose bbox is to be
524 if (arcPtr->bbox[1] > arcPtr->bbox[3]) {
526 tmp = arcPtr->bbox[3];
527 arcPtr->bbox[3] = arcPtr->bbox[1];
528 arcPtr->bbox[1] = tmp;
530 if (arcPtr->bbox[0] > arcPtr->bbox[2]) {
532 tmp = arcPtr->bbox[2];
533 arcPtr->bbox[2] = arcPtr->bbox[0];
534 arcPtr->bbox[0] = tmp;
540 * To compute the bounding box, start with the the bbox formed
549 center[0] = (arcPtr->bbox[0] + arcPtr->bbox[2])/2;
550 center[1] = (arcPtr->bbox[1] + arcPtr->bbox[3])/2;
560 point[0] = arcPtr->bbox[2];
570 point[1] = arcPtr->bbox[1];
578 point[0] = arcPtr->bbox[0];
588 point[1] = arcPtr->bbox[3];
646 Tk_CanvasDrawableCoords(canvas, arcPtr->bbox[0], arcPtr->bbox[1],
648 Tk_CanvasDrawableCoords(canvas, arcPtr->bbox[2], arcPtr->bbox[3],
703 (arcPtr->bbox[0] + arcPtr->bbox[2])/2.0,
704 (arcPtr->bbox[1] + arcPtr->bbox[3])/2.0, &cx, &cy);
777 vertex[0] = (arcPtr->bbox[0] + arcPtr->bbox[2])/2.0;
778 vertex[1] = (arcPtr->bbox[1] + arcPtr->bbox[3])/2.0;
779 t1 = (pointPtr[1] - vertex[1])/(arcPtr->bbox[3] - arcPtr->bbox[1]);
780 t2 = (pointPtr[0] - vertex[0])/(arcPtr->bbox[2] - arcPtr->bbox[0]);
801 return TkOvalToPoint(arcPtr->bbox, (double) arcPtr->width,
839 newDist = TkOvalToPoint(arcPtr->bbox, width, filled, pointPtr);
872 newDist = TkOvalToPoint(arcPtr->bbox, width, filled, pointPtr);
948 center[0] = (arcPtr->bbox[0] + arcPtr->bbox[2])/2.0;
949 center[1] = (arcPtr->bbox[1] + arcPtr->bbox[3])/2.0;
954 rx = arcPtr->bbox[2] - center[0] + width/2.0;
955 ry = arcPtr->bbox[3] - center[1] + width/2.0;
1163 arcPtr->bbox[0] = originX + scaleX*(arcPtr->bbox[0] - originX);
1164 arcPtr->bbox[1] = originY + scaleY*(arcPtr->bbox[1] - originY);
1165 arcPtr->bbox[2] = originX + scaleX*(arcPtr->bbox[2] - originX);
1166 arcPtr->bbox[3] = originY + scaleY*(arcPtr->bbox[3] - originY);
1198 arcPtr->bbox[0] += deltaX;
1199 arcPtr->bbox[1] += deltaY;
1200 arcPtr->bbox[2] += deltaX;
1201 arcPtr->bbox[3] += deltaY;
1270 boxWidth = arcPtr->bbox[2] - arcPtr->bbox[0];
1271 boxHeight = arcPtr->bbox[3] - arcPtr->bbox[1];
1278 vertex[0] = (arcPtr->bbox[0] + arcPtr->bbox[2])/2.0;
1279 vertex[1] = (arcPtr->bbox[1] + arcPtr->bbox[3])/2.0;
1623 y1 = Tk_CanvasPsY(canvas, arcPtr->bbox[1]);
1624 y2 = Tk_CanvasPsY(canvas, arcPtr->bbox[3]);
1639 (arcPtr->bbox[0] + arcPtr->bbox[2])/2, (y1 + y2)/2,
1640 (arcPtr->bbox[2] - arcPtr->bbox[0])/2, (y1 - y2)/2);
1674 (arcPtr->bbox[0] + arcPtr->bbox[2])/2, (y1 + y2)/2,
1675 (arcPtr->bbox[2] - arcPtr->bbox[0])/2, (y1 - y2)/2);