Changeset 623
- Timestamp:
- Apr 29, 2013, 11:27:46 PM (12 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/check_files.m
r606 r623 47 47 'create_grid';...% called by the GUI geometry_calib to create a physical grid 48 48 'create_grid.fig';...% GUI corresponding to create_grid.m 49 'delete_object';...%delete a projection object, defined by its index in the Uvmat list or by its graphic handle50 49 'displ_uvmat';... 51 50 'editxml';...%display and edit xml files using a xls schema -
trunk/src/civ.m
r621 r623 1730 1730 [tild,message]=fileattrib(RootPath); 1731 1731 if ~isempty(message) && ~isequal(message.UserWrite,1) 1732 errormsg=['No writ ting access to ' RootPath];1732 errormsg=['No writing access to ' RootPath]; 1733 1733 return 1734 1734 end … … 2001 2001 errormsg=['cannot create ' subdir_civ1_new ': ' msg1]; 2002 2002 return 2003 else 2003 elseif isunix 2004 2004 [xx,msg2] = fileattrib(fullfile(RootPath,subdir_civ1_new),'+w','g'); %yield writing access (+w) to user group (g) 2005 2005 if ~strcmp(msg2,'') … … 2116 2116 if ~exist(fullfile(RootPath,subdir_civ2_new),'dir') 2117 2117 [xx,m2]=mkdir(fullfile(RootPath,subdir_civ2_new)); 2118 if isunix 2118 2119 [xx,msg2] = fileattrib(fullfile(RootPath,subdir_civ2_new),'+w','g'); %yield writing access (+w) to user group (g) 2119 2120 if ~isequal(m2,'') 2120 2121 errormsg=['cannot create ' fullfile(RootPath,subdir_civ2_new) ': ' m2]; 2121 2122 return 2123 end 2122 2124 end 2123 2125 end … … 2148 2150 if ~exist(fullfile(RootPath,subdir_civ2_new),'dir') 2149 2151 [xx,m2]=mkdir(subdir_civ2_new); 2152 if isunix 2150 2153 [xx,msg2] = fileattrib(fullfile(RootPath,subdir_civ2_new),'+w','g'); %yield writing access (+w) to user group (g) 2151 2154 if ~isequal(m2,'') 2152 2155 errormsg= ['cannot create ' fullfile(RootPath,subdir_civ2_new) ': ' m2];%error message for directory creation 2153 2156 return 2157 end 2154 2158 end 2155 2159 end … … 4128 4132 case {'civ_matlab','civ_matlab.sh'} 4129 4133 filename=regexprep(Param.OutputFile,'(.+)([/\\])(.+$)','$1$20_XML$2$3.xml'); 4134 if isunix 4130 4135 fileattrib(fileparts(filename),'+w +x','o g');% set writting access 4136 end 4131 4137 save(struct2xml(Param),filename); 4132 4138 end -
trunk/src/displ_uvmat.m
r530 r623 5 5 function displ_uvmat(title,display_str,Position) 6 6 if isequal(Position,0) 7 disp lay([title ': ' display_str])7 disp([title ': ' display_str]) 8 8 else 9 9 msgbox_uvmat(title,display_str,'',Position) -
trunk/src/mouse_down.m
r622 r623 200 200 201 201 %% creation of a zoom subfig 202 if get(hhcurrentfig.CheckZoomFig,'Value')202 if isfield(hhcurrentfig,'CheckZoomFig') && get(hhcurrentfig.CheckZoomFig,'Value') 203 203 AxeData.Drawing='zoom'; %initiate drawing mode 204 204 AxeData.CurrentObject=[];%unselect objects -
trunk/src/mouse_up.m
r622 r623 171 171 end 172 172 else 173 test_drawing=1;%allow continuation of drawing object174 AxeData.CurrentOrigin=[xy(1,1) xy(1,2)]; %the current point becomes the next current origin173 % test_drawing=1;%allow continuation of drawing object 174 % AxeData.CurrentOrigin=[xy(1,1) xy(1,2)]; %the current point becomes the next current origin 175 175 end 176 176 UvData.ProjObject{IndexObj}=ObjectData; -
trunk/src/series.m
r620 r623 606 606 MinIndex_j=1;% index j set to 1 by default 607 607 MaxIndex_j=1; 608 MinIndex_i=find(i1_series(:,2,:), 1 )-1; 609 MaxIndex_i=find(i1_series(:,2,:), 1, 'last' )-1; 608 MinIndex_i=find(i1_series(:,2,:), 1 )-1;% min ref index i detected in the series (corresponding to the first non-zero value of i1_series, except for zero index) 609 MaxIndex_i=find(i1_series(:,2,:), 1, 'last' )-1;%max ref index i detected in the series (corresponding to the last non-zero value of i1_series) 610 610 else 611 611 pair_max=squeeze(max(i1_series,[],1)); %max on pair index 612 612 j_max=max(pair_max,[],1); 613 M axIndex_i=find(j_max, 1, 'last' )-1;% max ref index i614 M inIndex_i=find(j_max, 1 )-1;% min ref index i613 MinIndex_i=find(j_max, 1 )-1;% min ref index i detected in the series (corresponding to the first non-zero value of i1_series, except for zero index) 614 MaxIndex_i=find(j_max, 1, 'last' )-1;% max ref index i detected in the series (corresponding to the first non-zero value of i1_series, except for zero index) 615 615 diff_i_max=diff(j_max); 616 616 if ~isempty(diff_i_max) && isequal (diff_i_max,diff_i_max(1)*ones(size(diff_i_max))) … … 618 618 end 619 619 i_max=max(pair_max,[],2); 620 M axIndex_j=max(find(i_max))-1;% max ref index i621 M inIndex_j=min(find(i_max))-1;% min ref index i620 MinIndex_j=min(find(i_max))-1;% min ref index j 621 MaxIndex_j=max(find(i_max))-1;% max ref index j 622 622 diff_j_max=diff(i_max); 623 623 if isequal (diff_j_max,diff_j_max(1)*ones(size(diff_j_max))) … … 832 832 update_mode(handles,i1_series,i2_series,j1_series,j2_series,Time) 833 833 834 %% enable j index visibility cellfun(@isempty,regexp(PairString,'^j'))835 check_jindex=~cellfun(@isempty,SeriesData.j1_series); %look for non empty j indices836 if isempty(find(check_jindex)) 837 enable_j(handles,'off') % no j index needed 838 else 839 PairString=get(handles.PairString,'Data'); 840 % ~cellfun(@isempty,regexp(PairString,'^j'): gives 1 when the pair string begins by 'j' (burst case)841 % cellfun(@isempty,PairString): gives 1 when the pair string is empty842 if isempty(find(~cellfun(@isempty,regexp(PairString,'^j'))&cellfun(@isempty,PairString)))% if all pair string begins by j (burst) or empty843 enable_j(handles,'off') % no j index needed844 else845 enable_j(handles,'on')846 847 en d834 %% enable j index visibility 835 %check_jindex=~isempty(find(~cellfun(@isempty,SeriesData.j1_series))); %look for non empty j indices 836 status_j='on';%default 837 if isempty(find(~cellfun(@isempty,SeriesData.j1_series), 1)); % case of empty j indices 838 status_j='off'; % no j index needed 839 elseif strcmp(get(handles.PairString,'Visible'),'on') 840 PairString=get(handles.PairString,'Data'); 841 check_burst=cellfun(@isempty,regexp(PairString,'^j'));%=0 for burst case, 1 otherwise 842 % check_nopair=cellfun(@isempty,PairString); 843 if isempty(find(check_burst))% if all pair string begins by j (burst) 844 status_j='off'; % no j index needed for bust case 845 end 846 end 847 enable_j(handles,status_j) % no j index needed 848 848 849 849 %% display the set of existing files as an image … … 1470 1470 %% direct processing on the current Matlab session 1471 1471 if strcmp (RunMode,'local') 1472 Series.RUNHandle=handles.RUN;1473 Series.WaitbarHandle=handles.Waitbar;1472 % Series.RUNHandle=handles.RUN; 1473 % Series.WaitbarHandle=handles.Waitbar; 1474 1474 for iprocess=1:NbProcess 1475 1475 if isempty(Series.IndexRange.NbSlice) -
trunk/src/update_waitbar.m
r477 r623 6 6 7 7 function update_waitbar(hwaitbar,advance_ratio) 8 8 if ishandle(hwaitbar) 9 9 set(hwaitbar,'Units','pixels') 10 10 pos=get(hwaitbar,'Position');%read waitbar position in pixels … … 15 15 set(hwaitbar,'CData',CData) 16 16 drawnow 17 end -
trunk/src/uvmat.m
r622 r623 3470 3470 if isequal(get(handles.VOLUME,'Value'),1) 3471 3471 set(handles.CheckZoom,'Value',0) 3472 set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])3472 % set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7]) 3473 3473 set(handles.edit_vect,'Value',0) 3474 3474 edit_vect_Callback(hObject, eventdata, handles) 3475 3475 set(handles.edit_object,'Value',0) 3476 set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])3476 % set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7]) 3477 3477 % set(handles.cal,'Value',0) 3478 3478 % set(handles.cal,'BackgroundColor',[0 1 0]) … … 3522 3522 set(handles.edit_object,'Value',0) 3523 3523 set(handles.CheckZoom,'Value',0) 3524 set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])3525 set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])3524 % set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7]) 3525 % set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7]) 3526 3526 set(gcf,'Pointer','arrow') 3527 3527 else … … 4160 4160 % desactivate the edit object mode 4161 4161 set(handles.edit_object,'Value',0) 4162 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])4162 % set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 4163 4163 4164 4164 %------------------------------------------------------------------------ … … 4186 4186 %% desactivate the edit object mode 4187 4187 set(handles.edit_object,'Value',0) 4188 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])4188 % set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 4189 4189 4190 4190 %% update the plot on view_field if view_field is already openened … … 4275 4275 hset_object=findobj(allchild(0),'Tag','set_object'); 4276 4276 if get(handles.edit_object,'Value') 4277 set(handles.edit_object,'BackgroundColor',[1,1,0])4277 % set(handles.edit_object,'BackgroundColor',[1,1,0]) 4278 4278 %suppress the other options 4279 4279 set(handles.CheckZoom,'Value',0) … … 4288 4288 ViewObject_Callback(hObject, eventdata, handles) 4289 4289 else % desctivate object edit mode 4290 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])4290 % set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 4291 4291 if ~isempty(hset_object)% open the 4292 4292 hhset_object=guidata(hset_object); … … 4862 4862 set(get(hset_object,'children'),'enable','on')% enable edit action on elements on GUI set_object 4863 4863 set(handles.edit_object,'Value',0); %suppress the object edit mode 4864 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])4864 % set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 4865 4865 set(handles.delete_object,'Visible','on') 4866 4866 … … 5167 5167 set(handles.edit_vect,'Value',0) 5168 5168 edit_vect_Callback(hObject, eventdata, handles) 5169 set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])5169 % set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7]) 5170 5170 set(handles.ListObject,'Value',1) 5171 5171
Note: See TracChangeset
for help on using the changeset viewer.