Changeset 72 for trunk/src/uvmat.m
- Timestamp:
- Mar 30, 2010, 11:03:42 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r71 r72 1603 1603 1604 1604 while get(handles.speed,'Value')~=0 & isequal(get(handles.RunMovie,'BusyAction'),'queue') % enable STOP command 1605 runpm(hObject,eventdata,handles,increment) 1605 errormsg=runpm(hObject,eventdata,handles,increment); 1606 if ~isempty(errormsg) 1607 return 1608 end 1606 1609 pause(1.02-get(handles.speed,'Value'))% wait for next image 1607 1610 end … … 1622 1625 1623 1626 %------------------------------------------------------------------ 1624 function runpm(hObject,eventdata,handles,increment)1627 function errormsg=runpm(hObject,eventdata,handles,increment) 1625 1628 %------------------------------------------------------------------ 1626 1629 %check for mùovie pair status … … 2411 2414 %Zvar=DimVarIndex(DimIndex(1)); 2412 2415 %Zvar=DimVarIndex(1); 2413 Zvar=VarType{imax}.coord_3;2414 if Zvar~=0% z is a dimension variable2415 ZName=UvData.Field.ListVarName{ Zvar};2416 % Zvar=VarType{imax}.coord_3; 2417 if isfield(VarType{imax},'coord_3')&& ~isequal(VarType{imax}.coord_3,0) % z is a dimension variable 2418 ZName=UvData.Field.ListVarName{VarType{imax}.coord_3} 2416 2419 eval(['UvData.ZMax=max(UvData.Field.' ZName ');']) 2417 2420 eval(['UvData.ZMin=min(UvData.Field.' ZName ');']) … … 2486 2489 ZBounds(1)=UvData.ZMin; %minimum for the Z slider 2487 2490 ZBounds(2)=UvData.ZMax;%maximum for the Z slider 2491 UvData.Object{1}.Name='1-PLANE'; 2492 UvData.Object{1}.enable_plot=1; 2488 2493 set_object(UvData.Object{1},PlotHandles,ZBounds); 2489 2494 set(handles.list_object_1,'Value',1); … … 4759 4764 UvData.MouseAction='create_object'; 4760 4765 set(handles.uvmat,'UserData',UvData) 4766 set(handles.delete_object,'Visible','on') 4767 set(handles.uvmat_title,'Visible','on') 4768 set(handles.viw_field_title,'Visible','on') 4761 4769 4762 4770 %------------------------------------------------------------------------ … … 4803 4811 [hset_object,UvData.sethandles]=set_object(data,PlotHandles);% call the set_object interface 4804 4812 4805 pos_uvmat=get(handles.uvmat,'Position');4806 % position the set_object GUI with respect to uvmat4807 if isfield(UvData,'SetObjectOrigin')4808 pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2);4809 pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4);4810 set(hset_object,'Position',pos_set_object)4811 end4813 % pos_uvmat=get(handles.uvmat,'Position'); 4814 % %position the set_object GUI with respect to uvmat 4815 % if isfield(UvData,'SetObjectOrigin') 4816 % pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2); 4817 % pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4); 4818 % set(hset_object,'Position',pos_set_object) 4819 % end 4812 4820 4813 4821 UvData.MouseAction='create_object'; … … 4815 4823 set(handles.zoom,'Value',0) 4816 4824 zoom_Callback(handles.uvmat, [], handles) 4825 set(handles.delete_object,'Visible','on') 4826 set(handles.uvmat_title,'Visible','on') 4827 set(handles.viw_field_title,'Visible','on') 4817 4828 4818 4829 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.