Changeset 411 for trunk/src/uvmat.m


Ignore:
Timestamp:
May 7, 2012, 3:32:21 PM (9 years ago)
Author:
sommeria
Message:

bugs corrected in uvmat: fixed x/y and calc_field for the new PIV data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r410 r411  
    24562456%% Plot the projections on the selected  projection objects
    24572457% main projection object (uvmat display)
    2458 list_object=get(handles.ListObject,'String');
     2458list_object=get(handles.ListObject_1,'String');
    24592459if isequal(list_object,{''})%refresh list of objects if the menu is empty
    24602460    UvData.Object={[]};
    2461     set(handles.ListObject,'Value',1)
    2462 end
    2463 IndexObj=get(handles.ListObject,'Value');%selected projection object for main view
     2461    set(handles.ListObject_1,'Value',1)
     2462end
     2463IndexObj(1)=get(handles.ListObject_1,'Value');%selected projection object for main view
    24642464if IndexObj(1)> numel(UvData.Object)
    24652465    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)
     2467end
     2468IndexObj(2)=get(handles.ListObject,'Value');%selected projection object for main view
     2469if isequal(IndexObj(2),IndexObj(1))
     2470    IndexObj(2)=[];
    24672471end
    24682472plot_handles{1}=handles;
     
    27442748% --- Executes on button press in CheckFixEqual.
    27452749function CheckFixEqual_Callback(hObject, eventdata, handles)
    2746 test=get(handles.CheckFixEqual,'Value');
    2747 if test
     2750if get(handles.CheckFixEqual,'Value')
    27482751    set(handles.CheckFixEqual,'BackgroundColor',[1 1 0])
    2749     cla(handles.axes3)
    27502752    update_plot(handles);
    27512753else
    27522754    set(handles.CheckFixEqual,'BackgroundColor',[0.7 0.7 0.7])
    27532755    update_plot(handles);
    2754 %     axis(handles.axes3,'image')
    27552756end
    27562757
     
    34653466
    34663467%delete mask if it is displayed
    3467 if isequal(get(handles.CheckMask,'Value'),1)%if the mask option is on
    3468    UvData=rmfield(UvData,'MaskName'); %will impose mask refresh 
    3469 end
     3468% if isequal(get(handles.CheckMask,'Value'),1)%if the mask option is on
     3469%    UvData=rmfield(UvData,'MaskName'); %will impose mask refresh 
     3470% end
    34703471set(handles.uvmat,'UserData',UvData)
    34713472run0_Callback(hObject, eventdata, handles)
Note: See TracChangeset for help on using the changeset viewer.