Changeset 689


Ignore:
Timestamp:
Sep 27, 2013, 12:08:46 PM (7 years ago)
Author:
sommeria
Message:

set unused uicontrol to invisible in uvmat

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r688 r689  
    10161016    GeometryCalib=XmlData.GeometryCalib;
    10171017    if isempty(GeometryCalib)
    1018         set(handles.pxcm,'String','')
    1019         set(handles.pycm,'String','')
     1018        set(handles.pxcmx,'String','')
     1019        set(handles.pxcmy,'String','')
     1020        set(handles.pxcmx,'Visible','off')
     1021        set(handles.pxcmy,'Visible','off')
    10201022        set(handles.TransformName,'Value',1); %  no transform by default
    10211023    else
     1024        set(handles.pxcmx,'Visible','on')
     1025        set(handles.pxcmy,'Visible','on')
    10221026        if (isfield(GeometryCalib,'R')&& ~isequal(GeometryCalib.R(2,1),0) && ~isequal(GeometryCalib.R(1,2),0)) ||...
    10231027            (isfield(GeometryCalib,'kappa1')&& ~isequal(GeometryCalib.kappa1,0))
    1024             set(handles.pxcm,'String','var')
    1025             set(handles.pycm,'String','var')
     1028            set(handles.pxcmx,'String','var')
     1029            set(handles.pxcmy,'String','var')
    10261030        elseif isfield(GeometryCalib,'fx_fy')
    10271031            pixcmx=GeometryCalib.fx_fy(1);%*GeometryCalib.R(1,1)*GeometryCalib.sx/(GeometryCalib.Tz*GeometryCalib.dpx);
    10281032            pixcmy=GeometryCalib.fx_fy(2);%*GeometryCalib.R(2,2)/(GeometryCalib.Tz*GeometryCalib.dpy);
    1029             set(handles.pxcm,'String',num2str(pixcmx))
    1030             set(handles.pycm,'String',num2str(pixcmy))
     1033            set(handles.pxcmx,'String',num2str(pixcmx))
     1034            set(handles.pxcmy,'String',num2str(pixcmy))
    10311035        end
    10321036        if ~get(handles.CheckFixLimits,'Value')
     
    25252529if UvData.Field.NbDim<=1
    25262530    set(handles.Objects,'Visible','off')
    2527     set(handles.ListObject_1_title,'Visible','off')
    2528     set(handles.ListObject_1,'Visible','off')
     2531%     set(handles.ListObject_1_title,'Visible','off')
     2532%     set(handles.ListObject_1,'Visible','off')
    25292533    [PlotType,PlotParamOut]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat));
    25302534    errormsg=fill_GUI(PlotParamOut,handles.uvmat);
     
    25382542else
    25392543    set(handles.Objects,'Visible','on')
    2540     set(handles.ListObject_1_title,'Visible','on')
    2541     set(handles.ListObject_1,'Visible','on')
     2544%     set(handles.ListObject_1_title,'Visible','on')
     2545%     set(handles.ListObject_1,'Visible','on')
    25422546   
    25432547    %% Plot the projections on the selected  projection objects
     
    35563560list_path=get(handles.TransformName,'UserData');
    35573561
     3562%% handles uicontrol visibility
     3563if isempty(transform_name)
     3564    set(handles.TransformPath,'Visible','off')
     3565else
     3566    set(handles.TransformPath,'Visible','on')
     3567end
     3568
     3569
    35583570%% add a new item to the menu if the option 'more...' has been selected
    35593571prev_path=fullfile(get(handles.TransformPath,'String'));
     
    47444756    set_object('REFRESH_Callback',1,[],hhset_object);% call the GUI set_object
    47454757end
     4758set(handles.CheckViewField,'Visible','on')
     4759set(handles.DeleteObject,'Visible','on')
     4760set(handles.ListObject_1,'Visible','on')
     4761set(handles.ListObject_1_title,'Visible','on')
    47464762
    47474763%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.