Changeset 701 for trunk/src/mouse_up.m
- Timestamp:
- Dec 13, 2013, 10:51:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r699 r701 96 96 if size(ObjectData.Coord,1)==1 % this is the mouse up for the first point, continue until next click 97 97 check_multiple=1; 98 else99 %ObjectData.Coord=[ObjectData.Coord ;CurrentOrigin];% append the second point of the line (the last pointed position during mouse down)100 98 end 101 99 case {'rectangle','ellipse','volume'} 102 % if size(ObjectData.Coord,1)==1 % this is the mouse up for the first point, continue until next click103 % check_multiple=1;104 % else105 100 ObjectData.Coord=(CurrentOrigin+xy(1,1:2))/2;% keep only the first point coordinate 106 101 ObjectData.RangeX=abs(ObjectData.Coord(1,1)-xy(1,1));%rectangle width … … 109 104 check_multiple=1;% pass to next mous up if width of height=0 110 105 end 111 % ObjectData.Coord(1,1)=(xy(1,1)+XYData(1))/2;%origin rectangle, x coordinate112 % ObjectData.Coord(1,2)=(xy(1,2)+XYData(2))/2;113 % ObjectData.RangeX=abs(xy(1,1)-XYData(1))/2;%rectangle width114 % ObjectData.RangeY=abs(xy(1,2)-XYData(2))/2;%rectangle height115 % end116 106 case 'plane' %case of 'plane' 117 107 DX=(xy(1,1)-ObjectData.Coord(1,1)); … … 130 120 131 121 %show object coordinates in the GUI set_object 132 % h_set_object=findobj(allchild(0),'Tag','set_object');133 % hh_set_object=guidata(h_set_object);134 % set(hh_set_object.Coord,'Data',ObjectData.Coord);135 122 if strcmp(ObjectData.Type,'rectangle')||strcmp(ObjectData.Type,'ellipse') 136 123 set(hh_set_object.num_RangeX_2,'String',num2str(ObjectData.RangeX,4)); … … 179 166 end 180 167 set(hhuvmat.CheckViewField,'Value',1);% 181 set(hhuvmat.CheckEditObject,'Value',1);% 168 set(hhuvmat.CheckEditObject,'Value',1);% 169 set(hhuvmat.MenuObject,'checked','off'); %desactivate object creation mode 182 170 set(hhuvmat.CheckEditObject,'Enable','on');% 183 171 set(get(h_set_object,'children'),'Enable','on')
Note: See TracChangeset
for help on using the changeset viewer.