Changeset 193 for trunk/src/view_field.m
- Timestamp:
- Feb 20, 2011, 10:42:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r192 r193 266 266 267 267 %------------------------------------------------------------------- 268 % --- Executes on button press in 'Fix edLimits'.269 %------------------------------------------------------------------- 270 function Fix edLimits_Callback(hObject, eventdata, handles)271 test=get(handles.Fix edLimits,'Value');268 % --- Executes on button press in 'FixLimits'. 269 %------------------------------------------------------------------- 270 function FixLimits_Callback(hObject, eventdata, handles) 271 test=get(handles.FixLimits,'Value'); 272 272 if test 273 set(handles.Fix edLimits,'BackgroundColor',[1 1 0])273 set(handles.FixLimits,'BackgroundColor',[1 1 0]) 274 274 else 275 set(handles.Fix edLimits,'BackgroundColor',[0.7 0.7 0.7])276 end 277 278 %------------------------------------------------------------------- 279 % --- Executes on button press in auto_xy.280 function auto_xy_Callback(hObject, eventdata, handles)281 test=get(handles. auto_xy,'Value');275 set(handles.FixLimits,'BackgroundColor',[0.7 0.7 0.7]) 276 end 277 278 %------------------------------------------------------------------- 279 % --- Executes on button press in FixEqual. 280 function FixEqual_Callback(hObject, eventdata, handles) 281 test=get(handles.FixEqual,'Value'); 282 282 if test 283 set(handles. auto_xy,'BackgroundColor',[1 1 0])283 set(handles.FixEqual,'BackgroundColor',[1 1 0]) 284 284 cla(handles.axes3) 285 285 update_plot(handles) 286 286 else 287 set(handles. auto_xy,'BackgroundColor',[0.7 0.7 0.7])287 set(handles.FixEqual,'BackgroundColor',[0.7 0.7 0.7]) 288 288 update_plot(handles) 289 289 end … … 298 298 if (get(handles.zoom,'Value') == 1); 299 299 set(handles.zoom,'BackgroundColor',[1 1 0]) 300 set(handles.Fix edLimits,'Value',1)% propose by default fixed limits for the plotting axes301 set(handles.Fix edLimits,'BackgroundColor',[1 1 0])300 set(handles.FixLimits,'Value',1)% propose by default fixed limits for the plotting axes 301 set(handles.FixLimits,'BackgroundColor',[1 1 0]) 302 302 else 303 303 set(handles.zoom,'BackgroundColor',[0.7 0.7 0.7]) … … 532 532 function MinA_Callback(hObject, eventdata, handles) 533 533 %------------------------------------------ 534 set(handles. AutoScal,'Value',1) %suppress auto mode535 set(handles. AutoScal,'BackgroundColor',[1 1 0])534 set(handles.FixScal,'Value',1) %suppress auto mode 535 set(handles.FixScal,'BackgroundColor',[1 1 0]) 536 536 update_plot(handles) 537 537 … … 539 539 function MaxA_Callback(hObject, eventdata, handles) 540 540 %-------------------------------------------- 541 set(handles. AutoScal,'Value',1) %suppress auto mode542 set(handles. AutoScal,'BackgroundColor',[1 1 0])541 set(handles.FixScal,'Value',1) %suppress auto mode 542 set(handles.FixScal,'BackgroundColor',[1 1 0]) 543 543 update_plot(handles) 544 544 545 545 %----------------------------------------------- 546 function AutoScal_Callback(hObject, eventdata, handles)546 function FixScal_Callback(hObject, eventdata, handles) 547 547 %-------------------------------------------- 548 test=get(handles. AutoScal,'Value');548 test=get(handles.FixScal,'Value'); 549 549 if test 550 set(handles. AutoScal,'BackgroundColor',[1 1 0])550 set(handles.FixScal,'BackgroundColor',[1 1 0]) 551 551 else 552 set(handles. AutoScal,'BackgroundColor',[0.7 0.7 0.7])552 set(handles.FixScal,'BackgroundColor',[0.7 0.7 0.7]) 553 553 update_plot(handles); 554 554 % set(handles.MinA,'String',num2str(ScalOut.MinA,3)) … … 592 592 function VecScale_Callback(hObject, eventdata, handles) 593 593 %------------------------------------------------------------------- 594 set(handles. AutoVec,'Value',1);595 set(handles. AutoVec,'BackgroundColor',[1 1 0])596 update_plot(handles) 597 598 %------------------------------------------------------------------- 599 function AutoVec_Callback(hObject, eventdata, handles)600 %------------------------------------------------------------------- 601 test=get(handles. AutoVec,'Value');594 set(handles.FixVec,'Value',1); 595 set(handles.FixVec,'BackgroundColor',[1 1 0]) 596 update_plot(handles) 597 598 %------------------------------------------------------------------- 599 function FixVec_Callback(hObject, eventdata, handles) 600 %------------------------------------------------------------------- 601 test=get(handles.FixVec,'Value'); 602 602 if test 603 set(handles. AutoVec,'BackgroundColor',[1 1 0])603 set(handles.FixVec,'BackgroundColor',[1 1 0]) 604 604 else 605 605 update_plot(handles); 606 606 %set(handles.VecScale,'String',num2str(ScalOut.VecScale,3)) 607 set(handles. AutoVec,'BackgroundColor',[0.7 0.7 0.7])607 set(handles.FixVec,'BackgroundColor',[0.7 0.7 0.7]) 608 608 end 609 609 … … 819 819 820 820 821 822 823 824 function MinX_Callback(hObject, eventdata, handles) 825 % hObject handle to MinX (see GCBO) 826 % eventdata reserved - to be defined in a future version of MATLAB 827 % handles structure with handles and user data (see GUIDATA) 828 829 % Hints: get(hObject,'String') returns contents of MinX as text 830 % str2double(get(hObject,'String')) returns contents of MinX as a double 831 832 833 % --- Executes during object creation, after setting all properties. 834 function MinX_CreateFcn(hObject, eventdata, handles) 835 % hObject handle to MinX (see GCBO) 836 % eventdata reserved - to be defined in a future version of MATLAB 837 % handles empty - handles not created until after all CreateFcns called 838 839 % Hint: edit controls usually have a white background on Windows. 840 % See ISPC and COMPUTER. 841 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 842 set(hObject,'BackgroundColor','white'); 843 end 844 845 846 847 function MaxX_Callback(hObject, eventdata, handles) 848 % hObject handle to MaxX (see GCBO) 849 % eventdata reserved - to be defined in a future version of MATLAB 850 % handles structure with handles and user data (see GUIDATA) 851 852 % Hints: get(hObject,'String') returns contents of MaxX as text 853 % str2double(get(hObject,'String')) returns contents of MaxX as a double 854 855 856 % --- Executes during object creation, after setting all properties. 857 function MaxX_CreateFcn(hObject, eventdata, handles) 858 % hObject handle to MaxX (see GCBO) 859 % eventdata reserved - to be defined in a future version of MATLAB 860 % handles empty - handles not created until after all CreateFcns called 861 862 % Hint: edit controls usually have a white background on Windows. 863 % See ISPC and COMPUTER. 864 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 865 set(hObject,'BackgroundColor','white'); 866 end 867 868 869 870 function MinY_Callback(hObject, eventdata, handles) 871 % hObject handle to MinY (see GCBO) 872 % eventdata reserved - to be defined in a future version of MATLAB 873 % handles structure with handles and user data (see GUIDATA) 874 875 % Hints: get(hObject,'String') returns contents of MinY as text 876 % str2double(get(hObject,'String')) returns contents of MinY as a double 877 878 879 % --- Executes during object creation, after setting all properties. 880 function MinY_CreateFcn(hObject, eventdata, handles) 881 % hObject handle to MinY (see GCBO) 882 % eventdata reserved - to be defined in a future version of MATLAB 883 % handles empty - handles not created until after all CreateFcns called 884 885 % Hint: edit controls usually have a white background on Windows. 886 % See ISPC and COMPUTER. 887 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 888 set(hObject,'BackgroundColor','white'); 889 end 890 891 892 893 function MaxY_Callback(hObject, eventdata, handles) 894 % hObject handle to MaxY (see GCBO) 895 % eventdata reserved - to be defined in a future version of MATLAB 896 % handles structure with handles and user data (see GUIDATA) 897 898 % Hints: get(hObject,'String') returns contents of MaxY as text 899 % str2double(get(hObject,'String')) returns contents of MaxY as a double 900 901 902 % --- Executes during object creation, after setting all properties. 903 function MaxY_CreateFcn(hObject, eventdata, handles) 904 % hObject handle to MaxY (see GCBO) 905 % eventdata reserved - to be defined in a future version of MATLAB 906 % handles empty - handles not created until after all CreateFcns called 907 908 % Hint: edit controls usually have a white background on Windows. 909 % See ISPC and COMPUTER. 910 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 911 set(hObject,'BackgroundColor','white'); 912 end 913 914
Note: See TracChangeset
for help on using the changeset viewer.