Changeset 630 for trunk/src/set_object.m
- Timestamp:
- May 6, 2013, 6:49:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r627 r630 419 419 drawnow 420 420 421 %% update the object in the GUI series if relevant 422 if strcmp(get(handles.set_object,'Name'),'edit_object_series') 423 hseries=findobj(allchild(0),'Tag','series'); 424 if ~isempty(hseries) 425 SeriesData=get(hseries,'UserData'); 426 SeriesData.ProjObject=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object 427 set(hseries,'UserData',SeriesData); 428 end 429 set(handles.PLOT,'BackgroundColor',[1 0 0]) 430 return 431 end 432 421 433 %% read the object parameters in the GUI set_object 422 434 ObjectData=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object … … 449 461 UvData.ProjObject{IndexObj}.DisplayHandle.uvmat=hhuvmat.PlotAxes; % axes for plot_object 450 462 UvData.ProjObject{IndexObj}.DisplayHandle.view_field=[]; %no plot handle before plot_field operation 451 else 452 % if ~strcmp(ListObject{end},'') 453 % ListObject=[ListObject;{''}]; %append a blank to the list (if nort already done) to indicate the creation of a new object 454 % set(handles.ListObject,'String',ListObject) 455 % end 456 % IndexObj=length(ListObject); 457 % set(handles.uvmat,'UserData',UvData) 463 else 458 464 IndexObj=get(hhuvmat.ListObject,'Value');% index of the selected object for display in uvmat 459 465 end 460 466 461 %set or modify(edit mode) the name of the currently selected object467 %set or modify(edit mode) the name of the currently selected object 462 468 detectname=1; 463 469 ObjectNameNew=ObjectName; … … 495 501 UvData.ProjObject{IndexObj}.DisplayHandle.uvmat=hhuvmat.PlotAxes; %axes taken as object display handle by defualt 496 502 end 497 %set(hhuvmat.edit_object,'Value',1)% set the current object to edit mode498 503 499 504 %% plot the field projected on the object
Note: See TracChangeset
for help on using the changeset viewer.