Changeset 399 for trunk/src/uvmat.m
- Timestamp:
- Apr 27, 2012, 12:28:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r398 r399 310 310 end 311 311 if isfield(input,'FieldsString') 312 % set(handles.Fields,'Value',1)313 312 UvData.FieldsString=input.FieldsString; 314 313 end … … 486 485 handles_NomType=handles.NomType; 487 486 handles_FileExt=handles.FileExt; 488 handles_Fields=handles.Fields;487 % handles_Fields=handles.Fields; 489 488 elseif index==2 490 489 handles_RootPath=handles.RootPath_1; … … 494 493 handles_NomType=handles.NomType_1; 495 494 handles_FileExt=handles.FileExt_1; 496 handles_Fields=handles.Fields_1;495 % handles_Fields=handles.Fields_1; 497 496 set(handles.RootPath_1,'Visible','on') 498 497 set(handles.RootFile_1,'Visible','on') … … 504 503 505 504 %% detect root name, nomenclature and indices in the input file name: 506 %[RootPath,SubDir]=fileparts_uvmat(fileinput);507 505 [FilePath,FileName,FileExt]=fileparts(fileinput); 508 506 % detect the file type, get the movie object if relevant, and look for the corresponding file series: 509 507 % the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists 510 508 [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,MovieObject,i1,i2,j1,j2]=find_file_series(FilePath,[FileName FileExt]); 511 % if strcmp(NomType,'*')% movies will be opened at the first frame512 % i1=1;513 % i2=[];514 % j1=[];515 % j2=[];516 % end517 509 518 510 %% open the file or fill the GUI uvmat according to the detected file type … … 1964 1956 FieldName=[];%default 1965 1957 VelType=[];%default 1966 FileExt=get(handles.FileExt,'String');1958 % FileExt=get(handles.FileExt,'String'); 1967 1959 FileType=UvData.FileType{1}; 1968 1960 switch FileType … … 2234 2226 UvData.Field=Field{1}; 2235 2227 end 2228 UvData.Field.FieldList={FieldName}; % TODO: to generalise, used for proj_field with tps interpolation 2236 2229 2237 2230 %% get bounds and mesh (needed for mouse action and to open set_object) … … 3818 3811 AxeData=UvData.axes3;% retrieve the current plotted data 3819 3812 PlotParam=read_GUI(handles.uvmat); 3820 [ PP,PlotParamOut]= plot_field(AxeData,handles.axes3,PlotParam);3813 [tild,PlotParamOut]= plot_field(AxeData,handles.axes3,PlotParam); 3821 3814 write_plot_param(handles,PlotParamOut); %update the auto plot parameters 3822 3815 … … 3826 3819 %------------------------------------------------------------------- 3827 3820 UvData=get(handles.uvmat,'UserData');%read UvData properties stored on the uvmat interface 3828 test=get(handles.edit_object,'Value'); 3829 if test 3821 if get(handles.edit_object,'Value') 3830 3822 set(handles.edit_object,'BackgroundColor',[1,1,0]) 3831 3823 %suppress the other options … … 3838 3830 set(hhgeometry_calib.edit_append,'BackgroundColor',[0.7 0.7 0.7]) 3839 3831 end 3832 hset_object=findobj(allchild(0),'Tag','set_object'); 3833 if isempty(hset_object)% open the GUI set_object with data of the currently selected object 3834 ViewObject_Callback(hObject, eventdata, handles) 3835 hset_object=findobj(allchild(0),'Tag','set_object'); 3836 end 3837 hhset_object=guidata(hset_object); 3838 set(hhset_object.PLOT,'enable','on'); 3840 3839 else 3841 3840 UvData.MouseAction='none'; 3842 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 3843 end 3844 set(handles.uvmat,'UserData',UvData); 3845 hset_object=findobj(allchild(0),'Tag','set_object'); 3846 if ~isempty(hset_object) 3847 hhset_object=guidata(hset_object); 3848 if test 3849 set(hhset_object.PLOT,'enable','on'); 3850 else 3851 set(hhset_object.PLOT,'enable','off'); 3841 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 3842 hset_object=findobj(allchild(0),'Tag','set_object'); 3843 if ~isempty(hset_object)% open the 3844 hhset_object=guidata(hset_object); 3845 set(hhset_object.PLOT,'enable','off'); 3852 3846 end 3853 3847 end … … 4567 4561 end 4568 4562 4563 %------------------------------------------------------------------------ 4569 4564 % --- Executes on button press in ViewObject. 4570 4565 function ViewObject_Callback(hObject, eventdata, handles) 4566 %------------------------------------------------------------------------ 4571 4567 IndexObj=get(handles.ListObject,'Value'); 4572 4568 IndexObj=IndexObj(end); %keeps only the secodn value
Note: See TracChangeset
for help on using the changeset viewer.