IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2019, 10:54:47 AM (7 years ago)
Author:
eugene
Message:

add multi-point polygon plots (and filled versions); add memory checks; add buffer smoothing for anti-aliasing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/include/kapa.h

    r40558 r41156  
    4545  KAPA_PLOT_BARS_OUTLINE =  4,
    4646  KAPA_PLOT_BARS_OUTFILL =  5,
    47   KAPA_PLOT_INVALID_MAX  =  6,
     47  KAPA_PLOT_POLYGON      =  6,
     48  KAPA_PLOT_POLYFILL     =  7,
     49  KAPA_PLOT_INVALID_MAX  =  8,
    4850} KapaPlotStyle;
    4951
     
    172174  int Nx, Ny, Nbyte;
    173175  bDrawColor **pixels;
     176  char **mask;
    174177  png_color *palette;
    175178  int Npalette;
     179
    176180  // current drawing values:
    177181  int bWeight;
     
    256260int KapaGetImageData (int fd, KapaImageData *graphmode);
    257261int KapaSetToolbox (int fd, int location);
     262int KapaSetSmoothSigma (int fd, float sigma);
     263int KapaMemoryDump (int fd);
     264int KapaMemoryDumpLines (int fd, int Nlines);
     265int KapaMemoryDumpOnExit (int fd, int state);
    258266
    259267/* KapaColors */
     
    272280/* RotFont.c */
    273281void InitRotFonts PROTO((void));
     282void FreeRotFonts PROTO((void));
    274283int SetRotFont PROTO((char *name, int size));
    275284char *GetRotFont PROTO((int *size));
     
    292301bDrawBuffer *bDrawBufferCreate (int Nx, int Ny, int Nbyte, png_color *palette, int Npalette);
    293302void bDrawBufferFree (bDrawBuffer *buffer);
     303int bDrawMerge (bDrawBuffer *base, bDrawBuffer *layer);
    294304void bDrawSetBuffer (bDrawBuffer *buffer);
    295305void bDrawSetColor (bDrawBuffer *buffer, bDrawColor color);
     
    312322void bDrawTriOpen  (bDrawBuffer *buffer, double x1, double y1, double x2, double y2, double x3, double y3);
    313323void bDrawTriFill  (bDrawBuffer *buffer, double x1, double y1, double dx, double dy);
     324void bDrawPolyFill (bDrawBuffer *buffer, double *x, double *y, int Npoints);
     325
     326void bDrawSmooth (bDrawBuffer *buffer, float sigma);
    314327
    315328/* bDrawRotFont.c */
Note: See TracChangeset for help on using the changeset viewer.