Changeset 586 for trunk/src/set_object.m


Ignore:
Timestamp:
Mar 13, 2013, 9:12:09 AM (11 years ago)
Author:
sommeria
Message:

tps_coeff_field introduced and several bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r581 r586  
    486486else
    487487    % create tps coeff if needed for ProjMode 'interp_tps'
    488     if strcmp(ObjectData.ProjMode,'interp_tps')&&~isfield(UvData.Field,'Coord_tps')     
    489         UvData.Field=calc_tps(UvData.Field,1);
     488    if strcmp(ObjectData.ProjMode,'interp_tps')&&~isfield(UvData.Field,'Coord_tps')
     489        %UvData.Field=calc_tps(UvData.Field,1);
     490        [UvData.Field,errormsg]=tps_coeff_field(UvData.Field,1);
     491        if ~isempty(errormsg)
     492            msgbox_uvmat('ERROR', ['set_object/tps_coeff_field/' errormsg])
     493            set(handles.PLOT,'enable','on')
     494            return
     495        end
    490496    end
    491497    [ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current field of uvmat on ObjectData
    492498    if ~isempty(errormsg)
    493         msgbox_uvmat('ERROR', errormsg)
     499        msgbox_uvmat('ERROR', ['set_object/proj_field/' errormsg])
    494500        set(handles.PLOT,'enable','on')
    495501        return
    496     end   
     502    end
    497503    if isequal(IndexObj_1,IndexObj) % if  the projection is in uvmat
    498          PlotType=plot_field(ProjData,hhuvmat.PlotAxes,read_GUI(get(hhuvmat.PlotAxes,'parent')));%update the current uvmat plot
     504        PlotType=plot_field(ProjData,hhuvmat.PlotAxes,read_GUI(get(hhuvmat.PlotAxes,'parent')));%update the current uvmat plot
    499505    else  % if the projection is in view_field
    500506        hview_field=findobj(allchild(0),'tag','view_field');
     
    509515                return
    510516            end
    511        %     write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
     517            %     write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
    512518        end
    513519        haxes=findobj(hview_field,'tag','axes3');
     
    523529            set(hview_field,'Position',Data.GUISize)
    524530        end
    525       %  set(hhuvmat.ViewField,'Value',1)% indicate that the field projection on the current object is plotted in view_field
     531        %  set(hhuvmat.ViewField,'Value',1)% indicate that the field projection on the current object is plotted in view_field
    526532    end
    527533end
Note: See TracChangeset for help on using the changeset viewer.