Changeset 650 for trunk/src/mouse_down.m
- Timestamp:
- Jun 17, 2013, 6:46:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r627 r650 59 59 UvData=get(huvmat,'UserData'); 60 60 test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on');%test for ruler action, second priority; 61 test_edit=get(hhuvmat. edit_object,'Value')&& (isequal(obj_tag,'proj_object')||isequal(obj_tag,'DeformPoint'));%test for object editing, third priority61 test_edit=get(hhuvmat.CheckEditObject,'Value')&& (isequal(obj_tag,'proj_object')||isequal(obj_tag,'DeformPoint'));%test for object editing, third priority 62 62 hset_object=findobj(allchild(0),'tag','set_object'); 63 63 if ~isempty(hset_object) 64 64 hPLOT=findobj(hset_object,'tag','PLOT'); 65 test_create=strcmp(get(hPLOT,'enable'),'on') &&~get(hhuvmat. edit_object,'Value');% create new object if set_object is in mode enable and uvmat not in mode 'edit_object'65 test_create=strcmp(get(hPLOT,'enable'),'on') &&~get(hhuvmat.CheckEditObject,'Value');% create new object if set_object is in mode enable and uvmat not in mode 'EditObject' 66 66 end 67 67 test_edit_vect=get(hhuvmat.edit_vect,'Value') && ~test_create && ~(isequal(obj_tag,'proj_object')||isequal(obj_tag,'DeformPoint')) ;%test for vector editing, priority 4 … … 370 370 UvData.ProjObject{IndexObj}.DisplayHandle.uvmat=hhuvmat.PlotAxes; % axes for plot_object 371 371 UvData.ProjObject{IndexObj}.DisplayHandle.view_field=[]; %no plot handle before plot_field operation 372 set(hhuvmat. ViewObject,'Value',1)372 set(hhuvmat.CheckViewObject,'Value',1) 373 373 end 374 374 ObjectData.Coord=[ObjectData.Coord ;xy(1,1:2)];% append the coordinates marked by the mouse to the object
Note: See TracChangeset
for help on using the changeset viewer.