Changeset 688 for trunk/src/uvmat.m
- Timestamp:
- Sep 27, 2013, 11:20:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r686 r688 696 696 697 697 if strcmp(FileType,'txt') 698 edit(fileinput) 698 try 699 edit(fileinput) 700 catch ME 701 msgbox_uvmat('ERROR','invalid intput file') 702 end 699 703 return 700 704 elseif strcmp(FileType,'xml') … … 922 926 drawnow 923 927 [XmlDataRead,warntext]=imadoc2struct(XmlFileName); 928 if ~isempty(warntext) 929 msgbox_uvmat('WARNING',warntext) 930 end 924 931 if ~isempty(XmlDataRead) 925 ImaDoc_str=['view ' DocExt]; % DocExt= '.xml' or .civ (obsolete case) 926 if isfield(XmlDataRead,'TimeUnit')&& ~isempty(XmlDataRead.TimeUnit) 927 TimeUnit=XmlDataRead.TimeUnit; 928 end 929 if isfield(XmlDataRead,'Time')&& ~isempty(XmlDataRead.Time) 930 XmlData.Time=XmlDataRead.TimeUnit; 931 end 932 ImaDoc_str=['view ' DocExt]; % DocExt= '.xml' or .civ (obsolete case) 933 %XmlData=XmlDataRead; 934 if isfield(XmlDataRead,'TimeUnit')&& ~isempty(XmlDataRead.TimeUnit) 935 TimeUnit=XmlDataRead.TimeUnit; 936 end 937 if isfield(XmlDataRead,'Time')&& ~isempty(XmlDataRead.Time) 938 XmlData.Time=XmlDataRead.Time; 939 end 932 940 set(handles.view_xml,'BackgroundColor',[1 1 1])% paint back to white 933 941 drawnow … … 937 945 set (handles.slices,'String','volume') 938 946 end 939 % check whether the GUI geometry_calib is opened 947 % check whether the GUI geometry_calib is opened 940 948 hgeometry_calib=findobj('tag','geometry_calib'); 941 949 if ~isempty(hgeometry_calib) % check whether the display of the GUI geometry_calib is consistent with the current calib param … … 1046 1054 if ~isempty(TimeUnit) 1047 1055 if index==2 && isfield(UvData,'TimeUnit') && ~strcmp(UvData.TimeUnit,TimeUnit) 1048 warntext=['time unit for second file series ' TimeUnit ' inconsistent with first series'];1056 msgbox_uvmat('WARNING',['time unit for second file series ' TimeUnit ' inconsistent with first series']) 1049 1057 else 1050 1058 UvData.TimeUnit=TimeUnit; … … 1055 1063 1056 1064 %display warning message 1057 if ~ise mpty(warntext)1065 if ~isequal(warntext,'') 1058 1066 msgbox_uvmat('WARNING',warntext); 1059 1067 end … … 3775 3783 %------------------------------------------------------------------- 3776 3784 val=get(handles.ListContour,'Value'); 3777 if val==2 3785 if val==2% option 'contours' 3778 3786 set(handles.interval_txt,'Visible','on') 3779 3787 set(handles.num_IncrA,'Visible','on') 3780 else 3788 set(handles.num_IncrA,'String','')% refresh contour interval 3789 % set(handles.opacity_txt,'Visible','off') 3790 % set(handles.num_Opacity,'Visible','off') 3791 else % option 'image' 3781 3792 set(handles.interval_txt,'Visible','off') 3782 3793 set(handles.num_IncrA,'Visible','off') 3794 % set(handles.opacity_txt,'Visible','on') 3795 % set(handles.num_Opacity,'Visible','on') 3783 3796 end 3784 3797 update_plot(handles); … … 3813 3826 function CheckFixVectors_Callback(hObject, eventdata, handles) 3814 3827 %------------------------------------------------------------------- 3815 test=get(handles.CheckFixVectors,'Value'); 3816 if test 3817 % set(handles.CheckFixVectors,'BackgroundColor',[1 1 0]) 3818 else 3828 if ~get(handles.CheckFixVectors,'Value') 3819 3829 update_plot(handles); 3820 %set(handles.num_VecScale,'String',num2str(ScalOut.num_VecScale,3))3821 % set(handles.CheckFixVectors,'BackgroundColor',[0.7 0.7 0.7])3822 3830 end 3823 3831 … … 4024 4032 function update_plot(handles) 4025 4033 %------------------------------------------------------------------- 4034 set(handles.run0,'BackgroundColor',[1 1 0]);% indicate plot activity by yellow color 4035 drawnow 4026 4036 UvData=get(handles.uvmat,'UserData'); 4027 4037 AxeData=UvData.PlotAxes;% retrieve the current plotted data … … 4029 4039 [tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam); 4030 4040 errormsg=fill_GUI(PlotParamOut,handles.uvmat); 4031 RUNColor=get(handles.run0,'BackgroundColor');% 4032 if isequal(RUNColor,[1 0 1])% suppress magenta color (indicate that plot is updated) 4033 set(handles.run0,'BackgroundColor',[1 0 0]); 4034 end 4041 if ~isempty(errormsg) 4042 msgbox_uvmat('ERROR',errormsg) 4043 return 4044 end 4045 % RUNColor=get(handles.run0,'BackgroundColor');% 4046 % if isequal(RUNColor,[1 0 1])% suppress magenta color (indicate that plot is updated) 4047 % set(handles.run0,'BackgroundColor',[1 0 0]); 4048 % end 4049 set(handles.run0,'BackgroundColor',[1 0 0]); 4035 4050 4036 4051 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.