Changeset 114 for trunk/SRC/ToBeReviewed/COULEURS
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed/COULEURS
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/COULEURS/color24.pro
r19 r114 46 46 47 47 FUNCTION COLOR24, number 48 ; 49 compile_opt idl2, strictarrsubs 50 ; 48 51 49 52 ; This FUNCTION accepts a [red, green, blue] triple that … … 69 72 num24bit = 0L 70 73 71 FOR j=0,2 DO num24bit = num24bit + ((number (j) MOD 16) * base16(0,j)) + $72 (Fix(number (j)/16) * base16(1,j))74 FOR j=0,2 DO num24bit = num24bit + ((number[j] MOD 16) * base16[0,j]) + $ 75 (Fix(number[j]/16) * base16[1,j]) 73 76 74 77 RETURN, num24bit -
trunk/SRC/ToBeReviewed/COULEURS/colorbar.pro
r19 r114 121 121 PSCOLOR=pscolor, CB_TITLE=cb_title, VERTICAL=vertical, TOP=top, RIGHT=right, CB_LOG = CB_log, _extra = ex 122 122 ; Is the PostScript device selected? 123 ; 124 compile_opt idl2, strictarrsubs 125 ; 123 126 124 127 postScriptDevice = (!D.NAME EQ 'PS') … … 207 210 ; Get starting locations in DEVICE coordinates. 208 211 209 xstart = position (0)* !D.X_VSIZE210 ystart = position (1)* !D.Y_VSIZE212 xstart = position[0] * !D.X_VSIZE 213 ystart = position[1] * !D.Y_VSIZE 211 214 212 215 ; Get the size of the bar in DEVICE coordinates. 213 216 214 xsize = (position (2) - position(0)) * !D.X_VSIZE215 ysize = (position (3) - position(1)) * !D.Y_VSIZE217 xsize = (position[2] - position[0]) * !D.X_VSIZE 218 ysize = (position[3] - position[1]) * !D.Y_VSIZE 216 219 217 220 ; For PostScript output only, draw the annotation in !P.COLOR -
trunk/SRC/ToBeReviewed/COULEURS/getcolor.pro
r19 r114 181 181 182 182 FUNCTION COLOR24, number 183 ; 184 compile_opt idl2, strictarrsubs 185 ; 183 186 184 187 ; This FUNCTION accepts a [red, green, blue] triple that … … 204 207 num24bit = 0L 205 208 206 FOR j=0,2 DO num24bit = num24bit + ((number (j) MOD 16) * base16(0,j)) + $207 (Fix(number (j)/16) * base16(1,j))209 FOR j=0,2 DO num24bit = num24bit + ((number[j] MOD 16) * base16[0,j]) + $ 210 (Fix(number[j]/16) * base16[1,j]) 208 211 209 212 RETURN, num24bit … … 214 217 FUNCTION GETCOLOR, thisColor, index, TRUE=truecolor, $ 215 218 NAMES=colornames, LOAD=load, START=start 219 ; 220 compile_opt idl2, strictarrsubs 221 ; 216 222 217 223 ; Set up the color vectors. … … 315 321 316 322 varInfo = SIZE(thisColor) 317 IF varInfo (varInfo(0) + 1)NE 7 THEN $323 IF varInfo[varInfo[0] + 1] NE 7 THEN $ 318 324 MESSAGE, 'The color name must be a string.' 319 325 thisColor = STRUPCASE(thisColor) … … 326 332 ; set the index to a YELLOW color, and continue. 327 333 328 IF colorIndex (0)LT 0 THEN BEGIN334 IF colorIndex[0] LT 0 THEN BEGIN 329 335 MESSAGE, "Can't find color. Returning YELLOW.", /INFORMATIONAL 330 336 colorIndex = 3 … … 333 339 ; Get the color triple. 334 340 335 r = rvalue (colorIndex)336 g = gvalue (colorIndex)337 b = bvalue (colorIndex)341 r = rvalue[colorIndex] 342 g = gvalue[colorIndex] 343 b = bvalue[colorIndex] 338 344 returnColor = REFORM([r, g, b], 1, 3) 339 345 -
trunk/SRC/ToBeReviewed/COULEURS/lct.pro
r19 r114 35 35 ;------------------------------------------------------------ 36 36 PRO lct, numero, GET_NAME = get_name, LIGHTNESS = Lightness, _EXTRA = ex 37 ; 38 compile_opt idl2, strictarrsubs 39 ; 37 40 @common 38 41 ; le mot cle file est passe par l''intermediere de EXTRA? -
trunk/SRC/ToBeReviewed/COULEURS/newpalette.pro
r19 r114 40 40 ; le mot cle file est passe par l''intermediere de EXTRA? 41 41 ; definition du mon du fichier qui contient les palettes de couleur 42 ; 43 compile_opt idl2, strictarrsubs 44 ; 42 45 if n_elements(ex) NE 0 then BEGIN 43 46 if (where(tag_names(ex) EQ 'FILE'))[0] NE -1 then nompal=ex.FILE ELSE nompal='palette.tbl' -
trunk/SRC/ToBeReviewed/COULEURS/palit.pro
r97 r114 8 8 ;- 9 9 PRO palit, coef, red, green, blue 10 ; 11 compile_opt idl2, strictarrsubs 12 ; 10 13 IF n_elements(coef) EQ 0 THEN coef = 0.5 11 14 IF n_elements(red) EQ 0 THEN tvlct, red, green, blue, /get -
trunk/SRC/ToBeReviewed/COULEURS/xlct.pro
r19 r114 6 6 PRO XLCT_PSAVE ;Save/Restore our plotting state. 7 7 ; Swaps our state with the current state each time its called. 8 ; 9 compile_opt idl2, strictarrsubs 10 ; 8 11 9 12 COMMON xlct_com, r0, g0, b0, tfun, state, filename, cps, psave, pnt, $ … … 25 28 26 29 pro xlct_alert_caller 30 ; 31 compile_opt idl2, strictarrsubs 32 ; 27 33 COMMON xlct_com, r0, g0, b0, tfun, state, filename, cps, psave, pnt, $ 28 34 top, bot, silent, chop, lock, g_lbl, vbot, vtop, g_slider, $ … … 51 57 ; Redraw the ramp image. 52 58 PRO xlct_show 59 ; 60 compile_opt idl2, strictarrsubs 61 ; 53 62 COMMON xlct_com, r0, g0, b0, tfun, state, filename, cps, psave, pnt, $ 54 63 top, bot, silent, chop, lock, g_lbl, vbot, vtop, g_slider, $ … … 68 77 69 78 PRO xlct_draw_cps, i, c 79 ; 80 compile_opt idl2, strictarrsubs 81 ; 70 82 COMMON colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr 71 83 COMMON xlct_com, r0, g0, b0, tfun, state, filename, cps, psave, pnt, $ … … 86 98 87 99 PRO xlct_transfer, UPDATE=update 100 ; 101 compile_opt idl2, strictarrsubs 102 ; 88 103 COMMON colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr 89 104 COMMON xlct_com, r0, g0, b0, tfun, state, filename, cps, psave, pnt, $ … … 115 130 116 131 PRO xlct_event, event 132 ; 133 compile_opt idl2, strictarrsubs 134 ; 117 135 COMMON colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr 118 136 COMMON xlct_com, r0, g0, b0, tfun, state, filename, cps, psave, pnt, $ … … 430 448 MODAL=modal, BLOCK=block, UPDATECALLBACK=updt_cb_name, $ 431 449 UPDATECBDATA=updt_cb_data 450 ; 451 compile_opt idl2, strictarrsubs 452 ; 432 453 433 454 COMMON colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr -
trunk/SRC/ToBeReviewed/COULEURS/xpal.pro
r19 r114 157 157 ; color maps and set !P appropriately. Returns 1 if the colors changed, 158 158 ; 0 otherwise. 159 ; 160 compile_opt idl2, strictarrsubs 161 ; 159 162 common xp_com, xpw, state 160 163 … … 176 179 177 180 pro XP_ALERT_CALLER 181 ; 182 compile_opt idl2, strictarrsubs 183 ; 178 184 179 185 common xp_com, xpw, state … … 200 206 ; For visuals with static colormaps, update the graphics 201 207 ; after a change by XLOADCT. 208 ; 209 compile_opt idl2, strictarrsubs 210 ; 202 211 if ((COLORMAP_APPLICABLE(redrawRequired) GT 0) and $ 203 212 (redrawRequired GT 0)) then begin … … 208 217 209 218 pro XP_REDRAW 219 ; 220 compile_opt idl2, strictarrsubs 221 ; 210 222 211 223 common xp_com, xpw, state … … 227 239 ; - 'G': Draw the data part of the Green plot 228 240 ; - 'B': Draw the data part of the Blue plot 241 ; 242 compile_opt idl2, strictarrsubs 243 ; 229 244 230 245 common xp_com, xpw, state … … 303 318 ; - 'G': ... 304 319 ; - 'B': ... 320 ; 321 compile_opt idl2, strictarrsubs 322 ; 305 323 common xp_com, xpw, state 306 324 common colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr … … 348 366 349 367 pro XP_BUTTON_EVENT, event 368 ; 369 compile_opt idl2, strictarrsubs 370 ; 350 371 351 372 common xp_com, xpw, state … … 461 482 462 483 PRO xp_button_event_event, ev 484 ; 485 compile_opt idl2, strictarrsubs 486 ; 463 487 COMMON basecommon, bas212, bas222, bas232 464 488 WIDGET_CONTROL, ev.id, GET_UVALUE = uval … … 485 509 486 510 pro XP_EVENT, event 511 ; 512 compile_opt idl2, strictarrsubs 513 ; 487 514 488 515 common xp_com, xpw, state … … 532 559 pro XPAL, group=group, BLOCK=block, UPDATECALLBACK=updt_cb_name, $ 533 560 UPDATECBDATA=updt_cb_data 561 ; 562 compile_opt idl2, strictarrsubs 563 ; 534 564 535 565
Note: See TracChangeset
for help on using the changeset viewer.