IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 24, 2007, 5:47:04 PM (19 years ago)
Author:
eugene
Message:

lots of work to add in multiple channels, blinking, working to 3D colors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071222/Ohana/src/kapa2/include/structures.h

    r15906 r15925  
    22/**************** Graphic carries X info around ****************/
    33typedef struct {
    4   Display       *display;
    5   int            screen;
     4  Display       *display;     // X display pointer
     5  int            screen;      // X screen number
    66  int            depth;
    77  Window         window;
    88  Visual        *visual;
    9   int            visualclass;
    10   int            Nbits;
     9  int            visualclass; // is visual dynamic? (XXX change name?)
     10  int            Nbits;       // pixel depth in bits (8, 16, 24, 32)
    1111  GC             gc;
    1212  XFontStruct   *font;
     
    1414  int            x,  y;
    1515  unsigned int   dx, dy;
    16   XColor         cmap[1024];
     16  XColor        *cmap;
    1717  Colormap       colormap;
    18   unsigned long  fore;
    19   unsigned long  back;
    20   unsigned long  *color;
    21   unsigned long  pixels[1024];
    22   unsigned long  overlay_color[NOVERLAYS];
    23   int Npixels;
     18  unsigned long *color;      // graph plotting colors
    2419  int Ncolors;
     20
     21  unsigned long *pixels;     // image pixel colors
     22  int Npixels;                // number of pixels
     23
     24  unsigned long  fore;        // basic foreground color
     25  unsigned long  back;        // basic background color
     26
     27  unsigned long  overlay_color[NOVERLAYS]; // image plotting colors
    2528} Graphic;
    2629
     
    125128} KapaGraphWidget;
    126129
     130typedef struct {
     131  // data associated with this image element
     132  Matrix   matrix;         /* data for picture */
     133  double   zero, range;    /* zero, range for picture to cmap */
     134  double   max, min;       /* zero, range for data to z-value */
     135  double   start, slope;   /* zero, range for cmap to pixels */
     136  Coords   coords;
     137  char     file[1024];     /* name of file */
     138  char     name[1024];     /* name of buffer */
     139} KapaImageChannel;
     140
    127141// a single image in the display window
    128142typedef struct {
     
    139153  Button   grey_button;
    140154  Button   rainbow_button;
    141   Button    puns_button;
     155  Button   heat_button;
    142156  Button   overlay_button[NOVERLAYS];
    143157
     
    149163  int      DecimalDegrees;
    150164
    151   // data associated with this image element
     165  double   X, Y;           /* image pixel at screen center */
     166  int      expand;         /* zoomscale */
     167  double   x, y, z;        /* last pointer coords */
     168
    152169  Overlay  overlay[NOVERLAYS];
    153170  Overlay  tickmarks;
    154   Matrix   matrix;         /* data for picture */
    155   double   X, Y;           /* image pixel at screen center */
    156   int      expand;         /* zoomscale */
    157   double   zero, range;    /* zero, range for picture to cmap */
    158   double   max, min;       /* zero, range for data to z-value */
    159   double   start, slope;   /* zero, range for cmap to pixels */
    160   double   x, y, z;        /* last pointer coords */
    161   Coords   coords;
    162   char     file[1024];     /* name of file */
    163   char     name[1024];  /* name of buffer */
     171
     172  unsigned short   *pixmap;   // lookup table for image pixel value to pixel index
     173  KapaImageChannel *image;
     174  KapaImageChannel channel[NCHANNELS];
    164175} KapaImageWidget;
    165176
Note: See TracChangeset for help on using the changeset viewer.