Changeset 838 for misc

Show
Ignore:
Timestamp:
10/09/07 07:03:27 (11 months ago)
Author:
mankoff
Message:

Scaling: Hold SHIFT and click or drag higher and lower on the image

Location:
misc/clouds
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • misc/clouds/README.TXT

    r835 r838  
    5151IDL> xyztn, load='some_struct.sav' 
    5252 
    53 Everything should be self-explanatory from the UI, except for the  
    54 StreamLines. StreamLines are set via a right-click, or by holding down the  
    55 middle mouse button and interactively dragging and setting them. On my  
    56 MacBook this is done via a two-fingered tap on the track-pad (right), or  
    57 holding down the Command (Apple) key (middle) and clicking and dragging 
     53StreamLines: Set via a right-click, or by holding down the middle mouse  
     54button and interactively dragging and setting them. On my MacBook this is  
     55done via a two-fingered tap on the track-pad (right), or holding down the  
     56Command (Apple) key (middle) and clicking and dragging 
    5857 
     58Scaling: Hold down shift, and drag up/down, or click higher/lower. The  
     59higher up the screen you go, the larger the scaling. 
  • misc/clouds/xyztn.pro

    r837 r838  
    690690        END 
    691691     END 
    692       
     692 
    693693     ;; Iso level changed 
    694694     'ISO_LEVEL': BEGIN 
     
    867867        bHaveTransform = sState.oTrack->Update( sEvent, TRANSFORM=qmat ) 
    868868        IF (bHaveTransform NE 0) THEN BEGIN 
    869            sState.oGroup->GetProperty, TRANSFORM=t 
    870            sState.oGroup->SetProperty, TRANSFORM=t#qmat 
     869           IF sEvent.modifiers eq 0 then begin 
     870              sState.oGroup->GetProperty, TRANSFORM=t 
     871              sState.oGroup->SetProperty, TRANSFORM=t#qmat 
     872           ENDIF ELSE IF sEvent.modifiers eq 1 then begin ; shift = scale 
     873              ;; help, sEvent, /st 
     874              sct = sEvent.y / 200. 
     875              transform = [[sct, 0, 0, 0.0], [0, sct, 0, 0.0], $ 
     876                           [0, 0, sct, 0.0], [0, 0, 0, 1]] 
     877              sstate.oTop->SetProperty, transform=transform 
     878           ENDIF 
    871879           bRedraw = 1 
    872880        ENDIF 
     
    875883        ;;  Button press. 
    876884        IF (sEvent.type EQ 0) THEN BEGIN 
     885 
    877886           IF (sEvent.press EQ 4) THEN BEGIN ; Right mouse. 
    878887              IF (xyztnDoStream(sEvent,sState,1)) THEN BEGIN 
     
    904913           ENDIF 
    905914        ENDIF 
    906          
    907          
     915                
    908916         
    909917        IF (sEvent.press EQ 1) THEN BEGIN ; other mouse button. 
    910            sState.btndown = 1b 
    911            sState.oWindow->SetProperty, QUALITY=sState.dragq 
    912            WIDGET_CONTROL, sState.wDraw, /DRAW_MOTION 
    913            bRedraw = 1 
     918              sState.btndown = 1b 
     919              sState.oWindow->SetProperty, QUALITY=sState.dragq 
     920              WIDGET_CONTROL, sState.wDraw, /DRAW_MOTION 
     921              bRedraw = 1 
    914922        ENDIF 
    915923        ;; Button release. 
     
    12351243  oView = OBJ_NEW('IDLgrView', PROJECTION=2,$ 
    12361244                  VIEWPLANE_RECT=myview,COLOR=[50,50,70]) 
    1237    
     1245 
    12381246  ;; Create model. 
    12391247  oTop = OBJ_NEW('IDLgrModel') 
     
    14661474            oWindow: oWindow,      $ 
    14671475            oView: oView,          $ 
     1476            oTop: oTop,            $ 
    14681477            oGroup: oGroup,        $ 
    14691478            oCBTop: oCBTop,        $