Changeset 735 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 9, 2014, 9:37:44 AM (10 years ago)
Author:
sommeria
Message:

various corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r729 r735  
    338338end
    339339% desable set_object editing action if detected
    340 hh=findobj(allchild(0),'tag','set_object');
     340hh=findobj(allchild(0),'name','set_object');
    341341if ~isempty(hh)
    342342    hhh=findobj(hh,'tag','PLOT');
     
    13761376    if isempty(MaskFile)
    13771377        Mask.File='';
     1378    elseif ischar(MaskFile)
     1379        Mask.File=MaskFile;
    13781380    else
    13791381        Mask.File=MaskFile{1};
     
    25342536            UvData.ProjObject{1}.enable_plot=1;
    25352537            set_object(UvData.ProjObject{1},handles,ZBounds);
     2538            set(hset_object,'name','set_object');% rename if set_object already used with series
    25362539            set(handles.ListObject,'Value',1);
    25372540            set(handles.ListObject,'String',{'1-PLANE'});
     
    35803583    [hset_object,UvData.sethandles]=set_object(data,PlotHandles);% call the set_object interface with action on haxes,
    35813584                                                      % associate the set_object interface handle to the plotting axes
    3582     %set(hset_object,'Position',get(handles.uvmat,'Position')+UvData.OpenParam.PosSetObject)
     3585    set(hset_object,'name','set_object')
    35833586    UvData.MouseAction='create_object';
    35843587else
     
    42454248    end
    42464249    ObjectData.Name=list_str{get(handles.ListObject_1,'Value')};
    4247     set_object(ObjectData,[],ZBounds);
     4250    hset_object=set_object(ObjectData,[],ZBounds);
     4251    set(hset_object,'name','set_object')
    42484252    set(handles.CheckViewObject,'Value',1)% show that the selected object in ListObject_1 is currently visualised
    42494253end
     
    42724276%% show object features if view_object isselected
    42734277if get(handles.CheckViewObject,'value')
    4274     set_object(ObjectData,[],ZBounds);
    4275 end
    4276 
    4277 %% The object  is displayed in set_object if this GUI is already opened
    4278 %
    4279 % hset_object=findobj(allchild(0),'tag','set_object');
    4280 % if ~isempty(hset_object)
    4281 %
    4282 %     ObjectData.Name=list_str{IndexObj};
    4283 %     set_object(ObjectData,[],ZBounds);
    4284 %     set(handles.CheckViewField,'Value',1)% show that the selected object in ListObject is currently visualised
    4285 % end
     4278    hset_object=set_object(ObjectData,[],ZBounds);
     4279    set(hset_object,'name','set_object')
     4280end
    42864281
    42874282%%  desactivate the edit object mode for security
    42884283set(handles.CheckEditObject,'Value',0)
    4289 
    4290 % set(handles.CheckEditObject,'BackgroundColor',[0.7,0.7,0.7])
    42914284
    42924285%% update the  plot on view_field if view_field is already openened
     
    44234416    end
    44244417    hset_object=set_object(data,[],ZBounds);
     4418    set(hset_object,'name','set_object')
    44254419    hhset_object=guidata(hset_object);
    44264420    if get(handles.CheckEditObject,'Value')% edit mode
Note: See TracChangeset for help on using the changeset viewer.