Changeset 460
- Timestamp:
- Jun 20, 2012, 12:01:16 PM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/check_files.m
r432 r460 83 83 'read_civxdata';...reads civx data from netcdf files 84 84 'read_civdata';... reads new civ data from netcdf files 85 'read_image';... read images or video objects 85 86 'read_get_field';... read the list of selected variables from the GUI get_field (TODO: use read_GUI) 86 87 'read_GUI';... %read all parameters set by a GUI as a Matlab structure 87 'read_ima text';...%read .civ files (obsolete, but can be adapted to other text documentation files)88 'read_image';...%read .civ files (obsolete, but can be adapted to other text documentation files) 88 89 'read_xls';...%read excel files containing the list of the experiments 89 90 'reinit';...% suppress the personal parameter file 'uvmat_perso.mat' -
trunk/src/fill_GUI.m
r427 r460 24 24 set(hh,'Visible','on') 25 25 if ischar(input_data) 26 input_data={input_data} % transform string to a single cell if needed26 input_data={input_data};% transform string to a single cell if needed 27 27 end 28 28 set(hh,'Data',input_data) -
trunk/src/imadoc2struct.m
r456 r460 30 30 [tild,tild,FileExt]=fileparts(ImaDoc); 31 31 if strcmp(FileExt,'.civ') 32 [errormsg,time,TimeUnit,mode,npx,npy, XmlData{iview}.GeometryCalib]=read_imatext(ImaDoc);32 [errormsg,time,TimeUnit,mode,npx,npy,s.GeometryCalib]=read_imatext(ImaDoc); 33 33 return 34 34 end … … 295 295 function [error,time,TimeUnit,mode,npx,npy,GeometryCalib]=read_imatext(fileinput) 296 296 %------------------------------------------------------------------------ 297 error= 0;%default297 error='';%default 298 298 time=[]; %default 299 299 TimeUnit='s'; … … 301 301 npx=[]; %default 302 302 npy=[]; %default 303 pxcmx=1;%default 304 pxcmy=1;%default 305 if exist(fileinput,'file')~=2, error=2, return;end;%input file does not exist 303 GeometryCalib=[]; 304 if ~exist(fileinput,'file'), error=['image doc file ' fileinput ' does not exist']; return;end;%input file does not exist 306 305 dotciv=textread(fileinput); 307 306 sizdot=size(dotciv); -
trunk/src/series.m
r458 r460 72 72 set(handles.PairString,'ColumnWidth',{60}) 73 73 set(handles.PairString,'Data',{''}) 74 % set(0,'Units','pixels')75 % screensize=get(0,'ScreenSize'); %screen size in pixels76 74 set(hObject,'WindowButtonDownFcn',{'mouse_down'})%allows mouse action with right button (zoom for uicontrol display) 77 %set(hObject,'Position',[150 100 1000 600] );%position and size in pixels (get adjusted to the screen size in case of excess)78 %load the list of previously browsed files in menus Open and Open_179 75 dir_perso=prefdir; 80 76 test_profil_perso=0; … … 82 78 if exist(profil_perso,'file') 83 79 h=load (profil_perso); 80 if isfield(h,'MenuFile') 81 for ifile=1:min(length(h.MenuFile),5) 82 eval(['set(handles.MenuFile_' num2str(ifile) ',''Label'',h.MenuFile{ifile});']) 83 % eval(['set(handles.MenuFile_' num2str(ifile) '_1,''Label'',h.MenuFile{ifile});']) 84 end 85 end 86 % if isfield(h,'MenuFile') 87 % for ifile=1:min(length(h.MenuFile),5) 88 % eval(['set(handles.MenuFile_' num2str(ifile) ',''Label'',h.MenuFile{ifile});']) 89 % eval(['set(handles.MenuFile_' num2str(ifile) '_1,''Label'',h.MenuFile{ifile});']) 90 % end 91 % end 92 84 93 test_profil_perso=1; 85 if isfield(h,'MenuFile_1') && exist(h.MenuFile_1,'file')86 set(handles.MenuFile_1,'Label',h.MenuFile_1);87 set(handles.MenuFile_insert_1,'Label',h.MenuFile_1);88 end89 if isfield(h,'MenuFile_2')&& exist(h.MenuFile_2,'file')90 set(handles.MenuFile_2,'Label',h.MenuFile_2);91 set(handles.MenuFile_insert_2,'Label',h.MenuFile_2);92 end93 if isfield(h,'MenuFile_3')&& exist(h.MenuFile_3,'file')94 set(handles.MenuFile_3,'Label',h.MenuFile_3);95 set(handles.MenuFile_insert_3,'Label',h.MenuFile_3);96 end97 if isfield(h,'MenuFile_4')&& exist(h.MenuFile_4,'file')98 set(handles.MenuFile_4,'Label',h.MenuFile_4);99 set(handles.MenuFile_insert_4,'Label',h.MenuFile_4);100 end101 if isfield(h,'MenuFile_5')&& exist(h.MenuFile_5,'file')102 set(handles.MenuFile_5,'Label',h.MenuFile_5);103 set(handles.MenuFile_insert_5,'Label',h.MenuFile_5);104 end94 % if isfield(h,'MenuFile_1') && exist(h.MenuFile_1,'file') 95 % set(handles.MenuFile_1,'Label',h.MenuFile_1); 96 % set(handles.MenuFile_insert_1,'Label',h.MenuFile_1); 97 % end 98 % if isfield(h,'MenuFile_2')&& exist(h.MenuFile_2,'file') 99 % set(handles.MenuFile_2,'Label',h.MenuFile_2); 100 % set(handles.MenuFile_insert_2,'Label',h.MenuFile_2); 101 % end 102 % if isfield(h,'MenuFile_3')&& exist(h.MenuFile_3,'file') 103 % set(handles.MenuFile_3,'Label',h.MenuFile_3); 104 % set(handles.MenuFile_insert_3,'Label',h.MenuFile_3); 105 % end 106 % if isfield(h,'MenuFile_4')&& exist(h.MenuFile_4,'file') 107 % set(handles.MenuFile_4,'Label',h.MenuFile_4); 108 % set(handles.MenuFile_insert_4,'Label',h.MenuFile_4); 109 % end 110 % if isfield(h,'MenuFile_5')&& exist(h.MenuFile_5,'file') 111 % set(handles.MenuFile_5,'Label',h.MenuFile_5); 112 % set(handles.MenuFile_insert_5,'Label',h.MenuFile_5); 113 % end 105 114 end 106 115 … … 261 270 SeriesData=[];%dfault 262 271 if isequal(ext,'.xml') 263 msgbox_uvmat('ERROR','input file type not implemented')%A Faire: ouvrir le fichier pour naviguer 272 Param=xml2struct(fileinput); 273 fill_GUI(Param,handles);%fill the GUI with the parameters retrieved from the xml file 274 return 264 275 elseif isequal(ext,'.xls') 265 276 msg_box_uvmat('ERROR','input file type not implemented')%A Faire: ouvrir le fichier pour naviguer … … 470 481 set(handles.InputTable,'Data',InputTable) 471 482 472 %update the output dir473 SubDir=sort(InputTable(:,2)); %set of subdirectories sorted in alphabetical order474 SubDirOut=SubDir{1};475 if numel(SubDir)>1476 for ilist=2:numel(SubDir)477 SubDirOut=[SubDirOut '-' SubDir{ilist}];478 end479 end480 set(handles.OutputSubDir,'String',SubDirOut)481 482 %% determine the selected reference field indices for pair display483 ref_i=1; %default ref_i is a reference frame index used to find existing pairs from PIV484 if ~isempty(i1)485 ref_i=i1;486 if ~isempty(i2)487 ref_i=floor((ref_i+i2)/2);% reference image number corresponding to the file488 end489 end490 set(handles.num_ref_i,'String',num2str(ref_i));491 ref_j=1; %default ref_j is a reference frame index used to find existing pairs from PIV492 if ~isempty(j1)493 ref_j=j1;494 if ~isempty(j2)495 ref_j=floor((j1+j2)/2);496 end497 end498 set(handles.num_ref_j,'String',num2str(ref_j));499 500 %% update the list of recent files in the menubar and save it for future opening501 MenuFile=[{get(handles.MenuFile_1,'Label')};{get(handles.MenuFile_2,'Label')};...502 {get(handles.MenuFile_3,'Label')};{get(handles.MenuFile_4,'Label')};{get(handles.MenuFile_5,'Label')}];503 str_find=strcmp(fileinput,MenuFile);504 if isempty(find(str_find,1))505 MenuFile=[{fileinput};MenuFile];%insert the current file if not already in the list506 end507 for ifile=1:min(length(MenuFile),5)508 eval(['set(handles.MenuFile_' num2str(ifile) ',''Label'',MenuFile{ifile});'])509 eval(['set(handles.MenuFile_insert_' num2str(ifile) ',''Label'',MenuFile{ifile});'])510 end511 dir_perso=prefdir;512 profil_perso=fullfile(dir_perso,'uvmat_perso.mat');513 if exist(profil_perso,'file')514 save (profil_perso,'MenuFile','-append'); %store the file names for future opening of uvmat515 else516 save (profil_perso,'MenuFile','-V6'); %store the file names for future opening of uvmat517 end518 519 set(handles.InputTable,'BackgroundColor',[1 1 1])520 521 %% initiate input file series and refresh the current field view:522 update_rootinfo(handles,i1_series,i2_series,j1_series,j2_series,FileType,MovieObject,lastview);523 524 %------------------------------------------------------------------------525 % --- Update information about a new field series (indices to scan, timing,526 % calibration from an xml file, then refresh current plots527 function update_rootinfo(handles,i1_series,i2_series,j1_series,j2_series,FileType,VideoObject,iview)528 %------------------------------------------------------------------------529 530 %% enable j index visibility531 if isempty(j1_series)532 state='off';533 else534 state='on';535 end536 enable_j(handles,state)537 538 483 %% display the min and max indices for all the file series 539 MinIndex=get(handles.MinIndex,'Data');%retrieve the min indices in the table MinIndex540 MaxIndex=get(handles.MaxIndex,'Data');%retrieve the max indices in the table MaxIndex541 484 i_sum=sum(sum(i1_series,2),3);%sum of i1_series on the last index 542 485 MaxIndex_i=max(find(i_sum>0))-1; 543 if isequal(i1_series(1),0) 486 MinIndex_i=min(find(i_sum>0))-1; 487 if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_series(2,2),j1_series(2,2),j2_series(2,2)),'file') 544 488 MinIndex_i=0; 545 else546 MinIndex_i=min(find(i_sum>0))-1;547 489 end 548 490 j_sum=sum(sum(j1_series,1),3); 549 491 MaxIndex_j=max(find(j_sum>0))-1; 550 492 MinIndex_j=min(find(j_sum>0))-1; 551 MinIndex{iview,1}=MinIndex_i; 552 MinIndex{iview,2}=MinIndex_j; 553 MaxIndex{iview,1}=MaxIndex_i; 554 MaxIndex{iview,2}=MaxIndex_j; 493 MinIndex=get(handles.MinIndex,'Data');%retrieve the min indices in the table MinIndex 494 MaxIndex=get(handles.MaxIndex,'Data');%retrieve the max indices in the table MaxIndex 495 MinIndex{lastview,1}=MinIndex_i; 496 MinIndex{lastview,2}=MinIndex_j; 497 MaxIndex{lastview,1}=MaxIndex_i; 498 MaxIndex{lastview,2}=MaxIndex_j; 499 555 500 set(handles.MinIndex,'Data',MinIndex)%display the min indices in the table MinIndex 556 501 set(handles.MaxIndex,'Data',MaxIndex)%display the max indices in the table MaxIndex … … 587 532 set(handles.num_last_i,'String',num2str(last_i)); 588 533 set(handles.num_last_j,'String',num2str(last_j)); 534 535 536 %% update the output dir 537 SubDir=sort(InputTable(:,2)); %set of subdirectories sorted in alphabetical order 538 SubDirOut=SubDir{1}; 539 if numel(SubDir)>1 540 for ilist=2:numel(SubDir) 541 SubDirOut=[SubDirOut '-' SubDir{ilist}]; 542 end 543 end 544 set(handles.OutputSubDir,'String',SubDirOut) 545 546 %% determine the selected reference field indices for pair display 547 ref_i=1; %default ref_i is a reference frame index used to find existing pairs from PIV 548 if ~isempty(i1) 549 ref_i=i1; 550 if ~isempty(i2) 551 ref_i=floor((ref_i+i2)/2);% reference image number corresponding to the file 552 end 553 end 554 set(handles.num_ref_i,'String',num2str(ref_i)); 555 ref_j=1; %default ref_j is a reference frame index used to find existing pairs from PIV 556 if ~isempty(j1) 557 ref_j=j1; 558 if ~isempty(j2) 559 ref_j=floor((j1+j2)/2); 560 end 561 end 562 set(handles.num_ref_j,'String',num2str(ref_j)); 563 564 %% update the list of recent files in the menubar and save it for future opening 565 MenuFile=[{get(handles.MenuFile_1,'Label')};{get(handles.MenuFile_2,'Label')};... 566 {get(handles.MenuFile_3,'Label')};{get(handles.MenuFile_4,'Label')};{get(handles.MenuFile_5,'Label')}]; 567 str_find=strcmp(fileinput,MenuFile); 568 if isempty(find(str_find,1)) 569 MenuFile=[{fileinput};MenuFile];%insert the current file if not already in the list 570 end 571 for ifile=1:min(length(MenuFile),5) 572 eval(['set(handles.MenuFile_' num2str(ifile) ',''Label'',MenuFile{ifile});']) 573 eval(['set(handles.MenuFile_insert_' num2str(ifile) ',''Label'',MenuFile{ifile});']) 574 end 575 dir_perso=prefdir; 576 profil_perso=fullfile(dir_perso,'uvmat_perso.mat'); 577 if exist(profil_perso,'file') 578 save (profil_perso,'MenuFile','-append'); %store the file names for future opening of uvmat 579 else 580 save (profil_perso,'MenuFile','-V6'); %store the file names for future opening of uvmat 581 end 582 583 set(handles.InputTable,'BackgroundColor',[1 1 1]) 584 585 %% initiate input file series and refresh the current field view: 586 update_rootinfo(handles,i1_series,i2_series,j1_series,j2_series,FileType,MovieObject,lastview); 587 588 %------------------------------------------------------------------------ 589 % --- Update information about a new field series (indices to scan, timing, 590 % calibration from an xml file, then refresh current plots 591 function update_rootinfo(handles,i1_series,i2_series,j1_series,j2_series,FileType,VideoObject,iview) 592 %------------------------------------------------------------------------ 593 594 %% enable j index visibility 595 if isempty(j1_series) 596 state='off'; 597 else 598 state='on'; 599 end 600 enable_j(handles,state) 589 601 590 602 %% read timing and total frame number from the current file (movie files) !! may be overrid by xml file … … 675 687 676 688 %% number of slices 677 NbSlice= MaxIndex_j-MinIndex_j+1;%default689 NbSlice=1;%default 678 690 if isfield(XmlData,'GeometryCalib') && isfield(XmlData.GeometryCalib,'SliceCoord') 679 691 siz=size(XmlData.GeometryCalib.SliceCoord); … … 799 811 end 800 812 801 return 802 803 %% set default options in menu 'Fields'%% TODO: check VelType 804 if ~testima 805 testcivx=0; 806 if isfield(UvData,'FieldsString') && isequal(UvData.FieldsString,{'get_field...'})% field menu defined as input (from get_field) 807 set(handles_Fields,'Value',1) 808 set(handles_Fields,'String',{'get_field...'}) 809 UvData=rmfield(UvData,'FieldsString'); 810 else 811 Data=nc2struct(FileName,'ListGlobalAttribute','Conventions','absolut_time_T0','civ'); 812 if strcmp(Data.Conventions,'uvmat/civdata') ||( ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0))%if the new input is Civx 813 FieldList=calc_field; 814 set(handles_Fields,'String',[{'image'};FieldList;{'get_field...'}]);%standard menu for civx data 815 set(handles_Fields,'Value',2) % set menu to 'velocity' 816 col_vec=FieldList; 817 col_vec(1)=[];%remove 'velocity' option for vector color (must be a scalar) 818 testcivx=1; 819 end 820 if ~testcivx 821 set(handles_Fields,'Value',1) % set menu to 'get_field... 822 set(handles_Fields,'String',{'get_field...'}) 823 col_vec={'get_field...'}; 824 end 825 set(handles.ColorScalar,'String',col_vec) 826 end 827 end 828 set(handles.uvmat,'UserData',UvData) 829 830 %% set index navigation options and refresh plots 831 scan_option='i';%default 832 state_j='off'; %default 833 if index==2 834 if get(handles.scan_j,'Value') 835 scan_option='j'; %keep the scan option for the second fiel series 836 end 837 if strcmp(get(handles.j1,'Visible'),'on') 838 state_j='on'; 839 end 840 end 841 if ~isempty(j1_series) 842 state_j='on'; 843 if isequal(nbfield,1) &&index==1 844 scan_option='j'; %scan j index by default if nbfield=1 845 end 846 end 847 if isequal(scan_option,'i') 848 set(handles.scan_i,'Value',1) 849 scan_i_Callback([],[], handles); 850 else 851 set(handles.scan_j,'Value',1) 852 scan_j_Callback([],[], handles); 853 end 854 set(handles.scan_j,'Visible',state_j) 855 set(handles.j1,'Visible',state_j) 856 set(handles.j2,'Visible',state_j) 857 set(handles.last_j,'Visible',state_j); 858 set(handles.frame_j,'Visible',state_j); 859 set(handles.j_text,'Visible',state_j); 860 if ~isempty(i2_series)||~isempty(j2_series) 861 set(handles.CheckFixPair,'Visible','on') 862 elseif index==1 863 set(handles.CheckFixPair,'Visible','off') 864 end 865 866 867 mode_Callback(hObject, eventdata, handles) 868 869 set(handles.REFRESH_INDICES,'BackgroundColor',[0.7 0.7 0.7]) 870 InputTable=get(handles.InputTable,'Data'); 871 check_lines=get(handles.REFRESH_INDICES,'UserData'); 872 873 %% check the indices and FileTypes for each series (limited to the new ones to save time) 874 for ind_list=1:length(check_lines) 875 if check_lines(ind_list) 876 InputLine=InputTable(ind_list,:); 877 detect_idem=strcmp('"',InputLine);% look for '" (repeat of previous data) 878 detect_idem=detect_idem(detect_idem>0); 879 if ~isempty (detect_idem) 880 InputLine(detect_idem)=InputTable(ind_list-1,detect_idem); 881 set(handles.InputTable,'Data',InputTable) 882 end 883 fileinput=fullfile_uvmat(InputLine{1},InputLine{2},InputLine{3},InputLine{5},InputLine{4},1,2,1,2); 884 %fileinput=name_generator(fullfile(InputLine{1},InputLine{3}),1,1,InputLine{5},InputLine{4},1,2,2,InputLine{2}) 885 %update file series defined by the selected line 886 [InputTable{ind_list,3},InputTable{(ind_list),4},errormsg]=update_indices(handles,fileinput,ind_list); 887 if ~isempty(errormsg) 888 msgbox_uvmat('ERROR',errormsg) 889 return 890 end 891 end 892 end 893 set(handles.InputTable,'Data',InputTable) 894 SeriesData=get(handles.series,'UserData'); 895 896 state_j='off'; 897 state_Pairs='off'; 898 state_InputFields='off'; 899 val=get(handles.ListView,'Value'); 900 ListViewString={''}; 901 if ~isempty(SeriesData) 902 % ListViewString={}; 903 for iview=1:size(InputTable,1) 904 if ~isempty(SeriesData.j1_series{iview}) 905 state_j='on'; 906 end 907 if ~isempty(SeriesData.i2_series{iview})||~isempty(SeriesData.j2_series{iview}) 908 state_Pairs='on'; 909 ListViewString{iview}=num2str(iview); 910 if check_lines(iview) 911 val=iview;%select the last pair if it is a new entry 912 end 913 end 914 if strcmp(SeriesData.FileType{iview},'civx')||strcmp(SeriesData.FileType{iview},'civdata') 915 state_InputFields='on'; 916 end 917 end 918 end 919 set(handles.ListView,'Value',val) 920 set(handles.ListView,'String',ListViewString) 921 if strcmp(state_Pairs,'on') 922 ListView_Callback(hObject,eventdata,handles) 923 end 924 set(handles.PairString,'Visible',state_Pairs) 925 enable_j(handles,state_j) 813 % %% set default options in menu 'Fields'%% TODO: check VelType 814 % if ~testima 815 % testcivx=0; 816 % if isfield(UvData,'FieldsString') && isequal(UvData.FieldsString,{'get_field...'})% field menu defined as input (from get_field) 817 % set(handles_Fields,'Value',1) 818 % set(handles_Fields,'String',{'get_field...'}) 819 % UvData=rmfield(UvData,'FieldsString'); 820 % else 821 % Data=nc2struct(FileName,'ListGlobalAttribute','Conventions','absolut_time_T0','civ'); 822 % if strcmp(Data.Conventions,'uvmat/civdata') ||( ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0))%if the new input is Civx 823 % FieldList=calc_field; 824 % set(handles_Fields,'String',[{'image'};FieldList;{'get_field...'}]);%standard menu for civx data 825 % set(handles_Fields,'Value',2) % set menu to 'velocity' 826 % col_vec=FieldList; 827 % col_vec(1)=[];%remove 'velocity' option for vector color (must be a scalar) 828 % testcivx=1; 829 % end 830 % if ~testcivx 831 % set(handles_Fields,'Value',1) % set menu to 'get_field... 832 % set(handles_Fields,'String',{'get_field...'}) 833 % col_vec={'get_field...'}; 834 % end 835 % set(handles.ColorScalar,'String',col_vec) 836 % end 837 % end 838 % set(handles.uvmat,'UserData',UvData) 839 % 840 % %% set index navigation options and refresh plots 841 % scan_option='i';%default 842 % state_j='off'; %default 843 % if index==2 844 % if get(handles.scan_j,'Value') 845 % scan_option='j'; %keep the scan option for the second fiel series 846 % end 847 % if strcmp(get(handles.j1,'Visible'),'on') 848 % state_j='on'; 849 % end 850 % end 851 % if ~isempty(j1_series) 852 % state_j='on'; 853 % if isequal(nbfield,1) &&index==1 854 % scan_option='j'; %scan j index by default if nbfield=1 855 % end 856 % end 857 % if isequal(scan_option,'i') 858 % set(handles.scan_i,'Value',1) 859 % scan_i_Callback([],[], handles); 860 % else 861 % set(handles.scan_j,'Value',1) 862 % scan_j_Callback([],[], handles); 863 % end 864 % set(handles.scan_j,'Visible',state_j) 865 % set(handles.j1,'Visible',state_j) 866 % set(handles.j2,'Visible',state_j) 867 % set(handles.last_j,'Visible',state_j); 868 % set(handles.frame_j,'Visible',state_j); 869 % set(handles.j_text,'Visible',state_j); 870 % if ~isempty(i2_series)||~isempty(j2_series) 871 % set(handles.CheckFixPair,'Visible','on') 872 % elseif index==1 873 % set(handles.CheckFixPair,'Visible','off') 874 % end 875 % 876 % 877 % mode_Callback(hObject, eventdata, handles) 878 % 879 % set(handles.REFRESH_INDICES,'BackgroundColor',[0.7 0.7 0.7]) 880 % InputTable=get(handles.InputTable,'Data'); 881 % check_lines=get(handles.REFRESH_INDICES,'UserData'); 882 % 883 % %% check the indices and FileTypes for each series (limited to the new ones to save time) 884 % for ind_list=1:length(check_lines) 885 % if check_lines(ind_list) 886 % InputLine=InputTable(ind_list,:); 887 % detect_idem=strcmp('"',InputLine);% look for '" (repeat of previous data) 888 % detect_idem=detect_idem(detect_idem>0); 889 % if ~isempty (detect_idem) 890 % InputLine(detect_idem)=InputTable(ind_list-1,detect_idem); 891 % set(handles.InputTable,'Data',InputTable) 892 % end 893 % fileinput=fullfile_uvmat(InputLine{1},InputLine{2},InputLine{3},InputLine{5},InputLine{4},1,2,1,2); 894 % %fileinput=name_generator(fullfile(InputLine{1},InputLine{3}),1,1,InputLine{5},InputLine{4},1,2,2,InputLine{2}) 895 % %update file series defined by the selected line 896 % [InputTable{ind_list,3},InputTable{(ind_list),4},errormsg]=update_indices(handles,fileinput,ind_list); 897 % if ~isempty(errormsg) 898 % msgbox_uvmat('ERROR',errormsg) 899 % return 900 % end 901 % end 902 % end 903 % set(handles.InputTable,'Data',InputTable) 904 % SeriesData=get(handles.series,'UserData'); 905 % 906 % state_j='off'; 907 % state_Pairs='off'; 908 % state_InputFields='off'; 909 % val=get(handles.ListView,'Value'); 910 % ListViewString={''}; 911 % if ~isempty(SeriesData) 912 % % ListViewString={}; 913 % for iview=1:size(InputTable,1) 914 % if ~isempty(SeriesData.j1_series{iview}) 915 % state_j='on'; 916 % end 917 % if ~isempty(SeriesData.i2_series{iview})||~isempty(SeriesData.j2_series{iview}) 918 % state_Pairs='on'; 919 % ListViewString{iview}=num2str(iview); 920 % if check_lines(iview) 921 % val=iview;%select the last pair if it is a new entry 922 % end 923 % end 924 % if strcmp(SeriesData.FileType{iview},'civx')||strcmp(SeriesData.FileType{iview},'civdata') 925 % state_InputFields='on'; 926 % end 927 % end 928 % end 929 % set(handles.ListView,'Value',val) 930 % set(handles.ListView,'String',ListViewString) 931 % if strcmp(state_Pairs,'on') 932 % ListView_Callback(hObject,eventdata,handles) 933 % end 934 % set(handles.PairString,'Visible',state_Pairs) 935 % enable_j(handles,state_j) 926 936 927 937 %------------------------------------------------------------------------ … … 1280 1290 %Series.Specific=h_fun(Series); 1281 1291 Series=h_fun(Series); 1292 if ~isempty(filexml) 1282 1293 t=struct2xml(Series); 1283 1294 t=set(t,1,'name','Series'); 1284 1295 save(t,filexml); 1296 end 1285 1297 % h_fun(Series); 1286 1298 end … … 1309 1321 end 1310 1322 % update the xml file after interactive input with the function 1311 Series.Specific=h_fun('input?'); 1323 Series.Specific='?'; 1324 Series=h_fun(Series); 1312 1325 t=struct2xml(Series); 1313 1326 t=set(t,1,'name','Series'); … … 1335 1348 if isunix 1336 1349 system(['chmod +x ' filename_bat]);% set the file to executable 1337 system(['. ' filename_bat]);%execute fct 1350 system(['. ' filename_bat ' &']);%execute fct 1351 else 1352 system(filename_bat); 1338 1353 end 1339 1354 set(handles.BATCH, 'Enable','On') -
trunk/src/uvmat.m
r456 r460 228 228 229 229 %% set functions for the mouse and keyboard 230 % set(handles.histo_u,'NextPlot','replacechildren');231 % set(handles.histo_v,'NextPlot','replacechildren');232 230 set(hObject,'KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function 233 231 set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles})%set mouse action functio … … 237 235 238 236 %% refresh projection plane 239 % UvData.Object{1}.ProjMode='projection';%main plotting plane240 % UvData.Object{1}.DisplayHandle.uvmat=handles.axes3;241 % UvData.Object{1}.DisplayHandle.view_field=[];242 237 set(handles.ListObject,'Value',1)% default: empty projection objectproj_field 243 238 set(handles.ListObject,'String',{'plane'}) … … 306 301 Field=[]; 307 302 if exist('input','var') 308 % if ~isempty(errormsg)309 % msgbox_uvmat('WARNING',errormsg)310 % end311 303 if ishandle(handles.UVMAT_title) 312 304 delete(handles.UVMAT_title) … … 921 913 if ~exist(filexml,'file') 922 914 filexml=fullfile(RootPath,SubDir,[RootFile '.civ']); % very old convention: .civ file 923 if ~exist(filexml,'file')915 if exist(filexml,'file') 924 916 DocExt='.civ'; 925 917 else
Note: See TracChangeset
for help on using the changeset viewer.