Changeset 67 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 25, 2010, 6:48:48 PM (14 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/uvmat.m

    r65 r67  
    222222set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function
    223223set(hObject,'WindowButtonUpFcn',{'mouse_up',handles})
     224set(hObject,'DeleteFcn',{@closefcn})%
    224225
    225226%TRANSFORM menu: loads the information stored in prefdir to initiate the browser and the list of functions
     
    18411842if  ~isequal(transform_name,'') && ~isequal(transform_name,'px')
    18421843    if test_1 && isfield(UvData,'XmlData_1') && isfield(UvData.XmlData_1,'GeometryCalib')%use geometry calib recorded from the ImaDoc xml file as first priority
     1844        Field_a=transform(Field_a,UvData.XmlData_1);%the first field has been stored without transform
    18431845        Field_b=transform(Field_b,UvData.XmlData_1);
    18441846    elseif ~test_1 && isfield(UvData,'XmlData') && isfield(UvData.XmlData,'GeometryCalib')%use geometry calib
     
    43524354
    43534355% --------------------------------------------------------------------
    4354 function MenuRun_Callback(hObject, eventdata, handles)
    4355 % --------------------------------------------------------------------
    4356 
    4357 % --------------------------------------------------------------------
    43584356function MenuHelp_Callback(hObject, eventdata, handles)
    43594357% --------------------------------------------------------------------
     
    43674365end
    43684366
    4369 % --------------------------------------------------------------------
    4370 function MenuOpen_Callback(hObject, eventdata, handles)
    4371 % --------------------------------------------------------------------
    4372 % --------------------------------------------------------------------
    4373 function MenuOpen_1_Callback(hObject, eventdata, handles)
    4374 % --------------------------------------------------------------------
    4375 % --------------------------------------------------------------------
    4376 function MenuExport_Callback(hObject, eventdata, handles)
    4377 % --------------------------------------------------------------------
    43784367
    43794368% --------------------------------------------------------------------
     
    44684457set(handles.zoom,'Value',0)
    44694458set(handles.zoom,'BackgroundColor',[0.7 0.7 0.7])
     4459set(handles.MenuTools,'enable','off')
     4460set(handles.MenuObject,'enable','off')
     4461set(handles.MenuEdit,'enable','off')
    44704462%         set(handles.create,'Value',0)
    44714463%         set(handles.create,'BackgroundColor',[0 1 0])
    44724464%         set(handles.create,'enable','off')     
    4473 set(handles.edit_vect,'Value',0)
    4474 set(handles.edit_vect,'enable','off')
    4475 edit_vect_Callback(hObject, eventdata, handles)
    4476 set(handles.edit,'Value',0)
    4477 set(handles.edit,'BackgroundColor',[0.7 0.7 0.7])
    4478 set(handles.edit,'enable','off')
     4465% set(handles.edit_vect,'Value',0)
     4466% set(handles.edit_vect,'enable','off')
     4467% edit_vect_Callback(hObject, eventdata, handles)
     4468% set(handles.edit,'Value',0)
     4469% set(handles.edit,'BackgroundColor',[0.7 0.7 0.7])
     4470% set(handles.edit,'enable','off')
    44794471set(handles.list_object_1,'Value',1)     
    44804472% initiate display of GUI geometry_calib
     
    46694661
    46704662% ------------------------------------------------------------------
    4671 function MenuEdit_Callback(hObject, eventdata, handles)
     4663function MenuEditObject_Callback(hObject, eventdata, handles)
     4664set(handles.edit,'Value',1)
     4665edit_Callback(hObject, eventdata, handles)
    46724666
    46734667%--------------------------------------------------------------------------
     
    48514845set(handles.uvmat,'UserData',UvData);
    48524846
     4847%------------------------------------------------------------------------
     4848% executed when closing: set the parent interface button to value 0
     4849function closefcn(gcbo,eventdata)
     4850%------------------------------------------------------------------------
     4851%delete all the associated figures if exist
     4852hh=findobj(allchild(0),'tag','view_field');
     4853if ~isempty(hh)
     4854    delete(hh)
     4855end
     4856hh=findobj(allchild(0),'name','geometry_calib');
     4857if ~isempty(hh)
     4858    delete(hh)
     4859end
     4860hh=findobj(allchild(0),'tag','set_object');
     4861if ~isempty(hh)
     4862    hhh=findobj(hh,'tag','PLOT');
     4863    set(hhh,'enable','off')
     4864end
Note: See TracChangeset for help on using the changeset viewer.