Changeset 413 for trunk/src/mouse_up.m


Ignore:
Timestamp:
May 8, 2012, 2:27:50 PM (12 years ago)
Author:
sommeria
Message:

various bugs corrected and improvement in civ1_TEST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r410 r413  
    152152            ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
    153153            if ~isempty(ProjData)
    154                 if strcmp(tagfig,'uvmat')% uvmat plot selected, projection plot seen on view_field
     154                if strcmp(tagfig,'uvmat')% uvmat plot selected, projection plot seen in view_field
    155155                    hview_field=findobj(allchild(0),'tag','view_field');
    156156                    if isempty(hview_field)
    157                         hview_field=view_field;
     157                        hview_field=view_field(ProjData);
     158                    else
     159                       hhview_field=guidata(hview_field);
     160                       [PlotType,PlotParam]=plot_field(ProjData,hhview_field.axes3,read_GUI(hview_field));%update an existing field plot
     161                        write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
    158162                    end
    159163                    ViewFieldData=get(hview_field,'UserData');
    160164                    ViewFieldData.axes3=ProjData;
    161165                    set(hview_field,'UserData',ViewFieldData)
    162                     hh_plotfield=guidata(hview_field);
     166 
    163167                else
    164168                    UvData.axes3=ProjData;
    165                     hh_plotfield=hhuvmat;
     169                    [PlotType,PlotParam]=plot_field(ProjData,hhuvmat.axes3,read_GUI(hhuvmat));%update an existing field plot
     170                    write_plot_param(hhuvmat,PlotParam); %update the display of plotting parameters for the current object
    166171                end
    167172                %[PlotType,PlotParam]=plot_field(ProjData,hh_plotfield.axes3,read_plot_param(hh_plotfield));%update an existing field plot
    168                 [PlotType,PlotParam]=plot_field(ProjData,hh_plotfield.axes3,read_GUI(hview_field));%update an existing field plot
    169                 write_plot_param(hh_plotfield,PlotParam); %update the display of plotting parameters for the current object
     173
    170174            end
    171175            set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow
Note: See TracChangeset for help on using the changeset viewer.