Changeset 690 for trunk/src/uvmat.m
- Timestamp:
- Sep 29, 2013, 1:19:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r689 r690 356 356 set(handles.InputFile,'Position',pos_InputFile);% [lower x lower y width height] for text_display 357 357 358 %% reset position of text_display orTableDisplay359 if strcmp(get(handles.TableDisplay,'Visible'),'off')358 %% reset position of text_display and TableDisplay 359 % if strcmp(get(handles.TableDisplay,'Visible'),'off') 360 360 set(handles.text_display,'Units','pixels') 361 361 pos_1=get(handles.text_display,'Position');% [lower x lower y width height] for text_display … … 365 365 set(handles.text_display,'Position',pos_1) 366 366 % reset position of TableDisplay 367 else368 set(handles.TableDisplay,'Units','pixels')369 pos_1=get(handles.TableDisplay,'Position');370 pos_1(3)=1.2*ColumnWidth;371 pos_1(1)=size_fig(3)-pos_1(3);372 pos_1(2)=size_fig(4)-pos_InputFile(4)-pos_1(4);367 % else 368 % set(handles.TableDisplay,'Units','pixels') 369 % pos_1=get(handles.TableDisplay,'Position'); 370 % pos_1(3)=1.2*ColumnWidth; 371 % pos_1(1)=size_fig(3)-pos_1(3); 372 % pos_1(2)=size_fig(4)-pos_InputFile(4)-pos_1(4); 373 373 set(handles.TableDisplay,'Position',pos_1) 374 end 374 % reset position of CheckTable 375 set(handles.CheckTable,'Unit','pixels') 376 pos_CheckTable=get(handles.CheckTable,'Position');% [lower x lower y width height] for CheckHold 377 pos_CheckTable(1)=pos_1(1)-pos_CheckTable(3); % set 'CheckHold' to the right of the fig 378 pos_CheckTable(2)=pos_InputFile(2)-pos_CheckTable(4); % set 'CheckHold' to the lower edge of text display 379 set(handles.CheckTable,'Position',pos_CheckTable) 380 % end 375 381 376 382 %% reset position of CheckHold … … 2846 2852 %------------------------------------------------------------------------ 2847 2853 2848 if get(handles.CheckFixAspectRatio,'Value')2854 % if get(handles.CheckFixAspectRatio,'Value') 2849 2855 update_plot(handles); 2850 else2851 update_plot(handles);2852 end2856 % else 2857 % update_plot(handles); 2858 % end 2853 2859 2854 2860 %------------------------------------------------------------------------ … … 4044 4050 function update_plot(handles) 4045 4051 %------------------------------------------------------------------- 4046 set(handles.run0,'BackgroundColor',[1 1 0]);% indicateplot activity by yellow color4052 set(handles.run0,'BackgroundColor',[1 1 0]);% display plot activity by yellow color 4047 4053 drawnow 4048 4054 UvData=get(handles.uvmat,'UserData'); … … 4055 4061 return 4056 4062 end 4057 % RUNColor=get(handles.run0,'BackgroundColor');%4058 % if isequal(RUNColor,[1 0 1])% suppress magenta color (indicate that plot is updated)4059 % set(handles.run0,'BackgroundColor',[1 0 0]);4060 % end4061 4063 set(handles.run0,'BackgroundColor',[1 0 0]); 4062 4064 … … 4377 4379 if ishandle(hdisplay(iview)) && ~isequal(hdisplay(iview),0) 4378 4380 ObjectData=get(hdisplay(iview),'UserData'); 4379 if isfield(ObjectData,'SubObject') & ishandle(ObjectData.SubObject)4381 if isfield(ObjectData,'SubObject') && ishandle(ObjectData.SubObject) 4380 4382 delete(ObjectData.SubObject);% delete the graphic 'sub-objects (e.g. projection bounds) 4381 4383 end 4382 check_suppress= isfield(ObjectData,'DeformPoint') & ishandle(ObjectData.DeformPoint)4384 check_suppress= isfield(ObjectData,'DeformPoint') && ishandle(ObjectData.DeformPoint); 4383 4385 delete(ObjectData.DeformPoint(check_suppress));% delete the graphic deformation points 4384 4386 delete(hdisplay(iview))% delete the main graphic representation of the object … … 5312 5314 end 5313 5315 end 5316 5317 5318 % --- Executes on button press in CheckTable. 5319 function CheckTable_Callback(hObject, eventdata, handles) 5320 if get(handles.CheckTable,'Value') 5321 set(handles.TableDisplay,'Visible','on') 5322 else 5323 set(handles.TableDisplay,'Visible','off') 5324 end
Note: See TracChangeset
for help on using the changeset viewer.