Changeset 1181 for trunk/src/series/civ_input.m
- Timestamp:
- May 21, 2025, 6:14:05 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r1180 r1181 91 91 if isfield(SeriesData,'FileInfo') 92 92 FileType=SeriesData.FileInfo{1}.FileType;% info on the first input file series 93 FieldType=SeriesData.FileInfo{1}.FieldType;% info on the first input file series93 %FieldType=SeriesData.FileInfo{1}.FieldType;% info on the first input file series 94 94 else 95 95 set(hhseries.REFRESH,'BackgroundColor',[1 0 1])% indicate that the file input in series needs to be refreshed … … 207 207 set(handles.TimeSource,'String',Param.IndexRange.TimeSource); 208 208 else 209 msgbox_uvmat('WARNING','timing not defined (check xml file), default values used') 209 210 set(handles.TimeSource,'String',''); %xml file not used for timing 210 211 TimeUnit='frame'; … … 377 378 %% list the possible index pairs, depending on the option set in ListPairMode 378 379 ListPairMode_Callback([], [], handles) 379 380 if isfield(Param,'ActionInput')&& isfield(Param.ActionInput,'PairIndices') 381 if isfield(Param.ActionInput.PairIndices,'ListPairCiv1') 382 PairChoiceCiv1=find(strcmp(Param.ActionInput.PairIndices.ListPairCiv1,get(handles.ListPairCiv1,'String'))); 383 if ~isempty(PairChoiceCiv1) 384 set(handles.ListPairCiv1,'Value',PairChoiceCiv1) 385 end 386 end 387 if isfield(Param.ActionInput.PairIndices,'ListPairCiv2') 388 PairChoiceCiv2=find(strcmp(Param.ActionInput.PairIndices.ListPairCiv2,get(handles.ListPairCiv2,'String'))); 389 if ~isempty(PairChoiceCiv2) 390 set(handles.ListPairCiv2,'Value',PairChoiceCiv2) 391 end 392 end 393 end 394 380 395 %% set the GUI to modal: wait for OK to close 381 396 set(handles.civ_input,'WindowStyle','modal')% Make the GUI modal … … 810 825 %reproduce by default the chosen pair in the checkciv2 menu 811 826 set(handles.ListPairCiv2,'Value',get(handles.ListPairCiv1,'Value'))%civ2 selection the same as civ1 by default 812 ListPairCiv2_Callback(hObject, eventdata, handles)813 814 % ------------------------------------------------------------------------815 % --- Executes on selection change in ListPairCiv2.816 function ListPairCiv2_Callback(hObject, eventdata, handles)817 % ------------------------------------------------------------------------827 %ListPairCiv2_Callback(hObject, eventdata, handles) 828 829 % %------------------------------------------------------------------------ 830 % % --- Executes on selection change in ListPairCiv2. 831 % function ListPairCiv2_Callback(hObject, eventdata, handles) 832 % %------------------------------------------------------------------------ 818 833 819 834 %------------------------------------------------------------------------ … … 1527 1542 set(obj,'Visible','off') 1528 1543 end 1544 set(handles.ConfigSource,'String','NEW') 1545 set(handles.OK,'BackgroundColor',[1 0 1]) 1546 1547 1548 %------------------------------------------------------------------------ 1549 % --- Executes on button press in CheckRescale. 1550 function CheckRescale_Callback(hObject, eventdata, handles) 1551 %------------------------------------------------------------------------ 1552 huipanel=get(hObject,'parent'); 1553 obj(1)=findobj(huipanel,'Tag','num_Maxtanh'); 1554 obj(2)=findobj(huipanel,'Tag','title_Maxtanh'); 1555 if get(hObject,'Value')% if chck box has been selected 1556 set(obj,'Visible','on') 1557 else 1558 set(obj,'Visible','off') 1559 end 1560 set(handles.ConfigSource,'String','NEW') 1561 set(handles.OK,'BackgroundColor',[1 0 1]) 1562 1563 %------------------------------------------------------------------------ 1564 % --- synchronise the image threshold for civ1 and civ2 1565 function num_MaxIma_Callback(hObject, eventdata, handles) 1566 MaxIma_string=get(hObject,'String'); 1567 set(handles.num_MaxIma,'String',MaxIma_string); 1568 set(handles.num_MaxIma,'Visible','on'); 1569 set(handles.title_Threshold,'Visible','on'); 1570 set(handles.CheckThreshold,'Value',true); 1571 1572 set(handles.ConfigSource,'String','NEW') 1573 set(handles.OK,'BackgroundColor',[1 0 1]) 1574 1575 %------------------------------------------------------------------------ 1576 % --- synchronise the image rescaling threshold for civ1 and civ2 1577 function num_Maxtanh_Callback(hObject, eventdata, handles) 1578 Maxtanh_string=get(hObject,'String'); 1579 set(handles.num_Maxtanh,'String',Maxtanh_string); 1580 set(handles.num_Maxtanh,'Visible','on'); 1581 set(handles.title_Maxtanh,'Visible','on'); 1582 set(handles.CheckRescale,'Value',true); 1583 1529 1584 set(handles.ConfigSource,'String','NEW') 1530 1585 set(handles.OK,'BackgroundColor',[1 0 1]) … … 1952 2007 1953 2008 1954 function edit108_Callback(hObject, eventdata, handles)1955 % hObject handle to edit108 (see GCBO)1956 % eventdata reserved - to be defined in a future version of MATLAB1957 % handles structure with handles and user data (see GUIDATA)1958 1959 % Hints: get(hObject,'String') returns contents of edit108 as text1960 % str2double(get(hObject,'String')) returns contents of edit108 as a double1961 1962 1963 2009 % --- Executes on button press in CheckBackground. 1964 2010 function CheckBackground_Callback(hObject, eventdata, handles)
Note: See TracChangeset
for help on using the changeset viewer.