IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 14, 2010, 2:07:33 PM (16 years ago)
Author:
eugene
Message:

clip lines for pt 100 (contours) on edge of plot; fix significant digits for axis and axis strlen; make consistent box & image regardless of -imtool setting, both with and without image or graph; add element to GraphWidget to note existence of a plot (graph may be non NULL and plot may not be defined); update png_jmpbuf code to avoid deprecated element of png struture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/Ohana/src/kapa2/src/DrawObjects.c

    r27530 r29410  
    517517    }
    518518    if (object[0].ptype == 100) {       /* connect a pair of points */
     519
     520      double X0 = graph[0].axis[0].fx;
     521      double X1 = graph[0].axis[0].fx + graph[0].axis[0].dfx;
     522      double Y0 = graph[0].axis[1].fy;
     523      double Y1 = graph[0].axis[1].fy + graph[0].axis[1].dfy;
     524
    519525      for (i = 0; i + 1 < object[0].Npts; i+=2) {
    520526        if (!(finite(x[i]) && finite(y[i]))) continue;
     
    524530        sx2 = x[i+1]*mxi + y[i+1]*mxj + bx;
    525531        sy2 = x[i+1]*myi + y[i+1]*myj + by;
    526         DrawLine (sx1, sy1, sx2, sy2);
     532        ClipLine (sx1, sy1, sx2, sy2, X0, Y0, X1, Y1);
    527533      }
    528534    }
     
    674680    }
    675681    if (object[0].ptype == 100) {       
     682      double X0 = graph[0].axis[0].fx;
     683      double X1 = graph[0].axis[0].fx + graph[0].axis[0].dfx;
     684      double Y0 = graph[0].axis[1].fy;
     685      double Y1 = graph[0].axis[1].fy + graph[0].axis[1].dfy;
     686
    676687      for (i = 0; i + 1 < object[0].Npts; i+=2) {
    677688        if (!(finite(x[i]) && finite(y[i]))) continue;
     
    680691        sx2 = x[i+1]*mxi + y[i+1]*mxj + bx;
    681692        sy2 = x[i+1]*myi + y[i+1]*myj + by;
    682         DrawLine (sx1, sy1, sx2, sy2);
     693        ClipLine (sx1, sy1, sx2, sy2, X0, Y0, X1, Y1);
    683694      }
    684695    }
Note: See TracChangeset for help on using the changeset viewer.