IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 8, 2008, 12:49:54 PM (18 years ago)
Author:
eugene
Message:

split full color into color histogram vs set color scale; fixed F1-3 buttons

File:
1 edited

Legend:

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

    r16011 r16039  
    1 
    2 /**************** Graphic carries X info around ****************/
    3 typedef struct {
    4   Display       *display;     // X display pointer
    5   int            screen;      // X screen number
    6   int            depth;
    7   Window         window;
    8   Visual        *visual;
    9   int            visualclass; // is visual dynamic? (XXX change name?)
    10   int            Nbits;       // pixel depth in bits (8, 16, 24, 32)
    11   GC             gc;
    12   XFontStruct   *font;
    13   Cursor         cursor;
    14   int            x,  y;
    15   unsigned int   dx, dy;
    16   XColor        *cmap;
    17   Colormap       colormap;
    18   unsigned long *color;      // graph plotting colors
    19   int            Ncolors;
    20 
    21   unsigned long *pixels;      // image pixel colors
    22   int Npixels;                // number of pixels
    23 
    24   int            ColorScaleMode; // single colormap for all images??
    25   int nRed;
    26   int nBlue;
    27   int nGreen;
    28 
    29   unsigned long  fore;        // basic foreground color
    30   unsigned long  back;        // basic background color
    31 
    32   unsigned long  overlay_color[NOVERLAYS]; // image plotting colors
    33 } Graphic;
    34 
    35 /**************** X related "widget" structures ****************/
    36 typedef struct {
    37   int      x, y, dx, dy;      /* position and size */
    38   int      width, height;     /* size of the bitmap */
    39   char    *bitmap;            /* picture on button */
    40   int    (*function_1) ();    /* mouse_button 1 function */
    41   int    (*function_2) ();    /* mouse_button 2 function */
    42   int    (*function_3) ();    /* mouse_button 3 function */
    43 } Button;
    44 
    45 typedef struct {
    46   int      x, y, dx, dy;   /* position and size */
    47   char    *label;          /* label on TextLine */
    48   char     text[1024];     /* words of TextLine */
    49   char     old_text[1024]; /* words of TextLine */
    50   int      outline;        /* draw an outline?  */
    51   int      cursor;         /* location of cursor (if selected) */
    52   int    (*function) ();   /* textline function */
    53 } TextLine;
    54 
    55 typedef char STRING[1024];
    56 
    57 typedef struct {
    58   int      x, y, dx, dy;   /* position and size */
    59   STRING  *text;           /* words of TextLine */
    60   int      Nlines;
    61   int      outline;        /* draw an outline?  */
    62   int      cursor_line;    /* cursor line */
    63   int      cursor_x;       /* location of cursor (if selected) */
    64   int      cursor_y;       /* location of cursor (if selected) */
    65   int    (*function) ();   /* textline function */
    66 } TextBox;
    671
    682/*** 3C color cube histogram tree thingy ***/
     
    8014} CCNode;
    8115
     16/**************** Graphic carries X info around ****************/
     17typedef struct {
     18  Display       *display;     // X display pointer
     19  int            screen;      // X screen number
     20  int            depth;
     21  Window         window;
     22  Visual        *visual;
     23  int            visualclass; // is visual dynamic? (XXX change name?)
     24  int            Nbits;       // pixel depth in bits (8, 16, 24, 32)
     25  GC             gc;
     26  XFontStruct   *font;
     27  Cursor         cursor;
     28  int            x,  y;
     29  unsigned int   dx, dy;
     30  CCNode        *cube;
     31  XColor        *cmap;
     32  Colormap       colormap;
     33  unsigned long *color;      // graph plotting colors
     34  int            Ncolors;
     35
     36  unsigned long *pixels;      // image pixel colors
     37  int Npixels;                // number of pixels
     38
     39  int            ColorScaleMode; // single colormap for all images??
     40  int nRed;
     41  int nBlue;
     42  int nGreen;
     43
     44  unsigned long  fore;        // basic foreground color
     45  unsigned long  back;        // basic background color
     46
     47  unsigned long  overlay_color[NOVERLAYS]; // image plotting colors
     48} Graphic;
     49
     50/**************** X related "widget" structures ****************/
     51typedef struct {
     52  int      x, y, dx, dy;      /* position and size */
     53  int      width, height;     /* size of the bitmap */
     54  char    *bitmap;            /* picture on button */
     55  int    (*function_1) ();    /* mouse_button 1 function */
     56  int    (*function_2) ();    /* mouse_button 2 function */
     57  int    (*function_3) ();    /* mouse_button 3 function */
     58} Button;
     59
     60typedef struct {
     61  int      x, y, dx, dy;   /* position and size */
     62  char    *label;          /* label on TextLine */
     63  char     text[1024];     /* words of TextLine */
     64  char     old_text[1024]; /* words of TextLine */
     65  int      outline;        /* draw an outline?  */
     66  int      cursor;         /* location of cursor (if selected) */
     67  int    (*function) ();   /* textline function */
     68} TextLine;
     69
     70typedef char STRING[1024];
     71
     72typedef struct {
     73  int      x, y, dx, dy;   /* position and size */
     74  STRING  *text;           /* words of TextLine */
     75  int      Nlines;
     76  int      outline;        /* draw an outline?  */
     77  int      cursor_line;    /* cursor line */
     78  int      cursor_x;       /* location of cursor (if selected) */
     79  int      cursor_y;       /* location of cursor (if selected) */
     80  int    (*function) ();   /* textline function */
     81} TextBox;
     82
    8283/**************** general structures ****************/
    8384typedef struct {
Note: See TracChangeset for help on using the changeset viewer.