Changeset 379 for trunk/src/mouse_down.m
- Timestamp:
- Jan 27, 2012, 1:59:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r342 r379 90 90 if xy_fig(1) >=obj_pos(1) & xy_fig(2) >= obj_pos(2)& xy_fig(1) <=obj_pos(1)+obj_pos(3) & xy_fig(2) <= obj_pos(2)+obj_pos(4); 91 91 htype=get(hchild,'Type');%type of object child of the current figure 92 93 92 switch htype 94 93 %if the mouse is over an axis, look at the data … … 169 168 170 169 %% delete the current zoom rectangle 171 if isfield(AxeData,'CurrentRectZoom') & ishandle(AxeData.CurrentRectZoom)170 if isfield(AxeData,'CurrentRectZoom') && ishandle(AxeData.CurrentRectZoom) 172 171 delete(AxeData.CurrentRectZoom) 173 172 AxeData.CurrentRectZoom=[]; … … 294 293 hset_object=findobj(allchild(0),'tag','set_object'); 295 294 if ~isempty(hset_object) 296 sethandles=guidata(hset_object);297 ObjectData=read_ set_object(sethandles); %read object features in the GUI set_object295 %ObjectData=read_set_object(sethandles); %read object features in the GUI set_object 296 ObjectData=read_GUI(hset_object); 298 297 ObjectData.Coord=[]; %reset previous object coordinates 299 298 ObjectData.Coord(1,1)=xy(1,1); 300 299 ObjectData.Coord(1,2)=xy(1,2); 301 ObjectData.Coord(1,3)=0;300 % ObjectData.Coord(1,3)=0; 302 301 if isfield(AxeData,'ObjectCoord') & size(AxeData.ObjectCoord,2)==3 303 302 ObjectData.Coord(1,3)=AxeData.ObjectCoord(1,3); %generaliser au cas avec angle … … 314 313 set(hhuvmat.ListObject,'Value',[IndexObj_old(1) IndexObj] ); 315 314 UvData.Object{IndexObj}.DisplayHandle_uvmat=AxeData.CurrentObject; 316 object_name=get(sethandles.TITLE,'String'); 317 if isempty(object_name)|| strcmp(object_name,'') 318 list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Style]; 319 set(sethandles.TITLE,'String',list_str{IndexObj}) 315 object_name=ObjectData.Name; 316 sethandles=guidata(hset_object); 317 if isempty(object_name) 318 list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Type]; 319 set(sethandles.Name,'String',list_str{IndexObj}) 320 320 else 321 321 list_str{IndexObj}=object_name;
Note: See TracChangeset
for help on using the changeset viewer.