Ignore:
Timestamp:
Dec 19, 2010, 10:11:04 PM (10 years ago)
Author:
sommeria
Message:

many bug repairs and corrections for mouse action
create_grid: option for black marjkers for grid detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/create_grid.m

    r109 r156  
    1212function varargout = create_grid(varargin)
    1313
    14 % Last Modified by GUIDE v2.5 05-Mar-2010 21:57:44
     14% Last Modified by GUIDE v2.5 16-Dec-2010 00:17:20
    1515
    1616% Begin initialization code - DO NOT EDIT
     
    4444if exist('name','var') && ischar(name)
    4545    set(hObject,'name',name)
     46    if strcmp(name,'detect_grid')
     47        set(handles.white,'Visible','on')
     48        set(handles.black,'Visible','on')
     49    end
    4650end
    4751% Update handles structure
     
    137141    varargout{1}=[xarray yarray zarray];
    138142    varargout{2}=T;
     143    varargout{3}=get(handles.white,'Value')
    139144end
    140145
     
    189194
    190195
    191 
    192 
    193 
     196% --- Executes on button press in white.
     197function white_Callback(hObject, eventdata, handles)
     198val=get(handles.white,'Value');
     199if val
     200    set(handles.black,'Value',0)
     201else
     202    set(handles.black,'Value',1)
     203end
     204% hObject    handle to white (see GCBO)
     205% eventdata  reserved - to be defined in a future version of MATLAB
     206% handles    structure with handles and user data (see GUIDATA)
     207
     208% Hint: get(hObject,'Value') returns toggle state of white
     209
     210
     211% --- Executes on button press in black.
     212function black_Callback(hObject, eventdata, handles)
     213val=get(handles.black,'Value');
     214if val
     215    set(handles.white,'Value',0)
     216else
     217    set(handles.white,'Value',1)
     218end
     219
Note: See TracChangeset for help on using the changeset viewer.