Changeset 832

Show
Ignore:
Timestamp:
09/29/07 02:25:36 (11 months ago)
Author:
mankoff
Message:

each plane can be shown/hidden individually

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/clouds/xyztn.pro

    r831 r832  
    458458     ;; Show/Hide Image Planes 
    459459     'IMG_SHOW': BEGIN 
    460          sState.bShow = 1-sState.bShow 
    461          bUpdate = 4 
    462          bRedraw = 1 
    463          IF NOT (sState.bShow) THEN sState.oIsopolygon->SetProperty,HIDE=1 
     460        bUpdate = 4 
     461        bRedraw = 1 
     462        sState.bShow = 1-sState.bShow 
     463        sState.oSlices[0]->SetProperty, $ 
     464           HIDE=(1-sState.bShow)+(1-sState.showPlane[0]) 
     465        sState.oSlices[1]->SetProperty, $ 
     466           HIDE=(1-sState.bShow)+(1-sState.showPlane[1]) 
     467        sState.oSlices[2]->SetProperty, $ 
     468           HIDE=(1-sState.bShow)+(1-sState.showPlane[2]) 
     469     END 
     470     'SHOW_XPLANE': BEGIN 
     471        bUpdate = 4 
     472        bRedraw = 1 
     473        sState.showPlane[0] = 1-sState.showPlane[0] 
     474        sState.oSlices[0]->SetProperty, $ 
     475           HIDE=(1-sState.bShow)+(1-sState.showPlane[0]) 
     476        sState.oVectors[0]->SetProperty, $ 
     477           HIDE=(1-sState.vec_show)+(1-sState.showPlane[0]) 
     478        ;; sState.oImages[0]->SetProperty,HIDE=sState.showPlane[0] 
     479     END 
     480     'SHOW_YPLANE': BEGIN 
     481        bUpdate = 4 
     482        bRedraw = 1 
     483        sState.showPlane[1] = 1-sState.showPlane[1] 
     484        sState.oSlices[1]->SetProperty,$ 
     485           HIDE=(1-sState.bShow)+(1-sState.showPlane[1]) 
     486        sState.oVectors[1]->SetProperty, $ 
     487           HIDE=(1-sState.vec_show)+(1-sState.showPlane[1]) 
     488     END 
     489     'SHOW_ZPLANE': BEGIN 
     490        bUpdate = 4 
     491        bRedraw = 1 
     492        sState.showPlane[2] = 1-sState.showPlane[2] 
     493        sState.oSlices[2]->SetProperty,$ 
     494           HIDE=(1-sState.bShow)+(1-sState.showPlane[2]) 
     495        sState.oVectors[2]->SetProperty, $ 
     496           HIDE=(1-sState.vec_show)+(1-sState.showPlane[2]) 
    464497     END 
    465498      
     
    474507     ;; Image variable changed 
    475508     'VEC_SHOW': BEGIN 
    476         sState.oVectors[0]->SetProperty, HID=sState.vec_show 
    477         sState.oVectors[1]->SetProperty, HID=sState.vec_show 
    478         sState.oVectors[2]->SetProperty, HID=sState.vec_show 
    479509        sState.vec_show = 1-sState.vec_show 
     510        if sState.vec_show eq 1 then begin ; turn on 
     511           ;;print, "on", sState.vec_show, sState.showPlane 
     512           sState.oVectors[0]->SetProperty, $ 
     513              HID=(1-sState.vec_show)+(1-sState.showPlane[0]) 
     514           sState.oVectors[1]->SetProperty, $ 
     515              HID=(1-sState.vec_show)+(1-sState.showPlane[1]) 
     516           sState.oVectors[2]->SetProperty, $ 
     517              HID=(1-sState.vec_show)+(1-sState.showPlane[2]) 
     518     endif else begin ; turn off 
     519        ;;print, "off", sState.vec_show 
     520        sState.oVectors[0]->SetProperty, HID=1-sState.vec_show 
     521        sState.oVectors[1]->SetProperty, HID=1-sState.vec_show 
     522        sState.oVectors[2]->SetProperty, HID=1-sState.vec_show 
     523     endelse   
    480524        bUpdate = 4 
    481525        bRedraw = 1 
     
    552596     'ISO_SHOW': BEGIN 
    553597        sState.bIsoShow = 1-sState.bIsoShow 
     598        sState.oIsopolygon->SetProperty,HIDE=1-sState.bIsoShow 
    554599        IF (sState.bIsoShow) THEN BEGIN 
    555600           bUpdate = 5 
    556601           bRedraw = 1 
    557602        END ELSE BEGIN 
    558            sState.oIsopolygon->SetProperty,HIDE=1 
    559603           bRedraw = 1 
    560604        END 
     
    751795  ;; Update the current display 
    752796  IF (bUpdate NE 0) THEN BEGIN 
    753      ;; start by hiding everything 
    754      hid = (1-sState.bShow) 
    755      sState.oSlices[0]->SetProperty,HIDE=hid+(1-sState.bImage) 
    756      sState.oSlices[1]->SetProperty,HIDE=hid+(1-sState.bImage) 
    757      sState.oSlices[2]->SetProperty,HIDE=hid+(1-sState.bImage) 
    758      sState.oIsopolygon->SetProperty,HIDE=(1-sState.bIsoShow) 
    759       
    760797     xyztnPlanesUpdate,sState,bUpdate 
    761798     xyztnIsoSurfUpdate,sState,bUpdate 
     
    846883   
    847884  ;; Contour 
    848   wRow = WIDGET_BASE(wFrameBase,/ROW) 
    849   wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
    850   wContShow = WIDGET_BUTTON(wRowB,VALUE='Contour',UVAL='CONT_SHOW') 
    851   wIVolSel = WIDGET_DROPLIST(wRow,VALUE=dnames, $ 
    852                              FRAME=frame,UVAL='CONT_VOLSEL') 
     885;;   wRow = WIDGET_BASE(wFrameBase,/ROW) 
     886;;   wRowB = WIDGET_BASE(wRow,/ROW,/NONEXCLUSIVE) 
     887;;   wContShow = WIDGET_BUTTON(wRowB,VALUE='Contour',UVAL='CONT_SHOW') 
     888;;   wIVolSel = WIDGET_DROPLIST(wRow,VALUE=dnames, $ 
     889;;                              FRAME=frame,UVAL='CONT_VOLSEL') 
    853890   
    854891  ;; Possible vector 
     
    12361273            wZtext:wZtext,         $ 
    12371274            wPLaneSel:wPlaneSel,   $ 
     1275            showplane:[1,1,1],     $ 
    12381276            wIsoLevel: wIsoLevel,  $ 
    12391277            wIsoText: wIsoText,    $