IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36470


Ignore:
Timestamp:
Feb 1, 2014, 6:07:03 AM (12 years ago)
Author:
eugene
Message:

do not plot out of range points

Location:
branches/eam_branches/ipp-20131211/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20131211/Ohana/src/kapa2/src/bDrawObjects.c

    r35416 r36470  
    315315        D = scaleSize ? dz*z[i] : ds;
    316316        FillRectangle (buffer, sx, sy, 2*D, 2*D);
     317        // plot range saturated by bDrawRectFill
    317318      }
    318319    }
     
    335336        D = scaleSize ? dz*z[i] : ds;
    336337        DrawRectangle (buffer, sx, sy, 2*D, 2*D);
     338        // plot range saturated by bDrawRectOpen
    337339      }
    338340    }
     
    356358        DrawLine (buffer, sx - D, sy, sx + D, sy);
    357359        DrawLine (buffer, sx, sy - D, sx, sy + D);
     360        // out-of-range points skipped by bDrawPoint
    358361      }
    359362    }
     
    377380        DrawLine (buffer, sx + D, sy - D, sx - D, sy + D);
    378381        DrawLine (buffer, sx - D, sy - D, sx + D, sy + D);
     382        // out-of-range points skipped by bDrawPoint
    379383      }
    380384    }
     
    398402        // FillTriangle (buffer, sx - D, sy - 0.58*D, sx + D, sy - 0.58*D, sx, sy + 1.15*D);
    399403        FillTriangle (buffer, sx, sy + 0.58*D, D, -1.73*D);
     404        // out-of-range points skipped by bDrawPoint
    400405      }
    401406    }
     
    418423        D = scaleSize ? dz*z[i] : ds;
    419424        OpenTriangle (buffer, sx - D, sy + 0.58*D, sx + D, sy + 0.58*D, sx, sy - 1.15*D);
     425        // out-of-range points skipped by bDrawPoint
    420426      }
    421427    }
     
    440446        DrawLine (buffer, sx, sy, sx + D, sy - 0.58*D);
    441447        DrawLine (buffer, sx, sy, sx,     sy + 1.15*D);
     448        // out-of-range points skipped by bDrawPoint
    442449      }
    443450    }
     
    460467        D = scaleSize ? dz*z[i] : ds;
    461468        DrawCircle (buffer, sx, sy, D);
     469        // out-of-range points skipped by bDrawPoint
    462470      }
    463471    }
     
    484492        DrawLine (buffer, sx - 0.58*D, sy + 0.81*D, sx - 0.95*D, sy - 0.31*D);
    485493        DrawLine (buffer, sx - 0.95*D, sy - 0.31*D, sx + 0.00*D, sy - 1.00*D);
     494        // out-of-range points skipped by bDrawPoint
    486495      }
    487496    }
     
    509518        DrawLine (buffer, sx + 0.50*D, sy - 0.87*D, sx - 0.50*D, sy - 0.87*D);
    510519        DrawLine (buffer, sx - 0.50*D, sy - 0.87*D, sx -      D, sy);
     520        // out-of-range points skipped by bDrawPoint
    511521      }
    512522    }
     
    529539        D = scaleSize ? dz*z[i] : ds;
    530540        FillCircle (buffer, sx, sy, D);
     541        // out-of-range points skipped by bDrawLineHorizontal
    531542      }
    532543    }
  • branches/eam_branches/ipp-20131211/Ohana/src/libkapa/src/bDrawFuncs.c

    r33956 r36470  
    247247  int i;
    248248
     249  if (Y <  0) return;
     250  if (Y >= buffer[0].Ny) return;
     251
    249252  for (i = X1; i < X2; i++) {
     253    if (i <  0) continue;
     254    if (i >= buffer[0].Nx) continue;
    250255    if (buffer[0].Nbyte == 1) {
    251256      buffer[0].pixels[Y][i] = buffer->bColor;
     
    263268  int i;
    264269
     270  if (X <  0) return;
     271  if (X >= buffer[0].Nx) return;
     272
    265273  for (i = Y1; i < Y2; i++) {
     274    if (i <  0) continue;
     275    if (i >= buffer[0].Ny) continue;
    266276    if (buffer[0].Nbyte == 1) {
    267277      buffer[0].pixels[i][X] = buffer->bColor;
Note: See TracChangeset for help on using the changeset viewer.