Changeset 67 for trunk/src/geometry_calib.m
- Timestamp:
- Mar 25, 2010, 6:48:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r63 r67 78 78 % Update handles structure 79 79 guidata(hObject, handles); 80 movegui(hObject,'east');% position the GUI ton the right of the screen81 if exist('handles_uvmat','var') %& isfield(data,'ParentButton')82 set(hObject,'DeleteFcn',{@closefcn,handles_uvmat})%83 end80 %movegui(hObject,'east');% position the GUI ton the right of the screen 81 % if exist('handles_uvmat','var') %& isfield(data,'ParentButton') 82 set(hObject,'DeleteFcn',{@closefcn})% 83 % end 84 84 %set the position of the interface 85 85 if exist('pos','var')& length(pos)>2 … … 100 100 end 101 101 end 102 set(handles.ListCoord,'String',{' '})102 set(handles.ListCoord,'String',{'...'}) 103 103 if exist(inputxml,'file') 104 104 loadfile(handles,inputxml)% load the point coordiantes existing in the xml file … … 213 213 CoordCell{iline,j}=num2str(Coord(iline,j),4); 214 214 end 215 end 215 end 216 CoordCell=[CoordCell;{' ',' ',' ',' ',' '}]; 216 217 Tabchar=cell2tab(CoordCell,' | ');%transform cells into table ready for display 217 218 set(handles.ListCoord,'Value',1) 218 219 set(handles.ListCoord,'String',Tabchar) 219 220 220 221 % 221 222 %------------------------------------------------------------------------ 222 223 % executed when closing: set the parent interface button to value 0 223 function closefcn(gcbo,eventdata ,handles_uvmat)224 function closefcn(gcbo,eventdata) 224 225 %------------------------------------------------------------------------ 225 226 huvmat=findobj(allchild(0),'Name','uvmat'); 226 if exist('handles_uvmat','var') 227 set(handles_uvmat.cal,'Value',0) 228 uvmat('cal_Callback',huvmat,[],handles_uvmat); 229 % set(parent_button,'Value',0)%put unactivated buttons to green 230 % set(parent_button,'BackgroundColor',[0 1 0]); 227 if ~isempty(huvmat) 228 handles=guidata(huvmat); 229 set(handles.MenuTools,'enable','on') 230 set(handles.MenuObject,'enable','on') 231 set(handles.MenuEdit,'enable','on') 232 set(handles.edit,'enable','on') 233 hobject=findobj(handles.axes3,'tag','calib_points'); 234 if ~isempty(hobject) 235 delete(hobject) 236 end 237 hobject=findobj(handles.axes3,'tag','calib_marker'); 238 if ~isempty(hobject) 239 delete(hobject) 240 end 231 241 end 232 242 … … 582 592 %update the plot 583 593 ListCoord_Callback(hObject, eventdata, handles) 584 594 MenuPlot_Callback(hObject, eventdata, handles) 585 595 %------------------------------------------------------------------------ 586 596 % --- Executes on selection change in ListCoord. … … 1017 1027 set(handles.ListCoord,'Value',1) 1018 1028 set(handles.ListCoord,'String',Tabchar) 1019 1029 MenuPlot_Callback(hObject, eventdata, handles) 1020 1030 1021 1031 %%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset
for help on using the changeset viewer.