Changeset 150 for trunk/src/set_object.m


Ignore:
Timestamp:
Dec 3, 2010, 12:16:51 PM (13 years ago)
Author:
sommeria
Message:

various corrections for plotting and using view_field and get_field. The current field of uvmat or view_field is now stored in the structure userdata.axes3. Introduction of live correlation to test PIV (civ1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r102 r150  
    772772function PLOT_Callback(hObject, eventdata, handles)
    773773
    774 %SetData=get(handles.set_object,'UserData');%get the hidden interface data
    775774huvmat=findobj('tag','uvmat');%find the current uvmat interface handle
    776775UvData=get(huvmat,'UserData');%Data associated to the GUI uvmat
     
    786785testnew=0;
    787786PlotHandles=get_plot_handles(hhuvmat);
     787projview='';
    788788if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame
    789789   ObjectData.HandlesDisplay=hhuvmat.axes3;
    790790    IndexObj=IndexObj_1;
     791    projview='uvmat';
    791792elseif IndexObj_2<=numel(ListObject)&& strcmp(ListObject{IndexObj_2},ObjectName)% we are editing the object whose projection is viewed in view_field
    792793    hview_field=findobj('tag','view_field');
     
    796797    end
    797798    IndexObj=IndexObj_2;
     799    projview='view_field';
    798800else %new object
    799801    testnew=1;
     
    825827% update the object plot and projection field
    826828UvData.Object{IndexObj}=update_obj(UvData,IndexObj,ObjectData,PlotHandles);
    827 set(huvmat,'UserData',UvData)%update the data in the uvmat interface
     829if strcmp(projview,'view_field')
     830    ViewFieldData=get(hview_field,'UserData');
     831    ViewFieldData.axes3=ObjectData;
     832    set(hview_field,'UserData',ViewFieldData)
     833else
     834    UvData.axes3=ObjectData;
     835end
    828836
    829837%set uvmat to object edit mode to allow further object update
Note: See TracChangeset for help on using the changeset viewer.