Changeset 173 for trunk


Ignore:
Timestamp:
Jan 5, 2011, 12:42:15 AM (14 years ago)
Author:
sommeria
Message:

small bug repair in uvmat, proj_field (.Mesh for mouse) and civ (undefined callbacks)

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r163 r173  
    34583458end
    34593459
    3460 %------------------------------------------------------------------------
    3461 function mask_civ1_Callback(hObject, eventdata, handles)
    3462 %------------------------------------------------------------------------
    3463 set(handles.mask_civ1,'UserData',[])
    3464 set(handles.mask_civ1,'String','')
    3465 
    3466 %------------------------------------------------------------------------
    3467 function mask_civ2_Callback(hObject, eventdata, handles)
    3468 %------------------------------------------------------------------------
    3469 set(handles.mask_civ2,'UserData',[])
    3470 set(handles.mask_civ2,'String','')
    3471 
    3472 %------------------------------------------------------------------------
    3473 function mask_fix1_Callback(hObject, eventdata, handles)
    3474 %------------------------------------------------------------------------
    3475 set(handles.mask_fix1,'UserData',[])
    3476 set(handles.mask_fix1,'String','')
    3477 
    3478 %------------------------------------------------------------------------
    3479 function mask_fix2_Callback(hObject, eventdata, handles)
    3480 %------------------------------------------------------------------------
    3481 set(handles.mask_fix2,'UserData',[])
    3482 set(handles.mask_fix2,'String','')
     3460% %------------------------------------------------------------------------
     3461% function mask_civ1_Callback(hObject, eventdata, handles)
     3462% %------------------------------------------------------------------------
     3463% set(handles.mask_civ1,'UserData',[])
     3464% set(handles.mask_civ1,'String','')
     3465%
     3466% %------------------------------------------------------------------------
     3467% function mask_civ2_Callback(hObject, eventdata, handles)
     3468% %------------------------------------------------------------------------
     3469% set(handles.mask_civ2,'UserData',[])
     3470% set(handles.mask_civ2,'String','')
     3471%
     3472% %------------------------------------------------------------------------
     3473% function mask_fix1_Callback(hObject, eventdata, handles)
     3474% %------------------------------------------------------------------------
     3475% set(handles.mask_fix1,'UserData',[])
     3476% set(handles.mask_fix1,'String','')
     3477%
     3478% %------------------------------------------------------------------------
     3479% function mask_fix2_Callback(hObject, eventdata, handles)
     3480% %------------------------------------------------------------------------
     3481% set(handles.mask_fix2,'UserData',[])
     3482% set(handles.mask_fix2,'String','')
    34833483
    34843484%------------------------------------------------------------------------
  • trunk/src/mouse_motion.m

    r158 r173  
    365365                hh=findobj('Tag','calib_points');%look for handle of calibration points
    366366               if ~isempty(hh) && ~isempty(get(hh,'UserData')) && get(hh_geometry_calib.edit_append,'Value')
    367                     index_point=get(hh,'UserData')
     367                    index_point=get(hh,'UserData');
    368368                    XCoord(index_point)=xy(1,1);
    369369                    YCoord(index_point)=xy(1,2);
  • trunk/src/proj_field.m

    r159 r173  
    998998ProjData.ListVarName={};
    999999ProjData.VarDimName={};
     1000if ~isequal(DX,0)&& ~isequal(DY,0)
     1001    ProjData.Mesh=sqrt(DX*DY);%define typical data mesh, useful for mouse selection in plots
     1002elseif isfield(FieldData,'Mesh')
     1003    ProjData.Mesh=FieldData.Mesh;
     1004end
    10001005
    10011006error=0;%default
Note: See TracChangeset for help on using the changeset viewer.