Changeset 425 for trunk/src/uvmat.m


Ignore:
Timestamp:
May 17, 2012, 10:55:41 AM (9 years ago)
Author:
sommeria
Message:

improvement of object management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r424 r425  
    39423942function ListObject_1_Callback(hObject, eventdata, handles)
    39433943list_str=get(handles.ListObject_1,'String');
    3944 IndexObj=get(handles.ListObject_1,'Value');
    39453944UvData=get(handles.uvmat,'UserData');
    39463945ObjectData=UvData.Object{get(handles.ListObject_1,'Value')};
     
    39493948ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on UvData.Object{IndexObj(1)}
    39503949plot_field(ProjData,handles.axes3,read_GUI(handles.uvmat));%read plotting parameters on the uvmat interfacPlotHandles);
     3950Object_out=update_obj(UvData,get(handles.ListObject_1,'Value'),[])
    39513951
    39523952%% display the object parameters if the GUI set_object is already opened
    3953 hset_object=findobj(allchild(0),'tag','set_object');
    3954 if ~isempty(hset_object)
     3953% hset_object=findobj(allchild(0),'tag','set_object');
     3954%if ~isempty(hset_object)
     3955if ~get(handles.ViewObject,'Value')
    39553956%     delete(hset_object)% delete to refesh the content
    39563957    ZBounds=0; % default
     
    39593960        ZBounds(2)=UvData.Field.ZMax;%maximum for the Z slider
    39603961    end
    3961     ObjectData.Name=list_str{IndexObj};
     3962    ObjectData.Name=list_str{get(handles.ListObject_1,'Value')};
    39623963    set_object(ObjectData,[],ZBounds);
    39633964    set(handles.ViewObject,'Value',1)% show that the selected object in ListObject_1 is currently visualised
     
    44734474    delete(handles.UVMAT_title)%delete the initial display of uvmat if no field has been entered
    44744475end
    4475 set(handles.ListObject,'Visible','on')
    4476 set(handles.ViewField,'Visible','on')
    4477 set(handles.ViewField,'Value',1) % indicate that the object selected in ListObject (projection oin view_field) is visualised
    4478 set(handles.ViewObject,'Value',0)% then the object selected in ListObject_1 is not visualised
     4476
     4477%set(handles.ViewField,'Value',1) % indicate that the object selected in ListObject (projection oin view_field) is visualised
     4478%set(handles.ViewObject,'Value',1)% then the object selected in ListObject_1 is not visualised
    44794479hset_object=set_object(data,handles);% call the set_object interface
    44804480hhset_object=guidata(hset_object);
Note: See TracChangeset for help on using the changeset viewer.