Changeset 432 for trunk/src/mouse_up.m


Ignore:
Timestamp:
May 25, 2012, 8:59:59 AM (12 years ago)
Author:
sommeria
Message:

system of projection object manipulation with uvmat improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r429 r432  
    5959    PlotData=get(AxeData.CurrentObject,'UserData');%get data attached to the current projection object 
    6060    IndexObj=PlotData.IndexObj;
    61     ObjectData=UvData.Object{IndexObj};    
     61    ObjectData=UvData.Object{IndexObj};   
    6262%     ObjectData.enable_plot=1;
    6363    if strcmp(ObjectData.Type,'rectangle')||strcmp(ObjectData.Type,'ellipse')
     
    139139
    140140            %% update the object representation
    141             ObjectData.DisplayHandle_uvmat=UvData.Object{IndexObj}.DisplayHandle_uvmat;
    142             ObjectData.DisplayHandle_view_field=UvData.Object{IndexObj}.DisplayHandle_view_field;
    143             UvData.Object{IndexObj}=ObjectData;%update the current object properties
    144             hhuvmat=guidata(huvmat);
    145             IndexObj_1=get(hhuvmat.ListObject_1,'Value');
    146             IndexObj_2=get(hhuvmat.ListObject,'Value');
    147             UvData.Object=update_obj(UvData,IndexObj_1,IndexObj_2);
     141%             ObjectData.DisplayHandle_uvmat=UvData.Object{IndexObj}.DisplayHandle_uvmat;
     142%             ObjectData.DisplayHandle_view_field=UvData.Object{IndexObj}.DisplayHandle_view_field;
     143%             UvData.Object{IndexObj}=ObjectData;%update the current object properties
     144%             hhuvmat=guidata(huvmat);
     145%             IndexObj_1=get(hhuvmat.ListObject_1,'Value');
     146%             IndexObj_2=get(hhuvmat.ListObject,'Value');
     147%             UvData.Object=update_obj(UvData,IndexObj_1,IndexObj_2);
    148148
    149149            %% plot the field projected on the object
     
    199199            set(hhuvmat.MenuEdit,'Enable','on');%
    200200        end
    201     else
     201    end   
    202202       AxeData.CurrentOrigin=[xy(1,1) xy(1,2)]; %the current point becomes the new current origin
    203203       test_drawing=1;%allow continuation of drawing object
    204204       UvData.Object{IndexObj}=ObjectData;
    205     end
     205%     end
    206206    hother=findobj('Tag','deformpoint');%find all the deformpoints
    207207    set(hother,'Color','b');%reset all the deformpoints in 'blue'
Note: See TracChangeset for help on using the changeset viewer.