Changeset 508 for trunk/src/set_object.m


Ignore:
Timestamp:
Jul 31, 2012, 6:55:39 PM (9 years ago)
Author:
sommeria
Message:

various improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r491 r508  
    417417function PLOT_Callback(hObject, eventdata, handles)
    418418
     419set(handles.PLOT,'BackgroundColor',[1 1 0])
     420drawnow
     421
    419422%% read the object parameters in the GUI set_object
    420423ObjectData=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object
     
    482485    PlotType='text';
    483486else
     487    % create tps coeff if needed for ProjMode 'filter'
     488    if strcmp(ObjectData.ProjMode,'filter')&&~isfield(UvData.Field,'Coord_tps')     
     489        UvData.Field=calc_tps(UvData.Field);
     490    end
    484491    [ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current field of uvmat on ObjectData
    485492    if ~isempty(errormsg)
    486493        msgbox_uvmat('ERROR', errormsg)
     494        set(handles.PLOT,'enable','on')
    487495        return
    488496    end   
     
    546554set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow
    547555set(hhuvmat.ViewField,'Value',1)
    548 
     556% set(handles.PLOT,'enable','on')
     557set(handles.PLOT,'BackgroundColor',[1 0 0])
    549558%------------------------------------------------------------------------
    550559% --- Executes on button press in MenuCoord.
Note: See TracChangeset for help on using the changeset viewer.