Changeset 82 for trunk/src/update_obj.m


Ignore:
Timestamp:
Apr 15, 2010, 5:12:42 AM (14 years ago)
Author:
sommeria
Message:

mouse_up: improve zoom : keep the selected point at the same place on the graph
plot_field: memorize the max coordiantes on the graph (AxeData?) for zoom out
set_object: input possibilities extende to restrict menu (for mask objects)
uvmat: improvement of mask creation
civ: select mask option for civ2 when select(ed for civ1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_obj.m

    r71 r82  
    6262      end
    6363end
     64
    6465% plot the field projected on the object
    65 % if ~isempty(PlotHandles) %&& ~testmask
    66     ProjData= proj_field(UvData.Field,ObjectData,IndexObj);%project the current interface field on ObjectData
    67     if ~isempty(ProjData)   
    68         plotaxes=[];%default
     66ProjData= proj_field(UvData.Field,ObjectData,IndexObj);%project the current interface field on ObjectData
     67if ~isempty(ProjData)   
     68    plotaxes=[];%default
    6969%         get(Object_set{IndexObj}.plotaxes)
    70         if length(Object_set)>= IndexObj && isfield(Object_set{IndexObj},'plotaxes')
    71             plotaxes=Object_set{IndexObj}.plotaxes;
    72             [PlotType,Object_out.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotHandles);
    73         else
    74              [plotaxes]=view_field(ProjData);
    75         end
     70    if length(Object_set)>= IndexObj && isfield(Object_set{IndexObj},'plotaxes')
     71        plotaxes=Object_set{IndexObj}.plotaxes;
     72        [PlotType,Object_out.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotHandles);
     73    else
     74         [plotaxes]=view_field(ProjData);
     75    end
    7676%         [PlotType,Object_out.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotHandles);
    77         Object_out.plotaxes=plotaxes;
    78         plotfig=get(plotaxes,'parent');
    79         name_str=get(plotfig,'Name');
    80         if ~isequal(name_str,'uvmat')
    81             set(plotfig,'Name',['Projection on' num2str(IndexObj) '-' ObjectData.Style]);
    82         end
     77    Object_out.plotaxes=plotaxes;
     78    plotfig=get(plotaxes,'parent');
     79    name_str=get(plotfig,'Name');
     80    if ~isequal(name_str,'uvmat')
     81        set(plotfig,'Name',['Projection on' num2str(IndexObj) '-' ObjectData.Style]);
    8382    end
    84 % end
     83end
    8584
    8685
     86
Note: See TracChangeset for help on using the changeset viewer.