- Timestamp:
- Dec 12, 2013, 3:58:02 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r698 r699 978 978 set(handles.APPLY,'BackgroundColor',[1 0 1]) 979 979 980 figure(10)981 hold off982 imagesc(Amod)983 hold on984 plot(Tmod(:,1),Tmod(:,2),'+')980 % figure(10) 981 % hold off 982 % imagesc(Amod) 983 % hold on 984 % plot(Tmod(:,1),Tmod(:,2),'+') 985 985 986 986 … … 1238 1238 hh=findobj('Tag','calib_points'); 1239 1239 if ~isempty(Coord) && isempty(hh) 1240 hh=line(Coord_plot(:,1),Coord_plot(:,2),'Color','m','Tag','calib_points','LineStyle','.','Marker','+' );1240 hh=line(Coord_plot(:,1),Coord_plot(:,2),'Color','m','Tag','calib_points','LineStyle','.','Marker','+','MarkerSize',10); 1241 1241 elseif isempty(Coord)%empty list of points, suppress the plot 1242 1242 delete(hh) -
trunk/src/mouse_motion.m
r693 r699 109 109 test_zoom_draw=test_draw && isequal(AxeData.Drawing,'zoom')&& isfield(AxeData,'CurrentOrigin') && isequal(get(gcf,'SelectionType'),'normal'); 110 110 test_object=test_draw && isfield(AxeData,'CurrentObject') && ~isempty(AxeData.CurrentObject) && ishandle(AxeData.CurrentObject); 111 if ~test_edit_object && ~test_ruler && ~CheckZoom 112 pointershape='crosshair';%set pointer with cross shape (default when mouse is over an axis) 111 if ~test_edit_object && ~test_ruler 112 if CheckZoom 113 pointershape='zoom'; 114 elseif CheckZoomFig 115 pointershape='zoomfig'; 116 elseif test_draw 117 pointershape='crosshair';%set pointer with cross shape (default when mouse is over an axis) 118 else 119 pointershape='fullcross';%set pointer with cross shape (default when mouse is over an axis) 120 end 113 121 end 114 122 FigData=get(hCurrentFig,'UserData'); … … 445 453 446 454 %% update the mouse pointer 455 if strcmp(pointershape,'zoom')||strcmp(pointershape,'zoomfig') 456 CData=set_pointershape(pointershape); 457 set(hCurrentFig,'Pointer','custom','PointerShapeCData',CData,'PointerShapeHotSpot',[9 9]) 458 else 447 459 set(hCurrentFig,'Pointer',pointershape); 460 end 461 462 function CData=set_pointershape(pointershape) 463 CData=ones(16,16); 464 [ind_x,ind_y]=meshgrid([1:16],[1:16]); 465 if strcmp(pointershape,'zoom') 466 radius=(ind_x-9).*(ind_x-9)+(ind_y-8.5).*(ind_y-9); 467 CData(radius<25 & radius>16)=2; %make white circle 468 CData(radius<16 | radius>40)=NaN; %make the centre transparent 469 CData(16,16)=1; CData(15,16)=2; 470 CData(15,15)=1; CData(14,15)=2; 471 CData(14,14)=1; CData(13,14)=2; 472 CData(13,13)=1; CData(12,13)=2; 473 elseif strcmp(pointershape,'zoomfig') 474 CData(:,1:3)=2; 475 CData(:,14:16)=2; 476 CData(1:3,:)=2; 477 CData(14:16,:)=2; 478 CData(CData==1)=NaN; 479 end -
trunk/src/mouse_up.m
r682 r699 39 39 testsubplot=0; 40 40 end 41 %set(get(hcurrentfig,'CurrentObject'),'Selected','off') 42 41 43 CurrentOrigin=[]; 42 44 if isfield(AxeData,'CurrentOrigin') … … 57 59 return 58 60 end 61 59 62 xy=get(hcurrentaxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates 60 63 … … 63 66 if ~isempty(huvmat) && isfield(AxeData,'Drawing') && ~isequal(AxeData.Drawing,'off') && isfield(AxeData,'CurrentObject')... 64 67 && ~isempty(AxeData.CurrentObject) && ishandle(AxeData.CurrentObject) 68 set(AxeData.CurrentObject,'Selected','off') 65 69 PlotData=get(AxeData.CurrentObject,'UserData');%get data attached to the current projection object 66 70 IndexObj=PlotData.IndexObj; -
trunk/src/uvmat.m
r693 r699 2825 2825 function CheckZoom_Callback(hObject, eventdata, handles) 2826 2826 2827 if get(handles.CheckZoom,'Value') 2828 set(handles.CheckFixLimits,'Value',1)% propose by default fixed limits for the plotting axes 2829 set(handles.CheckZoomFig,'Value',0)%desactivate zoom fig 2830 end 2827 if get(handles.CheckZoom,'Value') 2828 set(handles.CheckFixLimits,'Value',1)% propose by default fixed limits for the plotting axes 2829 set(handles.CheckZoomFig,'Value',0)%desactivate zoom fig 2830 end 2831 2831 2832 2832 2833 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.