Changeset 681 for trunk/src/uvmat.m
- Timestamp:
- Sep 2, 2013, 2:42:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r680 r681 204 204 205 205 %% set functions for the mouse and keyboard 206 set(hObject,' KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function206 set(hObject,'WindowKeyPressFcn',{'keyboard_callback',handles})%set keyboard action function 207 207 set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles})%set mouse action functio 208 208 set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function … … 1769 1769 errormsg=refresh_field(handles,filename,filename_1,i1,i2,j1,j2); 1770 1770 end 1771 1772 %% refresh plots 1773 % errormsg=refresh_field(handles,filename,filename_1,i1,i2,j1,j2,i1_1,i2_1,j1_1,j2_1); 1771 set(handles.run0,'BackgroundColor',[1 0 0]) 1774 1772 1775 1773 %% update the index counters if the index move is successfull … … 1822 1820 else 1823 1821 set(handles.movie_pair,'BusyAction','queue') 1822 set(handles.run0,'BackgroundColor',[1 0 0]) 1824 1823 end 1825 1824 … … 1987 1986 set(handles.j2,'BackgroundColor',[1 1 1]) 1988 1987 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]) 1990 1990 end 1991 set(handles.run0,'BackgroundColor',[1 0 0])1992 1993 1991 1994 1992 %------------------------------------------------------------------------ … … 2702 2700 end 2703 2701 ResizeFcn(handles.uvmat,[],handles) 2702 %set(handles.uvmat,'CurrentAxes',handles.PlotAxes)% make the main axis current (usefull for key board callback) 2704 2703 2705 2704 %------------------------------------------------------------------------ … … 4021 4020 [tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam); 4022 4021 errormsg=fill_GUI(PlotParamOut,handles.uvmat); 4023 %write_plot_param(handles,PlotParamOut); %update the auto plot parameters 4022 RUNColor=get(handles.run0,'BackgroundColor');% 4023 if isequal(RUNColor,[1 0 1])% suppress magenta color (indicate that plot is updated) 4024 set(handles.run0,'BackgroundColor',[1 0 0]); 4025 end 4024 4026 4025 4027 %------------------------------------------------------------------------ … … 4334 4336 if ~isempty(UvData) && isfield(UvData, 'ProjObject') && length(UvData.ProjObject)>=IndexObj 4335 4337 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 4337 4339 for iview=1:length(hdisplay) 4338 4340 if ishandle(hdisplay(iview)) && ~isequal(hdisplay(iview),0) 4339 4341 ObjectData=get(hdisplay(iview),'UserData'); 4340 4342 if isfield(ObjectData,'SubObject') & ishandle(ObjectData.SubObject) 4341 delete(ObjectData.SubObject); 4343 delete(ObjectData.SubObject);% delete the graphic 'sub-objects (e.g. projection bounds) 4342 4344 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 4347 4348 end 4348 4349 ishandle(hdisplay(iview))
Note: See TracChangeset
for help on using the changeset viewer.