Changeset 905 for trunk/src/uvmat.m


Ignore:
Timestamp:
May 30, 2015, 8:44:20 PM (9 years ago)
Author:
sommeria
Message:

projection with tps corrected + minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r894 r905  
    37353735        [ObjectData,errormsg]=proj_field(UvData.Field,UvData.ProjObject{iobj});% project field on the object
    37363736        if ~isempty(errormsg)
     3737            errormsg=['projection on ' UvData.ProjObject{iobj}.Type ': ' errormsg ];
    37373738            return
    37383739        end
     
    53785379
    53795380%% update the projection plot on uvmat
    5380 ProjData= proj_field(UvData.Field,ObjectData);%project the current input field on object ObjectData
     5381[ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current input field on object ObjectData
     5382    if ~isempty(errormsg)
     5383        msgbox_uvmat('ERROR',['projection on ' UvData.ProjObject{iobj}.Type ': ' errormsg ])
     5384        return
     5385    end
    53815386plot_field(ProjData,handles.PlotAxes,read_GUI(handles.uvmat));% plot the projected field;
    53825387UvData.PlotAxes=ProjData;% store the plotted field for further update
     
    54465451    Data=get(hview_field,'UserData');
    54475452    hhview_field=guidata(hview_field);
    5448     ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
     5453    [ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
     5454    if ~isempty(errormsg)
     5455        msgbox_uvmat('ERROR',['projection on ' UvData.ProjObject{iobj}.Type ': ' errormsg ])
     5456        return
     5457    end
    54495458    [PlotType,PlotParam]=plot_field(ProjData,hhview_field.PlotAxes,read_GUI(hview_field));%read plotting parameters on the uvmat interface
    54505459    haxes=findobj(hview_field,'tag','axes3');
     
    56145623   
    56155624    %% show the projection of the selected object on view_field
    5616     ProjData= proj_field(UvData.Field,UvData.ProjObject{IndexObj});%project the current field on ObjectData
     5625    [ProjData,errormsg]= proj_field(UvData.Field,UvData.ProjObject{IndexObj});%project the current field on ObjectData
     5626    if ~isempty(errormsg)
     5627        msgbox_uvmat('ERROR',['projection on ' UvData.ProjObject{IndexObj}.Type ': ' errormsg])
     5628        return
     5629    end
    56175630    hview_field=findobj(allchild(0),'tag','view_field');
    56185631    if isempty(hview_field)
Note: See TracChangeset for help on using the changeset viewer.