Changeset 630 for trunk/src/set_object.m


Ignore:
Timestamp:
May 6, 2013, 6:49:54 PM (11 years ago)
Author:
sommeria
Message:

generalisation of update_imadoc, improverment of the GUI get_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r627 r630  
    419419drawnow
    420420
     421%% update the object in the GUI series if relevant
     422if 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
     431end
     432
    421433%% read the object parameters in the GUI set_object
    422434ObjectData=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object
     
    449461    UvData.ProjObject{IndexObj}.DisplayHandle.uvmat=hhuvmat.PlotAxes; % axes for plot_object
    450462    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)   
     463else   
    458464    IndexObj=get(hhuvmat.ListObject,'Value');% index of the selected object for display in uvmat
    459465end
    460466
    461 %set or modify(edit mode) the nameof the currently selected object
     467%set or modify(edit mode) the name of the currently selected object
    462468detectname=1;
    463469ObjectNameNew=ObjectName;
     
    495501    UvData.ProjObject{IndexObj}.DisplayHandle.uvmat=hhuvmat.PlotAxes; %axes taken as object display handle by defualt
    496502end
    497 %set(hhuvmat.edit_object,'Value',1)% set the current object to edit mode
    498503
    499504%% plot the field projected on the object
Note: See TracChangeset for help on using the changeset viewer.