Ignore:
Timestamp:
Mar 25, 2010, 6:48:48 PM (11 years ago)
Author:
sommeria
Message:

civ: RUN civ lounched out of the Matlab work space. RUN and BATCH now runned by a unique sub-function lounch.m.
FiLE PARAM.xml modified to provide different paths for Batch and Run !!!!!
RUN_FIX: minor error message modif
geometry_calib: calib point editing by the mouse
improvement of the interactions between the different GUIs. Close function...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r63 r67  
    7878% Update handles structure
    7979guidata(hObject, handles);
    80 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,handles_uvmat})%
    83 end
     80%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
    8484%set the position of the interface
    8585if exist('pos','var')& length(pos)>2
     
    100100    end   
    101101end
    102 set(handles.ListCoord,'String',{''})
     102set(handles.ListCoord,'String',{'...'})
    103103if exist(inputxml,'file')
    104104    loadfile(handles,inputxml)% load the point coordiantes existing in the xml file
     
    213213        CoordCell{iline,j}=num2str(Coord(iline,j),4);
    214214    end
    215 end       
     215end
     216CoordCell=[CoordCell;{' ',' ',' ',' ',' '}];
    216217Tabchar=cell2tab(CoordCell,'    |    ');%transform cells into table ready for display
    217218set(handles.ListCoord,'Value',1)
    218219set(handles.ListCoord,'String',Tabchar)
    219220
    220 
     221%
    221222%------------------------------------------------------------------------
    222223% executed when closing: set the parent interface button to value 0
    223 function closefcn(gcbo,eventdata,handles_uvmat)
     224function closefcn(gcbo,eventdata)
    224225%------------------------------------------------------------------------
    225226huvmat=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]);
     227if ~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   
    231241end
    232242
     
    582592%update the plot
    583593ListCoord_Callback(hObject, eventdata, handles)
    584 
     594MenuPlot_Callback(hObject, eventdata, handles)
    585595%------------------------------------------------------------------------
    586596% --- Executes on selection change in ListCoord.
     
    10171027set(handles.ListCoord,'Value',1)
    10181028set(handles.ListCoord,'String',Tabchar)
    1019 
     1029MenuPlot_Callback(hObject, eventdata, handles)
    10201030
    10211031%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.