Changeset 411 for trunk/src/uvmat.m
- Timestamp:
- May 7, 2012, 3:32:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r410 r411 2456 2456 %% Plot the projections on the selected projection objects 2457 2457 % main projection object (uvmat display) 2458 list_object=get(handles.ListObject ,'String');2458 list_object=get(handles.ListObject_1,'String'); 2459 2459 if isequal(list_object,{''})%refresh list of objects if the menu is empty 2460 2460 UvData.Object={[]}; 2461 set(handles.ListObject ,'Value',1)2462 end 2463 IndexObj =get(handles.ListObject,'Value');%selected projection object for main view2461 set(handles.ListObject_1,'Value',1) 2462 end 2463 IndexObj(1)=get(handles.ListObject_1,'Value');%selected projection object for main view 2464 2464 if IndexObj(1)> numel(UvData.Object) 2465 2465 IndexObj(1)=1;%select the first object if the selected one does not exist 2466 set(handles.ListObject,'Value',1) 2466 set(handles.ListObject_1,'Value',1) 2467 end 2468 IndexObj(2)=get(handles.ListObject,'Value');%selected projection object for main view 2469 if isequal(IndexObj(2),IndexObj(1)) 2470 IndexObj(2)=[]; 2467 2471 end 2468 2472 plot_handles{1}=handles; … … 2744 2748 % --- Executes on button press in CheckFixEqual. 2745 2749 function CheckFixEqual_Callback(hObject, eventdata, handles) 2746 test=get(handles.CheckFixEqual,'Value'); 2747 if test 2750 if get(handles.CheckFixEqual,'Value') 2748 2751 set(handles.CheckFixEqual,'BackgroundColor',[1 1 0]) 2749 cla(handles.axes3)2750 2752 update_plot(handles); 2751 2753 else 2752 2754 set(handles.CheckFixEqual,'BackgroundColor',[0.7 0.7 0.7]) 2753 2755 update_plot(handles); 2754 % axis(handles.axes3,'image')2755 2756 end 2756 2757 … … 3465 3466 3466 3467 %delete mask if it is displayed 3467 if isequal(get(handles.CheckMask,'Value'),1)%if the mask option is on3468 UvData=rmfield(UvData,'MaskName'); %will impose mask refresh3469 end3468 % if isequal(get(handles.CheckMask,'Value'),1)%if the mask option is on 3469 % UvData=rmfield(UvData,'MaskName'); %will impose mask refresh 3470 % end 3470 3471 set(handles.uvmat,'UserData',UvData) 3471 3472 run0_Callback(hObject, eventdata, handles)
Note: See TracChangeset
for help on using the changeset viewer.