- Timestamp:
- Dec 24, 2007, 5:47:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071222/Ohana/src/kapa2/include/structures.h
r15906 r15925 2 2 /**************** Graphic carries X info around ****************/ 3 3 typedef struct { 4 Display *display; 5 int screen; 4 Display *display; // X display pointer 5 int screen; // X screen number 6 6 int depth; 7 7 Window window; 8 8 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) 11 11 GC gc; 12 12 XFontStruct *font; … … 14 14 int x, y; 15 15 unsigned int dx, dy; 16 XColor cmap[1024];16 XColor *cmap; 17 17 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 24 19 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 25 28 } Graphic; 26 29 … … 125 128 } KapaGraphWidget; 126 129 130 typedef 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 127 141 // a single image in the display window 128 142 typedef struct { … … 139 153 Button grey_button; 140 154 Button rainbow_button; 141 Button puns_button;155 Button heat_button; 142 156 Button overlay_button[NOVERLAYS]; 143 157 … … 149 163 int DecimalDegrees; 150 164 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 152 169 Overlay overlay[NOVERLAYS]; 153 170 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]; 164 175 } KapaImageWidget; 165 176
Note:
See TracChangeset
for help on using the changeset viewer.
