Ignore:
Timestamp:
Jul 27, 2017 3:07:06 PM (6 years ago)
Author:
srkline
Message:

corrected the behavior of the annular averaging and added a button to the main panel to allow quick access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_RAW_Data_Panel.ipf

    r1055 r1059  
    172172        Button button_tab_p,pos={648,81},size={50,20},proc=V_Tab_p_ButtonProc,title="Tab >" 
    173173        Button button_isolate,pos={606,114},size={70,20},proc=V_IsolateButtonProc,title="Isolate" 
    174         Button button_toWork,pos={770,113},size={70,20},proc=V_ToWorkFileButtonProc,title="to WORK" 
     174        Button button_toWork,pos={770,146},size={90,20},proc=V_ToWorkFileButtonProc,title="to WORK" 
     175        Button button_annular,pos={770,114},size={90,20},proc=V_annularAvgButtonProc,title="Annular Avg" 
    175176 
    176177        TitleBox title_file,pos={606,178},size={76,20},variable= root:Packages:NIST:VSANS:Globals:gLastLoadedFile 
     
    855856End 
    856857 
     858 
     859// 
     860// TODO: 
     861// -- simply calls the missing parameter dialog to do the average. 
     862//  see the file V_IQ_Annular.ipf for all of the features yet to be added. 
     863// 
     864// -- currently just the graph, no controls 
     865// -- this re-bins the data every time by calling V_QBinAllPanels(folderStr,binType) from inside V_BinningModePopup() 
     866Function V_annularAvgButtonProc(ba) : ButtonControl 
     867        STRUCT WMButtonAction &ba 
     868 
     869        switch( ba.eventCode ) 
     870                case 2: // mouse up 
     871                        // click code here 
     872                         
     873                        Execute "Annular_Binning()"                      
     874 
     875                        break 
     876                case -1: // control being killed 
     877                        break 
     878        endswitch 
     879 
     880        return 0 
     881End 
     882 
    857883// TODO 
    858884// 
Note: See TracChangeset for help on using the changeset viewer.