Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r688 r689 1016 1016 GeometryCalib=XmlData.GeometryCalib; 1017 1017 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') 1020 1022 set(handles.TransformName,'Value',1); % no transform by default 1021 1023 else 1024 set(handles.pxcmx,'Visible','on') 1025 set(handles.pxcmy,'Visible','on') 1022 1026 if (isfield(GeometryCalib,'R')&& ~isequal(GeometryCalib.R(2,1),0) && ~isequal(GeometryCalib.R(1,2),0)) ||... 1023 1027 (isfield(GeometryCalib,'kappa1')&& ~isequal(GeometryCalib.kappa1,0)) 1024 set(handles.pxcm ,'String','var')1025 set(handles.p ycm,'String','var')1028 set(handles.pxcmx,'String','var') 1029 set(handles.pxcmy,'String','var') 1026 1030 elseif isfield(GeometryCalib,'fx_fy') 1027 1031 pixcmx=GeometryCalib.fx_fy(1);%*GeometryCalib.R(1,1)*GeometryCalib.sx/(GeometryCalib.Tz*GeometryCalib.dpx); 1028 1032 pixcmy=GeometryCalib.fx_fy(2);%*GeometryCalib.R(2,2)/(GeometryCalib.Tz*GeometryCalib.dpy); 1029 set(handles.pxcm ,'String',num2str(pixcmx))1030 set(handles.p ycm,'String',num2str(pixcmy))1033 set(handles.pxcmx,'String',num2str(pixcmx)) 1034 set(handles.pxcmy,'String',num2str(pixcmy)) 1031 1035 end 1032 1036 if ~get(handles.CheckFixLimits,'Value') … … 2525 2529 if UvData.Field.NbDim<=1 2526 2530 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') 2529 2533 [PlotType,PlotParamOut]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat)); 2530 2534 errormsg=fill_GUI(PlotParamOut,handles.uvmat); … … 2538 2542 else 2539 2543 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') 2542 2546 2543 2547 %% Plot the projections on the selected projection objects … … 3556 3560 list_path=get(handles.TransformName,'UserData'); 3557 3561 3562 %% handles uicontrol visibility 3563 if isempty(transform_name) 3564 set(handles.TransformPath,'Visible','off') 3565 else 3566 set(handles.TransformPath,'Visible','on') 3567 end 3568 3569 3558 3570 %% add a new item to the menu if the option 'more...' has been selected 3559 3571 prev_path=fullfile(get(handles.TransformPath,'String')); … … 4744 4756 set_object('REFRESH_Callback',1,[],hhset_object);% call the GUI set_object 4745 4757 end 4758 set(handles.CheckViewField,'Visible','on') 4759 set(handles.DeleteObject,'Visible','on') 4760 set(handles.ListObject_1,'Visible','on') 4761 set(handles.ListObject_1_title,'Visible','on') 4746 4762 4747 4763 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.