Changeset 61 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Mar 24, 2010, 12:51:51 AM (14 years ago)
Author:
sommeria
Message:

gestion of projection objects improved. Implementation of view_field.fig
introduction of a circle to mark vectors with the mouse
various cleaning and debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r60 r61  
    162162                end
    163163                IndexObj=ObjectData.IndexObj;
    164                 hlist_object=findobj(huvmat,'Tag','list_object');
    165                 set(hlist_object,'Value',IndexObj);
     164                set(hhuvmat.list_object_1,'Value',IndexObj);
     165                set(hhuvmat.list_object_2,'Value',IndexObj);
    166166                testdeform=0;
    167167                set(gcbo,'Pointer','circle');
     
    205205            UvData.Object{IndexObj}.HandlesDisplay(1)=AxeData.CurrentObject;
    206206            set(huvmat,'UserData',UvData)
    207             list_str=get(hhuvmat.list_object,'String');
     207            list_str=get(hhuvmat.list_object_1,'String');
    208208            list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Style];
    209209            if ~isequal(list_str{end},'...')
    210210                 list_str{end+1}='...';
    211211            end
    212             set(hhuvmat.list_object,'String',list_str)
    213             set(hhuvmat.list_object,'Value',IndexObj)
     212            set(hhuvmat.list_object_1,'String',list_str)
     213            set(hhuvmat.list_object_1,'Value',IndexObj)
     214            set(hhuvmat.list_object_2,'String',list_str)
     215            set(hhuvmat.list_object_2,'Value',IndexObj)
    214216            PlotData=get(AxeData.CurrentObject,'UserData');
    215217            PlotData.IndexObj=IndexObj;
     
    295297        UvData.RulerCoord(1,1)=xy(1,1);
    296298        UvData.RulerCoord(1,2)=xy(1,2);
    297         UvData.RulerHandle=line([xy(1,1) xy(1,1)],[xy(1,2) xy(1,2)],'Color','m','Tag','proj_object');
     299        UvData.RulerHandle=line([xy(1,1) xy(1,1)],[xy(1,2) xy(1,2)],'Color','m','Tag','ruler');
    298300        set(huvmat,'UserData',UvData)
    299301    end
Note: See TracChangeset for help on using the changeset viewer.