Changeset 711
- Timestamp:
- Feb 18, 2014, 10:11:11 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_GUI.m
r591 r711 93 93 List=fields(UserData); 94 94 for ilist=1:numel(List) 95 if isstruct(UserData.(List{ilist})) 95 if isstruct(UserData.(List{ilist}))% look for edit box with the tag UserData.(List{ilist}) 96 96 heditbox=findobj(handle,'Tag',List{ilist},'Style','edit','Visible','on'); 97 97 if isequal(numel(heditbox),1) 98 98 struct.(List{ilist})=UserData.(List{ilist}); 99 else% look for pushbutton with the tag UserData.(List{ilist}) 100 hpushbutton=findobj(handle,'Tag',List{ilist},'Style','pushbutton','Visible','on'); 101 if isequal(numel(hpushbutton),1) 102 struct.(List{ilist})=UserData.(List{ilist}); 103 end 99 104 end 100 105 end -
trunk/src/series.m
r710 r711 2055 2055 end 2056 2056 2057 %% Check whether alphabetical sorting of input Subdir is al owed by the Action fct (for multiples series entries)2057 %% Check whether alphabetical sorting of input Subdir is allowed by the Action fct (for multiples series entries) 2058 2058 if isfield(ParamOut,'AllowInputSort')&&isequal(ParamOut.AllowInputSort,'on')&& size(Param.InputTable,1)>1 2059 2059 [tild,iview]=sort(InputTable(:,2)); %subdirectories sorted in alphabetical order … … 2192 2192 OutputDirVisible='off'; 2193 2193 if isfield(ParamOut,'OutputDirExt')&&~isempty(ParamOut.OutputDirExt) 2194 OutputSubDirMode='all';%default 2195 if isfield(ParamOut,'OutputSubDirMode') 2196 OutputSubDirMode=ParamOut.OutputSubDirMode; 2197 end 2194 2198 set(handles.OutputDirExt,'String',ParamOut.OutputDirExt) 2195 2199 OutputDirVisible='on'; 2196 2200 SubDir=InputTable(1:end,2); %set of subdirectories sorted in alphabetical order 2197 SubDirOut=SubDir{1}; 2198 if numel(SubDir)>1 2199 for ilist=2:numel(SubDir) 2200 SubDirOut=[SubDirOut '-' SubDir{ilist}]; 2201 if strcmp(OutputSubDirMode,'last') 2202 SubDirOut=SubDir{end}; 2203 else 2204 SubDirOut=SubDir{1}; 2205 if ~strcmp(OutputSubDirMode,'first') && numel(SubDir)>1 2206 for ilist=2:numel(SubDir) 2207 SubDirOut=[SubDirOut '-' SubDir{ilist}]; 2208 end 2201 2209 end 2202 2210 end … … 2220 2228 %% definition of an additional parameter set, determined by an ancillary GUI 2221 2229 if isfield(ParamOut,'ActionInput') 2230 % set(handles.ActionInput,'Visible','on') 2231 % set(handles.ActionInput_title,'Visible','on') 2222 2232 set(handles.ActionInput,'Visible','on') 2223 set(handles.ActionInput_title,'Visible','on') 2224 set(handles.ActionInputView,'Visible','on') 2225 set(handles.ActionInputView,'Value',0) 2226 set(handles.ActionInput,'String',ActionName) 2233 % set(handles.ActionInput,'Value',0) 2234 % set(handles.ActionInput,'String',ActionName) 2227 2235 ParamOut.ActionInput.Program=ActionName; % record the program in ActionInput 2228 2236 SeriesData.ActionInput=ParamOut.ActionInput; 2229 2237 else 2238 % set(handles.ActionInput,'Visible','off') 2239 % set(handles.ActionInput_title,'Visible','off') 2230 2240 set(handles.ActionInput,'Visible','off') 2231 set(handles.ActionInput_title,'Visible','off')2232 set(handles.ActionInputView,'Visible','off')2233 2241 if isfield(SeriesData,'ActionInput') 2234 2242 SeriesData=rmfield(SeriesData,'ActionInput'); … … 2239 2247 2240 2248 %------------------------------------------------------------------------ 2241 % --- Executes on button press in ActionInput View.2242 function ActionInput View_Callback(hObject, eventdata, handles)2243 %------------------------------------------------------------------------ 2244 if get(handles.ActionInput View,'Value')2249 % --- Executes on button press in ActionInput. 2250 function ActionInput_Callback(hObject, eventdata, handles) 2251 %------------------------------------------------------------------------ 2252 if get(handles.ActionInput,'Value') 2245 2253 ActionName_Callback(hObject, eventdata, handles) 2246 2254 end … … 2705 2713 Param.Action.RUN=0; %desactivate the input RUN=1 2706 2714 fill_GUI(Param,handles.series)% fill the elements of the GUI series with the input parameters 2715 SeriesData=get(handles.series,'UserData'); 2716 if isfield(Param,'ActionInput')% introduce parameters specific to an Action fct, for instance PIV parameters 2717 % set(handles.ActionInput,'Visible','on') 2718 % set(handles.ActionInput_title,'Visible','on') 2719 set(handles.ActionInput,'Visible','on') 2720 set(handles.ActionInput,'Value',0) 2721 SeriesData.ActionInput=Param.ActionInput; 2722 end 2723 if isfield(Param,'ProjObject') %introduce projection object if relevant 2724 SeriesData.ProjObject=Param.ProjObject; 2725 end 2726 set(handles.series,'UserData',SeriesData) 2707 2727 if isfield(Param,'CheckObject') && isequal(Param.CheckObject,1) 2708 2728 set(handles.ProjObject,'String',Param.ProjObject.Name) … … 2720 2740 set(handles.REFRESH,'BackgroundColor',[1 0 1]); %paint REFRESH button in magenta to indicate that it should be activated 2721 2741 % REFRESH_Callback([],[],handles)% refresh data relative to the input files 2722 SeriesData=get(handles.series,'UserData');2723 if isfield(Param,'ActionInput')% introduce parameters specific to an Action fct, for instance PIV parameters2724 set(handles.ActionInput,'Visible','on')2725 set(handles.ActionInput_title,'Visible','on')2726 set(handles.ActionInputView,'Visible','on')2727 set(handles.ActionInputView,'Value',0)2728 SeriesData.ActionInput=Param.ActionInput;2729 end2730 if isfield(Param,'ProjObject') %introduce projection object if relevant2731 SeriesData.ProjObject=Param.ProjObject;2732 end2733 set(handles.series,'UserData',SeriesData)2734 2742 end 2735 2743 -
trunk/src/series/civ_input.m
r710 r711 87 87 NomTypeInput=Param.InputTable{1,4}; 88 88 FileExt=Param.InputTable{1,5}; 89 FileType=SeriesData.FileType{1};%type of the first input file series 90 FileInfo=SeriesData.FileInfo{1}; 89 if isfield(SeriesData,'FileType')&&isfield(SeriesData,'FileInfo') 90 FileType=SeriesData.FileType{1};%type of the first input file series 91 FileInfo=SeriesData.FileInfo{1}; 92 else 93 msgbox_uvmat('ERROR','please refresh the input file series') 94 return 95 end 91 96 92 97 … … 333 338 function errormsg=display_file_name(handles,fileinput) 334 339 %------------------------------------------------------------------------ 335 336 337 %% enable OK, BATCH button and 'status' display338 % set(handles.OK, 'Enable','On')339 % set(handles.OK,'BackgroundColor',[1 0 0])%set RUN button to red color340 % if isfield(handles,'status')341 % set(handles.status,'Value',0); %suppress the 'status' display342 % status_Callback([], [], handles)343 % end344 345 %% determine nomenclature types and extension of the input files346 % [RootPath,SubDir,Civ2_ImageB,i1,i2,j1,j2,ExtInput,NomTypeInput]=fileparts_uvmat(fileinput);347 % NomTypeNc='';%default348 349 350 340 351 341 %% scan the image file series -
trunk/src/series/civ_series.m
r707 r711 58 58 Data.Mask='off';%can use mask option (option 'off'/'on', 'off' by default) 59 59 Data.OutputDirExt='.civ';%set the output dir extension 60 Data.OutputSubDirMode='last'; %select the last subDir in the input table as root of the output subdir name (option 'all'/'first'/'last', 'all' by default) 60 61 Data.OutputFileMode='NbInput_i';% one output file expected per value of i index (used for waitbar) 61 62 filecell=get_file_series(Param);%check existence of the first input file
Note: See TracChangeset
for help on using the changeset viewer.