Changeset 672 for trunk/src/geometry_calib.m
- Timestamp:
- Aug 6, 2013, 3:47:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r671 r672 60 60 'gui_LayoutFcn', [] , ... 61 61 'gui_Callback', []); 62 if nargin && ischar(varargin{1}) %&& ~isempty(regexp(varargin{1},'_Callback','once')) 62 if 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')) 63 66 gui_State.gui_Callback = str2func(varargin{1}); 67 end 64 68 end 65 69 … … 92 96 set(0,'Unit','pixels') 93 97 ScreenSize=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 98 Left=ScreenSize(3)- 460; %right edge close to the right, with margin=40 (GUI width=420 px) 99 if ScreenSize(4)>880 100 Height=840;%default height of the GUI 101 Bottom=ScreenSize(4)-Height-40; %put fig at top right 102 else 103 Height=ScreenSize(4)-40; 104 Bottom=0; % GUI lies o the screen bottom 105 end 106 set(handles.calib_type,'Position',[1 Height-30 194 30])% rank 1 107 set(handles.APPLY,'Position',[197 Height-30 110 30])% rank 1 108 set(handles.REPLICATE,'Position',[309 Height-30 110 30])% rank 1 109 set(handles.Intrinsic,'Position',[1 Height-30-2-92 418 92])% rank 2 110 set(handles.Extrinsic,'Position',[1 Height-30-4-92-75 418 75])% rank 3 111 set(handles.PointLists,'Position',[1 Height-30-6-92-75-117 418 117]) % rank 4 112 set(handles.CheckEnableMouse,'Position',[3 Height-30-8-92-75-117-30 203 30])% rank 5 113 set(handles.PLOT,'Position',[3 Height-384 120 30])% rank 6 114 set(handles.Copy,'Position',[151 Height-384 120 30])% rank 6 115 set(handles.CLEAR_PTS,'Position',[297 Height-384 120 30])% rank 6 116 set(handles.phys_title,'Position',[38 Height-416 125 20])% rank 7 117 set(handles.CoordUnit,'Position',[151 Height-416 120 30])% rank 7 118 set(handles.px_title,'Position',[272 Height-416 125 20])% rank 7 119 set(handles.ListCoord,'Position',[1 20 418 Height-436])% rank 8 120 set(handles.geometry_calib,'Position',[Left Bottom 420 Height]) 106 121 107 122 %set menu of calibration options … … 150 165 if ~isempty(huvmat) 151 166 handles=guidata(huvmat); 167 set(handles.MenuCalib,'Checked','off') 152 168 hobject=findobj(handles.PlotAxes,'tag','calib_points'); 153 169 if ~isempty(hobject)
Note: See TracChangeset
for help on using the changeset viewer.