Changeset 690 for trunk/src/uvmat.m


Ignore:
Timestamp:
Sep 29, 2013, 1:19:30 PM (10 years ago)
Author:
sommeria
Message:

representation of ancillary data as table improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r689 r690  
    356356set(handles.InputFile,'Position',pos_InputFile);% [lower x lower y width height] for text_display
    357357
    358 %% reset position of text_display or TableDisplay
    359 if strcmp(get(handles.TableDisplay,'Visible'),'off')
     358%% reset position of text_display and TableDisplay
     359% if strcmp(get(handles.TableDisplay,'Visible'),'off')
    360360    set(handles.text_display,'Units','pixels')
    361361    pos_1=get(handles.text_display,'Position');% [lower x lower y width height] for text_display
     
    365365    set(handles.text_display,'Position',pos_1)
    366366    % reset position of TableDisplay
    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);
     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);
    373373    set(handles.TableDisplay,'Position',pos_1)
    374 end
     374    % reset position of CheckTable
     375    set(handles.CheckTable,'Unit','pixels')
     376pos_CheckTable=get(handles.CheckTable,'Position');% [lower x lower y width height] for CheckHold
     377pos_CheckTable(1)=pos_1(1)-pos_CheckTable(3);       % set 'CheckHold' to the right of the fig
     378pos_CheckTable(2)=pos_InputFile(2)-pos_CheckTable(4);          % set 'CheckHold' to the lower edge of text display
     379set(handles.CheckTable,'Position',pos_CheckTable)
     380% end
    375381
    376382%% reset position of CheckHold
     
    28462852%------------------------------------------------------------------------
    28472853
    2848 if get(handles.CheckFixAspectRatio,'Value')
     2854% if get(handles.CheckFixAspectRatio,'Value')
    28492855    update_plot(handles);
    2850 else
    2851     update_plot(handles);
    2852 end
     2856% else
     2857%     update_plot(handles);
     2858% end
    28532859
    28542860%------------------------------------------------------------------------
     
    40444050function update_plot(handles)
    40454051%-------------------------------------------------------------------
    4046 set(handles.run0,'BackgroundColor',[1 1 0]);% indicate plot activity by yellow color
     4052set(handles.run0,'BackgroundColor',[1 1 0]);% display plot activity by yellow color
    40474053drawnow
    40484054UvData=get(handles.uvmat,'UserData');
     
    40554061    return
    40564062end
    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 % end
    40614063set(handles.run0,'BackgroundColor',[1 0 0]);
    40624064
     
    43774379            if ishandle(hdisplay(iview)) && ~isequal(hdisplay(iview),0)
    43784380                ObjectData=get(hdisplay(iview),'UserData');
    4379                 if isfield(ObjectData,'SubObject') & ishandle(ObjectData.SubObject)
     4381                if isfield(ObjectData,'SubObject') && ishandle(ObjectData.SubObject)
    43804382                    delete(ObjectData.SubObject);% delete the graphic 'sub-objects (e.g. projection bounds)
    43814383                end
    4382                 check_suppress= isfield(ObjectData,'DeformPoint') & ishandle(ObjectData.DeformPoint)
     4384                check_suppress= isfield(ObjectData,'DeformPoint') && ishandle(ObjectData.DeformPoint);
    43834385                delete(ObjectData.DeformPoint(check_suppress));% delete the graphic deformation points
    43844386                delete(hdisplay(iview))% delete the main graphic representation of the object
     
    53125314    end
    53135315end
     5316
     5317
     5318% --- Executes on button press in CheckTable.
     5319function CheckTable_Callback(hObject, eventdata, handles)
     5320if get(handles.CheckTable,'Value')
     5321    set(handles.TableDisplay,'Visible','on')
     5322else
     5323    set(handles.TableDisplay,'Visible','off')
     5324end
Note: See TracChangeset for help on using the changeset viewer.