Changeset 681 for trunk/src/mouse_up.m


Ignore:
Timestamp:
Sep 2, 2013, 2:42:52 PM (8 years ago)
Author:
sommeria
Message:

mouse action improved for translations, use of magenta color to indicate that REFRESH is needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r660 r681  
    5151end
    5252test_drawing=0;%default, =1 to allow drawing by further mouse action
     53if ~(isfield(AxeData,'Enable')&& strcmp(AxeData.Enable,'on'))
     54    return
     55end
    5356xy=get(gca,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates
    5457
     
    7477        ObjectData.Coord(:,1)=ObjectData.Coord(:,1)+DX;
    7578        ObjectData.Coord(:,2)=ObjectData.Coord(:,2)+DY;
    76        
     79        set(hh_set_object.Coord,'Data',ObjectData.Coord);
    7780        %ending object deformation
    7881    elseif isequal(AxeData.Drawing,'deform')
     
    8083        ObjectData.Coord(ind_move,1)=xy(1,1);
    8184        ObjectData.Coord(ind_move,2)=xy(1,2);
    82        
     85        set(hh_set_object.Coord,'Data',ObjectData.Coord);
    8386        %creating object
    8487    else
     
    160163                        drawnow
    161164                        set(hview_field,'UserData',ViewFieldData);% restore the previously stored GUI position after GUI resizing
    162                     else
     165                    elseif isfield(ViewFieldData,'GUISize')
    163166                        set(hview_field,'Position',ViewFieldData.GUISize)
    164167                    end
Note: See TracChangeset for help on using the changeset viewer.