Changeset 35
- Timestamp:
- Mar 4, 2010, 8:59:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r11 r35 276 276 if test_edit_vect & ~isempty(ivec) 277 277 % FF_100=FF-100*double(uint(abs(FF)/100); %value of FF without units and dizaines 278 if ~ isfield(AxeData,'FF')278 if ~(isfield(AxeData,'FF')&& ~isempty(AxeData.FF)) 279 279 AxeData.FF=zeros(size(AxeData.X)); 280 280 end 281 281 if isequal(AxeData.FF(ivec),0) 282 283 282 AxeData.FF(ivec)=100; %mark vector #ivec as false 284 285 283 else 286 284 AxeData.FF(ivec)=0; 287 285 end 288 set(haxes,'UserData',AxeData)289 update_plot286 PlotParam=read_plot_param(hhuvmat); 287 [PlotType,ScalOut]= plot_field(AxeData,haxes,PlotParam,1); 290 288 end 291 289 end … … 293 291 294 292 %------------------------------------------------------ 295 function update_plot 293 function update_plot(AxeData,haxes) 296 294 %-------------------------------------------- 297 huvmat=gcbf; 298 UvData=get(gcbf,'UserData'); 299 %determine the axes of action of the set_edit interface 300 % list_axes=get(handles.MenuAxes,'String');% list menu fields 301 % index_axes=get(handles.MenuAxes,'Value');% selected string index 302 % current_axes= list_axes{index_axes(1)} % selected string 303 % eval(['haxes=UvData.' current_axes '.Axes']); 304 % if isempty(haxes)|~ishandle(haxes)| ~isequal(get(haxes,'Type'),'axes') 305 haxes= findobj(huvmat,'Tag','axes3'); %main plotting axes as default 306 % set(handles.MenuAxes,'Value',1) 307 % end 308 AxeData=get(haxes,'UserData'); 309 %For vector field representation 310 %NEW 311 PlotHandles.VecScale=findobj(huvmat,'Tag','VecScale'); 312 PlotHandles.AutoVec=findobj(huvmat,'Tag','AutoVec'); 313 PlotHandles.checkyellow=findobj(huvmat,'Tag','checkyellow'); 314 PlotHandles.checkblack=findobj(huvmat,'Tag','checkblack'); 315 PlotHandles.col_vec=findobj(huvmat,'Tag','col_vec'); 316 PlotHandles.colcode1=findobj(huvmat,'Tag','colcode1'); 317 PlotHandles.colcode2=findobj(huvmat,'Tag','colcode2'); 318 PlotHandles.vec_col_bar=findobj(huvmat,'Tag','vec_col_bar'); 319 PlotHandles.slider1=findobj(huvmat,'Tag','slider1'); 320 PlotHandles.slider2=findobj(huvmat,'Tag','slider2'); 321 PlotHandles.max_vec=findobj(huvmat,'Tag','max_vec'); 322 PlotHandles.min_vec=findobj(huvmat,'Tag','min_vec'); 323 PlotHandles.AutoVecColor=findobj(huvmat,'Tag','AutoVecColor'); 324 PlotHandles.decimate4=findobj(huvmat,'Tag','decimate4'); 325 326 %vectors 327 Vectors.VecScale=str2num(get(PlotHandles.VecScale,'String')); 328 Vectors.AutoVec=get(PlotHandles.AutoVec,'Value');%automatic vector length 329 Vectors.checkyellow=get(PlotHandles.checkyellow,'Value'); 330 Vectors.checkblack=get(PlotHandles.checkblack,'Value'); 331 Vectors.decimate4=get(PlotHandles.decimate4,'Value');% =1; for reducing the nbre of vectors 332 menu_col=get(PlotHandles.col_vec,'String'); 333 menu_val=get(PlotHandles.col_vec,'Value'); 334 Vectors.CName=menu_col{menu_val}; %'ima_cor','black','white',... 335 Vectors.colcode1=str2num(get(PlotHandles.colcode1,'String'));% first threshold for rgb, first value for'continuous' 336 Vectors.colcode2=str2num(get(PlotHandles.colcode2,'String'));% second threshold for rgb, last value (saturation) for 'continuous' 337 Vectors.option=get(PlotHandles.vec_col_bar,'Value'); % =1 (64 colors), =0 (3 colors) 338 Vectors.min=get(PlotHandles.slider1,'Min'); 339 Vectors.max=get(PlotHandles.slider1,'Max'); 340 Vectors.auto=get(PlotHandles.AutoVecColor,'Value');% =1; thresholds scaling relative to min and max, =0 fixed thresholds 341 PlotParam.Vectors=Vectors; 342 343 [PlotType,ScalOut]= plot_field(AxeData,haxes,PlotParam,1); 295 296 297 % %determine the axes of action of the set_edit interface 298 % % haxes= findobj(huvmat,'Tag','axes3'); %main plotting axes as default 299 % % AxeData=get(haxes,'UserData') 300 % %For vector field representation 301 % PlotHandles.auto_xy=findobj(huvmat,'Tag','auto_xy'); 302 % PlotHandles.VecScale=findobj(huvmat,'Tag','VecScale'); 303 % PlotHandles.AutoVec=findobj(huvmat,'Tag','AutoVec'); 304 % PlotHandles.checkyellow=findobj(huvmat,'Tag','checkyellow'); 305 % PlotHandles.checkblack=findobj(huvmat,'Tag','checkblack'); 306 % PlotHandles.col_vec=findobj(huvmat,'Tag','col_vec'); 307 % PlotHandles.colcode1=findobj(huvmat,'Tag','colcode1'); 308 % PlotHandles.colcode2=findobj(huvmat,'Tag','colcode2'); 309 % PlotHandles.vec_col_bar=findobj(huvmat,'Tag','vec_col_bar'); 310 % PlotHandles.slider1=findobj(huvmat,'Tag','slider1'); 311 % PlotHandles.slider2=findobj(huvmat,'Tag','slider2'); 312 % PlotHandles.max_vec=findobj(huvmat,'Tag','max_vec'); 313 % PlotHandles.min_vec=findobj(huvmat,'Tag','min_vec'); 314 % PlotHandles.AutoVecColor=findobj(huvmat,'Tag','AutoVecColor'); 315 % PlotHandles.decimate4=findobj(huvmat,'Tag','decimate4'); 316 % 317 % %vectors 318 % Vectors.VecScale=str2num(get(PlotHandles.VecScale,'String')); 319 % Vectors.AutoVec=get(PlotHandles.AutoVec,'Value');%automatic vector length 320 % Vectors.checkyellow=get(PlotHandles.checkyellow,'Value'); 321 % Vectors.checkblack=get(PlotHandles.checkblack,'Value'); 322 % Vectors.decimate4=get(PlotHandles.decimate4,'Value');% =1; for reducing the nbre of vectors 323 % menu_col=get(PlotHandles.col_vec,'String'); 324 % menu_val=get(PlotHandles.col_vec,'Value'); 325 % Vectors.CName=menu_col{menu_val}; %'ima_cor','black','white',... 326 % Vectors.colcode1=str2num(get(PlotHandles.colcode1,'String'));% first threshold for rgb, first value for'continuous' 327 % Vectors.colcode2=str2num(get(PlotHandles.colcode2,'String'));% second threshold for rgb, last value (saturation) for 'continuous' 328 % Vectors.option=get(PlotHandles.vec_col_bar,'Value'); % =1 (64 colors), =0 (3 colors) 329 % Vectors.min=get(PlotHandles.slider1,'Min'); 330 % Vectors.max=get(PlotHandles.slider1,'Max'); 331 % Vectors.auto=get(PlotHandles.AutoVecColor,'Value');% =1; thresholds scaling relative to min and max, =0 fixed thresholds 332 % PlotParam.Vectors=Vectors; 333
Note: See TracChangeset
for help on using the changeset viewer.