Ignore:
Timestamp:
May 6, 2012, 4:06:22 PM (12 years ago)
Author:
sommeria
Message:

projection on object improved: two menus for object projection dispalyed in uvmat and in view_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/delete_object.m

    r302 r410  
    1111huvmat=findobj('tag','uvmat');%handles of the uvmat interface
    1212UvData=get(huvmat,'UserData');
    13 hlist_object=findobj(huvmat,'Tag','ListObject');%handles of the object liçst in the uvmat interface
     13hlist_object=findobj(huvmat,'Tag','ListObject');%handles of the object list in the uvmat interface
    1414list_str=get(hlist_object,'String');%objet list
    15 ObjectData=[];%default
    16 hdisplay=[];
    1715if isequal(floor(hObject),hObject) %case of an index
    1816    if  ~isempty(UvData) & isfield(UvData, 'Object') & length(UvData.Object)>=hObject
     
    7674set(hlist_object,'String',list_str)
    7775set(hlist_object,'Value',length(list_str))
    78 hlist_object=findobj(huvmat,'Tag','list_object_2');%handles of the object liçst in the uvmat interface
    79 set(hlist_object,'String',[list_str;{'...'}])
    80 set(hlist_object,'Value',length(list_str)+1)
     76hlist_object_1=findobj(huvmat,'Tag','ListObject_1');%handles of the first object list in the uvmat interface
     77old_index=get(hlist_object_1,'Value');
     78set(hlist_object_1,'String',list_str)
     79if hObject<=old_index
     80    set(hlist_object_1,'Value',old_index-1)
     81end
     82% hlist_object=findobj(huvmat,'Tag','list_object_2');%handles of the object liçst in the uvmat interface
     83% set(hlist_object,'String',[list_str;{'...'}])
     84% set(hlist_object,'Value',length(list_str)+1)
Note: See TracChangeset for help on using the changeset viewer.