Changeset 67 for trunk/src/set_object.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/set_object.m

    r61 r67  
    8989     PlotHandles=[];
    9090end
    91 desable_open=0;%default: allow reading of object from xml file
    92 desable_plot=0;%default
     91enable_plot=0;%default
    9392SetData.PlotHandles=PlotHandles;
    94 if exist('data','var') && isfield(data,'ParentButton')
    95         SetData.ParentButton=data.ParentButton;
    96         set(hObject,'DeleteFcn',{@closefcn,SetData.ParentButton})%
    97 end
     93% if exist('data','var') && isfield(data,'ParentButton')
     94%         SetData.ParentButton=data.ParentButton;
     95%         set(hObject,'DeleteFcn',{@closefcn,SetData.ParentButton})%
     96% end
    9897set(hObject,'UserData',SetData)
    9998
     
    101100if exist('data','var')
    102101    if isfield(data,'desable_plot')
    103         desable_plot=data.desable_plot;%test to desable button PLOT (display mode)
     102        enable_plot=~data.desable_plot;%test to desable button PLOT (display mode)
    104103    end
    105104    if ~isfield(data,'NbDim')||~isequal(data.NbDim,3)%2D case
     
    242241%     set(handles.OPEN,'Visible','on')
    243242% end
    244 if desable_plot
    245    set(handles.PLOT,'Visible','off')
     243if enable_plot
     244   set(handles.PLOT,'enable','on')
    246245else
    247    set(handles.PLOT,'Visible','on')
     246   set(handles.PLOT,'enable','off')
    248247end
    249248
     
    793792%     set(hhuvmat.VOLUME,'BackgroundColor',[0 1 0])%put unactivated buttons to green
    794793% end
     794set(hhuvmat.MenuEditObject,'enable','on')
    795795set(hhuvmat.edit,'Value',1)
    796796set(hhuvmat.edit,'BackgroundColor',[1 1 0]);% paint the edit text in yellow
    797 set(hhuvmat.edit,'Value',1);%
    798797UvData.MouseAction='edit_object'; % set the edit button to 'on'
    799798set(huvmat,'UserData',UvData)
Note: See TracChangeset for help on using the changeset viewer.