Changeset 102 for trunk/src/mouse_down.m
- Timestamp:
- Jun 13, 2010, 11:32:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r87 r102 142 142 end 143 143 ObjectData=get(AxeData.CurrentObject,'UserData'); 144 if test_edit & isfield(ObjectData,'IndexObj')144 if test_edit && isfield(ObjectData,'IndexObj') 145 145 hother=findobj('Tag','proj_object','Type','line');%find all the proj objects 146 146 set(hother,'Color','b');%reset all the proj objects in 'blue' by default … … 184 184 if strcmp(get(hcurrentfig,'tag'),'uvmat') %if the uvmat graph has been selected, object projection is on the other frame view_field 185 185 set(hhuvmat.list_object_2,'Value',IndexObj); 186 list_str=get(hhuvmat.list_object_2,'String'); 187 UvData.Object{IndexObj}.Name=list_str{IndexObj}; 186 188 else 187 189 set(hhuvmat.list_object_1,'Value',IndexObj); 188 end 190 list_str=get(hhuvmat.list_object_1,'String'); 191 UvData.Object{IndexObj}.Name=list_str{IndexObj}; 192 end 193 h_set_object=findobj(allchild(0),'Tag','set_object'); 194 if ~isempty(h_set_object) 195 delete(h_set_object) 196 end 197 set_object(UvData.Object{IndexObj}) 198 axes(haxes);%set back the current axes haxes 189 199 testdeform=0; 190 200 set(gcbo,'Pointer','circle'); … … 229 239 set(huvmat,'UserData',UvData) 230 240 list_str=get(hhuvmat.list_object_1,'String'); 231 list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Style]; 241 object_name=get(UvData.sethandles.TITLE,'String') 242 if isempty(object_name)|| strcmp(object_name,'') 243 list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Style]; 244 set(UvData.sethandles.TITLE,'String',list_str{IndexObj}) 245 else 246 list_str{IndexObj}=object_name; 247 end 232 248 set(hhuvmat.list_object_1,'String',list_str) 233 249 list_str{end+1}='...'; … … 323 339 [PlotType,ScalOut]= plot_field(AxeData,haxes,PlotParam,1); 324 340 end 325 326 327 341 set(haxes,'UserData',AxeData); 328 342 329 %------------------------------------------------------330 function update_plot(AxeData,haxes)331 %--------------------------------------------332 333 334 % %determine the axes of action of the set_edit interface335 % % haxes= findobj(huvmat,'Tag','axes3'); %main plotting axes as default336 % % AxeData=get(haxes,'UserData')337 % %For vector field representation338 % PlotHandles.auto_xy=findobj(huvmat,'Tag','auto_xy');339 % PlotHandles.VecScale=findobj(huvmat,'Tag','VecScale');340 % PlotHandles.AutoVec=findobj(huvmat,'Tag','AutoVec');341 % PlotHandles.checkyellow=findobj(huvmat,'Tag','checkyellow');342 % PlotHandles.checkblack=findobj(huvmat,'Tag','checkblack');343 % PlotHandles.col_vec=findobj(huvmat,'Tag','col_vec');344 % PlotHandles.colcode1=findobj(huvmat,'Tag','colcode1');345 % PlotHandles.colcode2=findobj(huvmat,'Tag','colcode2');346 % PlotHandles.vec_col_bar=findobj(huvmat,'Tag','vec_col_bar');347 % PlotHandles.slider1=findobj(huvmat,'Tag','slider1');348 % PlotHandles.slider2=findobj(huvmat,'Tag','slider2');349 % PlotHandles.max_vec=findobj(huvmat,'Tag','max_vec');350 % PlotHandles.min_vec=findobj(huvmat,'Tag','min_vec');351 % PlotHandles.AutoVecColor=findobj(huvmat,'Tag','AutoVecColor');352 % PlotHandles.decimate4=findobj(huvmat,'Tag','decimate4');353 %354 % %vectors355 % Vectors.VecScale=str2num(get(PlotHandles.VecScale,'String'));356 % Vectors.AutoVec=get(PlotHandles.AutoVec,'Value');%automatic vector length357 % Vectors.checkyellow=get(PlotHandles.checkyellow,'Value');358 % Vectors.checkblack=get(PlotHandles.checkblack,'Value');359 % Vectors.decimate4=get(PlotHandles.decimate4,'Value');% =1; for reducing the nbre of vectors360 % menu_col=get(PlotHandles.col_vec,'String');361 % menu_val=get(PlotHandles.col_vec,'Value');362 % Vectors.CName=menu_col{menu_val}; %'ima_cor','black','white',...363 % Vectors.colcode1=str2num(get(PlotHandles.colcode1,'String'));% first threshold for rgb, first value for'continuous'364 % Vectors.colcode2=str2num(get(PlotHandles.colcode2,'String'));% second threshold for rgb, last value (saturation) for 'continuous'365 % Vectors.option=get(PlotHandles.vec_col_bar,'Value'); % =1 (64 colors), =0 (3 colors)366 % Vectors.min=get(PlotHandles.slider1,'Min');367 % Vectors.max=get(PlotHandles.slider1,'Max');368 % Vectors.auto=get(PlotHandles.AutoVecColor,'Value');% =1; thresholds scaling relative to min and max, =0 fixed thresholds369 % PlotParam.Vectors=Vectors;370
Note: See TracChangeset
for help on using the changeset viewer.