Changeset 206 for trunk/src/set_object.m
- Timestamp:
- Feb 27, 2011, 10:40:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r204 r206 80 80 81 81 %default 82 if ~exist('ZBound ','var')83 ZBound =0; %default82 if ~exist('ZBounds','var') 83 ZBounds=0; %default 84 84 end 85 85 set(hObject,'KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function (allow action on uvmat when set_object is in front) … … 177 177 set(handles.ZMax,'String',num2str(max(data.RangeZ),3)) 178 178 DZ=max(data.RangeZ);%slider step 179 if ZBounds(2)~=ZBounds(1)179 if ~isnan(ZBounds(1)) && ZBounds(2)~=ZBounds(1) 180 180 rel_step(1)=min(DZ/(ZBounds(2)-ZBounds(1)),0.2);%must be smaller than 1 181 181 rel_step(2)=0.1; … … 422 422 set(handles.DY,'Visible','off') 423 423 end 424 if isequal(ObjectStyle,'volume') &&isequal(ProjMode,'interp')424 if isequal(ProjMode,'interp') 425 425 set(handles.DZ,'Visible','on') 426 426 end … … 433 433 set(handles.XObject,'TooltipString',['XObject: x coordinate of the axis origin for the ' ObjectStyle]) 434 434 set(handles.YObject,'TooltipString',['YObject: y coordinate of the axis origin for the ' ObjectStyle]) 435 if test3D435 % if test3D 436 436 set(handles.Theta,'Visible','on') 437 437 set(handles.Psi,'Visible','on') 438 438 set(handles.ZMin,'Visible','on') 439 439 set(handles.ZMax,'Visible','on') 440 end440 % end 441 441 if isequal(ProjMode,'interp')|| isequal(ProjMode,'filter') 442 442 set(handles.DX,'Visible','on') 443 443 set(handles.DY,'Visible','on') 444 set(handles.DZ,'Visible','on') 444 445 else 445 446 set(handles.DX,'Visible','off') 446 447 set(handles.DY,'Visible','off') 447 end 448 if isequal(ObjectStyle,'volume') && isequal(ProjMode,'interp') 449 set(handles.DZ,'Visible','on') 448 set(handles.DZ,'Visible','off') 450 449 end 451 450 end … … 775 774 776 775 %% plot the field projected on the object and store in the corresponding figue 777 ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData 776 'TESTproj' 777 ProjData= proj_field(UvData.Field,ObjectData)%project the current interface field on ObjectData 778 778 PlotParam=read_plot_param(PlotHandles); 779 779 [PlotType,Object_out{IndexObj}.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotParam);%update an existing field plot
Note: See TracChangeset
for help on using the changeset viewer.