Ignore:
Timestamp:
Aug 6, 2013, 3:47:07 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r671 r672  
    6060                   'gui_LayoutFcn',  [] , ...
    6161                   'gui_Callback',   []);
    62 if nargin && ischar(varargin{1}) %&& ~isempty(regexp(varargin{1},'_Callback','once'))
     62if nargin
     63   [pp,ff]=fileparts(which(varargin{1})); % name of the input file
     64   if strcmp(ff,mfilename)% if we are activating a sub-function of geometry_calib
     65   % ~isempty(regexp(varargin{1},'_Callback','once'))
    6366    gui_State.gui_Callback = str2func(varargin{1});
     67   end
    6468end
    6569
     
    9296set(0,'Unit','pixels')
    9397ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right
    94 FigSize=get(handles.geometry_calib,'Position');
    95 
    96 Width=FigSize(3);% fig width in points (1/72 inch)
    97 Height=FigSize(4);
    98 Left=ScreenSize(3)- Width-40; %right edge close to the right, with margin=40
    99 Bottom=ScreenSize(4)-Height-40; %put fig at top right
    100 set(handles.geometry_calib,'Position',[Left Bottom Width Height])
    101 
    102 % %set the position of the interface
    103 % if exist('pos','var')&& length(pos)>=4
    104 %     set(hObject,'Position',pos);
    105 % end
     98Left=ScreenSize(3)- 460; %right edge close to the right, with margin=40 (GUI width=420 px)
     99if ScreenSize(4)>880
     100    Height=840;%default height of the GUI
     101    Bottom=ScreenSize(4)-Height-40; %put fig at top right
     102else
     103    Height=ScreenSize(4)-40;
     104    Bottom=0; % GUI lies o the screen bottom
     105end
     106set(handles.calib_type,'Position',[1 Height-30 194 30])%  rank 1
     107set(handles.APPLY,'Position',[197 Height-30 110 30])%  rank 1
     108set(handles.REPLICATE,'Position',[309 Height-30 110 30])%  rank 1
     109set(handles.Intrinsic,'Position',[1 Height-30-2-92 418 92])%  rank 2
     110set(handles.Extrinsic,'Position',[1 Height-30-4-92-75 418 75])%  rank 3
     111set(handles.PointLists,'Position',[1 Height-30-6-92-75-117 418 117]) %  rank 4
     112set(handles.CheckEnableMouse,'Position',[3 Height-30-8-92-75-117-30 203 30])%  rank 5
     113set(handles.PLOT,'Position',[3 Height-384 120 30])%  rank 6
     114set(handles.Copy,'Position',[151 Height-384 120 30])%  rank 6
     115set(handles.CLEAR_PTS,'Position',[297 Height-384 120 30])%  rank 6
     116set(handles.phys_title,'Position',[38 Height-416 125 20])%  rank 7
     117set(handles.CoordUnit,'Position',[151 Height-416 120 30])%  rank 7
     118set(handles.px_title,'Position',[272 Height-416 125 20])%  rank 7
     119set(handles.ListCoord,'Position',[1 20 418 Height-436])% rank 8
     120set(handles.geometry_calib,'Position',[Left Bottom 420 Height])
    106121
    107122%set menu of calibration options
     
    150165if ~isempty(huvmat)
    151166    handles=guidata(huvmat);
     167    set(handles.MenuCalib,'Checked','off')
    152168    hobject=findobj(handles.PlotAxes,'tag','calib_points');
    153169    if ~isempty(hobject)
Note: See TracChangeset for help on using the changeset viewer.