Ignore:
Timestamp:
Mar 19, 2020 4:35:21 PM (2 years ago)
Author:
srkline
Message:

A large number of changes to the size of panels to enable "Laptop Mode" where all of the panels and controls are scaled down so that they fit on screen and are still in correct proportion. For the laptop I'm using for testing, the resolution is 1920x1080. For this, a scaling of 0.7 seems to work. The on/off of the "laptop Mode" is controlled by a checkbox in the preference panel (under the General tab).

There are still more panels to update in the next commit.

File:
1 edited

Legend:

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

    r1243 r1246  
    379379 
    380380                if(cmpstr(detStr,"FR") == 0) 
    381                         Print "Reference Y-Center is corrected for tube #7 zero position"                
     381                        Print "Reference Y-Center is corrected for FR tube #7 zero position"             
    382382 
    383383                        yCorrection = 61.70 - yCorrection 
    384384                        Print "yCorrection (pix) = ",yCorrection 
    385385                        Print "yCorrection (cm) = ",yCorrection*yPixSize 
    386                         Print "FRONT Reference X-center (cm) = ",x_mm/10 
    387                         Print "FRONT Reference Y-center (cm) = ",y_mm/10 + yCorrection*yPixSize 
    388386                        xRef = x_mm/10 
    389387                        yRef = y_mm/10 + yCorrection*yPixSize 
     388                        Print "FRONT Reference X-center (cm) = ",xRef 
     389                        Print "FRONT Reference Y-center (cm) = ",yRef 
     390 
    390391                endif 
    391392 
    392393                if(cmpstr(detStr,"MR") == 0) 
    393                         Print "Reference Y-Center is corrected for tube #10 zero position"               
     394                        Print "Reference Y-Center is corrected for MR tube #10 zero position"            
    394395 
    395396                        yCorrection = 61.94 - yCorrection 
    396397                        Print "yCorrection (pix) = ",yCorrection 
    397398                        Print "yCorrection (cm) = ",yCorrection*yPixSize 
    398                         Print "MIDDLE Reference X-center (cm) = ",x_mm/10 
    399                         Print "MIDDLE Reference Y-center (cm) = ",y_mm/10 + yCorrection*yPixSize 
    400399                        xRef = x_mm/10 
    401400                        yRef = y_mm/10 + yCorrection*yPixSize 
     401                        Print "MIDDLE Reference X-center (cm) = ",xRef 
     402                        Print "MIDDLE Reference Y-center (cm) = ",yRef 
     403 
    402404                endif 
    403405                 
    404406// if measured on the LEFT panel, convert to the RIGHT coordinates for the reference value       
    405407// these corrections are exactly the opposite (subtract, not add) of what is done in V_fDeriveBeamCenters(xFR,yFR,xMR,yMR) 
     408// since the lateral scans to determine the relative centers were done at the same time 
     409// the pixel values for the zero are on the same y-level, set by the beam height 
     410// 
    406411                if(cmpstr(detStr,"FL") == 0) 
    407                         Print "FRONT Reference X-center (cm) = ",x_mm/10 - kBCtrOffset_FL_x     // NEW Dec 2018 values 
    408                         Print "FRONT Reference Y-center (cm) = ",y_mm/10 - kBCtrOffset_FL_y 
     412                        Print "Reference Y-Center is corrected for FR tube #7 zero position"             
     413 
     414                        yCorrection = 61.70 - yCorrection 
     415                        Print "yCorrection (pix) = ",yCorrection 
     416                        Print "yCorrection (cm) = ",yCorrection*yPixSize                 
    409417                        xRef = x_mm/10 - kBCtrOffset_FL_x 
    410                         yRef = y_mm/10 - kBCtrOffset_FL_y 
     418                        yRef = y_mm/10 - kBCtrOffset_FL_y + yCorrection*yPixSize                 
     419                        Print "FRONT Reference X-center (cm) = ",xRef   // NEW Dec 2018 values 
     420                        Print "FRONT Reference Y-center (cm) = ",yRef 
     421 
    411422                endif 
    412423                 
    413424                if(cmpstr(detStr,"ML") == 0) 
    414                         Print "MIDDLE Reference X-center (cm) = ",x_mm/10 - kBCtrOffset_ML_x 
    415                         Print "MIDDLE Reference Y-center (cm) = ",y_mm/10 - kBCtrOffset_ML_y 
     425                        Print "Reference Y-Center is corrected for MR tube #10 zero position"            
     426 
     427                        yCorrection = 61.94 - yCorrection 
     428                        Print "yCorrection (pix) = ",yCorrection 
     429                        Print "yCorrection (cm) = ",yCorrection*yPixSize 
    416430                        xRef = x_mm/10 - kBCtrOffset_ML_x 
    417                         yRef = y_mm/10 - kBCtrOffset_ML_y 
     431                        yRef = y_mm/10 - kBCtrOffset_ML_y + yCorrection*yPixSize                         
     432                        Print "MIDDLE Reference X-center (cm) = ",xRef 
     433                        Print "MIDDLE Reference Y-center (cm) = ",yRef 
     434 
    418435                endif 
    419436        endif 
Note: See TracChangeset for help on using the changeset viewer.