Changeset 830

Show
Ignore:
Timestamp:
09/29/07 01:06:56 (11 months ago)
Author:
mankoff
Message:
  • AUTO_TRANSPARENCY defaults to on but can be explicitely set to 0 to save mem/time
  • Moved checkboxes (iso,volume,image,etc.) to left side and compacted by removing 'Show'
  • Added UI checkboxes to turn on/off planes individually, but no functionality
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/clouds/xyztn.pro

    r829 r830  
    828828  ;; Image controls 
    829829  wRow = WIDGET_BASE(wFrameBase,/ROW) 
     830  wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
     831  wImgShow = WIDGET_BUTTON(wRowB,VALUE='Image',UVAL='IMG_SHOW') 
    830832  wIVolSel = WIDGET_DROPLIST(wRow,VALUE=dnames, $ 
    831                              FRAME=frame,TITLE='Image',UVAL='IMG_VOLSEL') 
    832   wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
    833   wImgShow = WIDGET_BUTTON(wRowB,VALUE='Show',UVAL='IMG_SHOW') 
     833                             FRAME=frame,UVAL='IMG_VOLSEL') 
    834834  WIDGET_CONTROL,wImgShow,/SET_BUTTON 
    835835   
    836836  ;; Contour 
    837837  wRow = WIDGET_BASE(wFrameBase,/ROW) 
     838  wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
     839  wContShow = WIDGET_BUTTON(wRowB,VALUE='Contour',UVAL='CONT_SHOW') 
    838840  wIVolSel = WIDGET_DROPLIST(wRow,VALUE=dnames, $ 
    839                              FRAME=frame,TITLE='Contour',UVAL='CONT_VOLSEL') 
    840   wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
    841   wContShow = WIDGET_BUTTON(wRowB,VALUE='Show',UVAL='CONT_SHOW') 
     841                             FRAME=frame,UVAL='CONT_VOLSEL') 
    842842   
    843843  ;; Possible vector 
     
    862862  ;; Planes for image/contour/vectors 
    863863  wRow = WIDGET_BASE(wFrameBase,/ROW) 
    864   wText = WIDGET_LABEL(wRow, VALUE='X:' ) 
     864  wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
     865  wXPlaneShow = WIDGET_BUTTON(wRowB,VALUE='X:',UVAL='SHOW_XPLANE' ) 
     866  WIDGET_CONTROL, wXPlaneShow, /SET_BUTTON 
    865867  wXSlider = WIDGET_SLIDER(wRow, MAXIMUM=xMax, UVALUE='X_VALUE', $ 
    866868                           VALUE=xMax*0.75, /SUPPRESS_VALUE, /DRAG) 
     
    870872 
    871873  wRow = WIDGET_BASE(wFrameBase,/ROW) 
    872   wText = WIDGET_LABEL(wRow, VALUE='Y:' ) 
     874  ;wText = WIDGET_LABEL(wRow, VALUE='Y:' ) 
     875  wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
     876  wYPlaneShow = WIDGET_BUTTON(wRowB,VALUE='Y:',UVAL='SHOW_YPLANE' ) 
     877  WIDGET_CONTROL, wYPlaneShow, /SET_BUTTON 
    873878  wYSlider = WIDGET_SLIDER(wRow, MAXIMUM=yMax, UVALUE='Y_VALUE', $ 
    874879                           value=yMax*0.50, /SUPPRESS_VALUE, /DRAG ) 
     
    878883 
    879884  wRow = WIDGET_BASE(wFrameBase,/ROW) 
    880   wText = WIDGET_LABEL(wRow, VALUE='Z:' ) 
     885  ;wText = WIDGET_LABEL(wRow, VALUE='Z:' ) 
     886  wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
     887  wZPlaneShow = WIDGET_BUTTON(wRowB,VALUE='Z:',UVAL='SHOW_ZPLANE' ) 
     888  WIDGET_CONTROL, wZPlaneShow, /SET_BUTTON 
    881889  wZSlider = WIDGET_SLIDER(wRow, MAXIMUM=zMax, UVALUE='Z_VALUE', $ 
    882890                           VALUE=zMax*0.10, /SUPPRESS_VALUE, /DRAG) 
     
    904912  wSpace = WIDGET_LABEL(wFrameBase,VALUE='Image Transparency') 
    905913  ;; Calculate the transparency value = mode+1 
    906   ;; Mode requires sorting which is computationally expensive. Make it optional 
     914  ;; Mode requires sorting which is computationally expensive.Make it optional 
     915  ;; default to on 
     916  if n_elements( AUTO_TRANSPARENCY ) eq 0 then AUTO_TRANSPARENCY=1 
    907917  if keyword_set(AUTO_TRANSPARENCY) then begin 
    908918     transparencyMin = KDM_RANGE(mode(data.(0)), $ 
     
    928938  ;; Volume 
    929939  wRow0 = WIDGET_BASE(wFrameBase,/ROW) 
     940  wRow1 = WIDGET_BASE(wRow0,/ROW,/NONEXCLUSIVE) 
     941  wVRender = WIDGET_BUTTON(wRow1, VALUE='Volume', $ 
     942                           UVALUE='VREND_SHOW', UNAME='XYZTN:volrendr') 
    930943  wVVolSel = WIDGET_DROPLIST(wRow0,VALUE=dnames, $ 
    931                              FRAME=frame, TITLE='Volume', $ 
    932                              UVAL='VREND_VOLSEL') 
    933   wRow1 = WIDGET_BASE(wRow0,/ROW,/NONEXCLUSIVE) 
    934   wVRender = WIDGET_BUTTON(wRow1, VALUE='Show', $ 
    935                            UVALUE='VREND_SHOW', UNAME='XYZTN:volrendr') 
     944                             FRAME=frame, UVAL='VREND_VOLSEL') 
    936945 
    937946  ;; Isosurface 
    938947  wRow0 = WIDGET_BASE(wFrameBase,/ROW) 
     948  wRow1 = WIDGET_BASE(wRow0,/ROW,/NONEXCLUSIVE) 
     949  wIsotoggle = WIDGET_BUTTON(wRow1,VALUE='Iso',UVALUE='ISO_SHOW') 
    939950  wSVolSel = WIDGET_DROPLIST(wRow0,VALUE=dnames, $ 
    940                              FRAME=frame, TITLE='Iso',UVAL='ISO_VOLSEL') 
    941   wRow1 = WIDGET_BASE(wRow0,/ROW,/NONEXCLUSIVE) 
    942   wIsotoggle = WIDGET_BUTTON(wRow1,VALUE='Show',UVALUE='ISO_SHOW') 
     951                             FRAME=frame, UVAL='ISO_VOLSEL') 
    943952   
    944953  wRow2 = WIDGET_BASE(wFrameBase,/ROW)