Changeset 681 for trunk/src/uvmat.m


Ignore:
Timestamp:
Sep 2, 2013, 2:42:52 PM (11 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/uvmat.m

    r680 r681  
    204204
    205205%% set functions for the mouse and keyboard
    206 set(hObject,'KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function
     206set(hObject,'WindowKeyPressFcn',{'keyboard_callback',handles})%set keyboard action function
    207207set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles})%set mouse action functio
    208208set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function
     
    17691769    errormsg=refresh_field(handles,filename,filename_1,i1,i2,j1,j2);
    17701770end
    1771 
    1772 %% refresh plots
    1773 % errormsg=refresh_field(handles,filename,filename_1,i1,i2,j1,j2,i1_1,i2_1,j1_1,j2_1);
     1771set(handles.run0,'BackgroundColor',[1 0 0])
    17741772
    17751773%% update the index counters if the index move is successfull
     
    18221820else
    18231821    set(handles.movie_pair,'BusyAction','queue')
     1822    set(handles.run0,'BackgroundColor',[1 0 0])
    18241823end
    18251824
     
    19871986    set(handles.j2,'BackgroundColor',[1 1 1])
    19881987    set(handles.FileIndex,'BackgroundColor',[1 1 1])
    1989     set(handles.FileIndex_1,'BackgroundColor',[1 1 1])   
     1988    set(handles.FileIndex_1,'BackgroundColor',[1 1 1]) 
     1989    set(handles.run0,'BackgroundColor',[1 0 0])
    19901990end   
    1991 set(handles.run0,'BackgroundColor',[1 0 0])
    1992 
    19931991
    19941992%------------------------------------------------------------------------
     
    27022700end
    27032701ResizeFcn(handles.uvmat,[],handles)
     2702%set(handles.uvmat,'CurrentAxes',handles.PlotAxes)% make the main axis current (usefull for key board callback)
    27042703
    27052704%------------------------------------------------------------------------
     
    40214020[tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam);
    40224021errormsg=fill_GUI(PlotParamOut,handles.uvmat);
    4023 %write_plot_param(handles,PlotParamOut); %update the auto plot parameters
     4022RUNColor=get(handles.run0,'BackgroundColor');%
     4023if isequal(RUNColor,[1 0 1])% suppress magenta color (indicate that plot is  updated)
     4024    set(handles.run0,'BackgroundColor',[1 0 0]);
     4025end
    40244026
    40254027%------------------------------------------------------------------------
     
    43344336if  ~isempty(UvData) && isfield(UvData, 'ProjObject') && length(UvData.ProjObject)>=IndexObj
    43354337    if isfield(UvData.ProjObject{IndexObj},'DisplayHandle') && isfield(UvData.ProjObject{IndexObj}.DisplayHandle,'uvmat')
    4336         hdisplay=UvData.ProjObject{IndexObj}.DisplayHandle.uvmat;
     4338        hdisplay=UvData.ProjObject{IndexObj}.DisplayHandle.uvmat;%handle of the object graphic representation in uvmat
    43374339        for iview=1:length(hdisplay)
    43384340            if ishandle(hdisplay(iview)) && ~isequal(hdisplay(iview),0)
    43394341                ObjectData=get(hdisplay(iview),'UserData');
    43404342                if isfield(ObjectData,'SubObject') & ishandle(ObjectData.SubObject)
    4341                     delete(ObjectData.SubObject);
     4343                    delete(ObjectData.SubObject);% delete the graphic 'sub-objects (e.g. projection bounds)
    43424344                end
    4343                 if isfield(ObjectData,'DeformPoint') & ishandle(ObjectData.DeformPoint)
    4344                     delete(ObjectData.DeformPoint);
    4345                 end
    4346                 delete(hdisplay(iview))
     4345                check_suppress= isfield(ObjectData,'DeformPoint') & ishandle(ObjectData.DeformPoint)
     4346                delete(ObjectData.DeformPoint(check_suppress));% delete the graphic deformation points
     4347                delete(hdisplay(iview))% delete the main graphic representation of the object
    43474348            end
    43484349            ishandle(hdisplay(iview))
Note: See TracChangeset for help on using the changeset viewer.