Changeset 508 for trunk/src/set_object.m
- Timestamp:
- Jul 31, 2012, 6:55:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r491 r508 417 417 function PLOT_Callback(hObject, eventdata, handles) 418 418 419 set(handles.PLOT,'BackgroundColor',[1 1 0]) 420 drawnow 421 419 422 %% read the object parameters in the GUI set_object 420 423 ObjectData=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object … … 482 485 PlotType='text'; 483 486 else 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 484 491 [ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current field of uvmat on ObjectData 485 492 if ~isempty(errormsg) 486 493 msgbox_uvmat('ERROR', errormsg) 494 set(handles.PLOT,'enable','on') 487 495 return 488 496 end … … 546 554 set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow 547 555 set(hhuvmat.ViewField,'Value',1) 548 556 % set(handles.PLOT,'enable','on') 557 set(handles.PLOT,'BackgroundColor',[1 0 0]) 549 558 %------------------------------------------------------------------------ 550 559 % --- Executes on button press in MenuCoord.
Note: See TracChangeset
for help on using the changeset viewer.