Changeset 102 for trunk/src/view_field.m
- Timestamp:
- Jun 13, 2010, 11:32:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r99 r102 82 82 set(hObject,'Position',pos_view_field) 83 83 84 85 86 84 %functions for the mouse and keyboard 87 85 set(hObject,'KeyPressFcn',{'keyboard_callback',handles_mouse})%set keyboard action function … … 91 89 set(hObject,'CloseRequestFcn',{@closefcn})% 92 90 93 [PlotType,PlotParamOut ,haxes]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)91 [PlotType,PlotParamOut]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar) 94 92 set(handles.axes3,'UserData',Field);%store the current field 95 93 if isfield(PlotParamOut,'Vectors') … … 690 688 set(handles.vec_col_bar,'Cdata',A) 691 689 692 693 690 %------------------------------------------------------------------- 694 691 function [PlotType,ScalOut]=update_plot(handles) 695 692 %------------------------------------------------------------------- 696 693 haxes= handles.axes3; 697 huvmat=findobj(allchild(0),'tag','uvmat');694 %huvmat=findobj(allchild(0),'tag','uvmat'); 698 695 ProjField=get(haxes,'UserData'); 699 %700 % AxeData=get(haxes,'UserData');701 696 PlotParam=read_plot_param(handles); 702 697 [PlotType,PlotParamOut]= plot_field(ProjField,haxes,PlotParam,1); … … 708 703 function MenuExportField_Callback(hObject, eventdata, handles) 709 704 710 global CurData711 huvmat=findobj(allchild(0),'Name','uvmat');712 UvData=get(huvmat,'UserData');713 CurData=UvData.ProjField_2;714 evalin('base','global CurData')%make CurData global in the workspace705 global Data_view_field 706 % huvmat=findobj(allchild(0),'Name','uvmat'); 707 Data_view_field=get(handles.axes3,'UserData'); 708 % Data_view_field=UvData.ProjField_2; 709 evalin('base','global Data_view_field')%make CurData global in the workspace 715 710 display(['UserData of view_field :']) 716 evalin('base',' CurData') %display CurData in the workspace711 evalin('base','Data_view_field') %display CurData in the workspace 717 712 commandwindow; 718 713 … … 753 748 754 749 755 function edit88_Callback(hObject, eventdata, handles)756 757 758 759 % --- Executes on button press in AutoScal.760 function checkbox40_Callback(hObject, eventdata, handles)761 % hObject handle to AutoScal (see GCBO)762 % eventdata reserved - to be defined in a future version of MATLAB763 % handles structure with handles and user data (see GUIDATA)764 765 % Hint: get(hObject,'Value') returns toggle state of AutoScal766 767 768 769 function edit82_Callback(hObject, eventdata, handles)770 771 772 773 function edit83_Callback(hObject, eventdata, handles)774 % hObject handle to min_vec (see GCBO)775 % eventdata reserved - to be defined in a future version of MATLAB776 % handles structure with handles and user data (see GUIDATA)777 778 % Hints: get(hObject,'String') returns contents of min_vec as text779 % str2double(get(hObject,'String')) returns contents of min_vec as a double780 781 750 782 751 % --- Executes on slider movement. … … 799 768 % get(hObject,'Min') and get(hObject,'Max') to determine range of 800 769 % slider 801 802 803 % --- Executes on button press in AutoVecColor.804 function checkbox41_Callback(hObject, eventdata, handles)805 % hObject handle to AutoVecColor (see GCBO)806 % eventdata reserved - to be defined in a future version of MATLAB807 % handles structure with handles and user data (see GUIDATA)808 809 % Hint: get(hObject,'Value') returns toggle state of AutoVecColor810 811 812 function edit89_Callback(hObject, eventdata, handles)813 % hObject handle to max_vec (see GCBO)814 % eventdata reserved - to be defined in a future version of MATLAB815 % handles structure with handles and user data (see GUIDATA)816 817 % Hints: get(hObject,'String') returns contents of max_vec as text818 % str2double(get(hObject,'String')) returns contents of max_vec as a double819 820 821 function edit90_Callback(hObject, eventdata, handles)822 % hObject handle to colcode2 (see GCBO)823 % eventdata reserved - to be defined in a future version of MATLAB824 % handles structure with handles and user data (see GUIDATA)825 826 % Hints: get(hObject,'String') returns contents of colcode2 as text827 % str2double(get(hObject,'String')) returns contents of colcode2 as a double828 829 830 770 831 771 … … 839 779 840 780 841 % --- Executes on button press in checkbox42.842 function checkbox42_Callback(hObject, eventdata, handles)843 % hObject handle to checkbox42 (see GCBO)844 % eventdata reserved - to be defined in a future version of MATLAB845 % handles structure with handles and user data (see GUIDATA)846 847 % Hint: get(hObject,'Value') returns toggle state of checkbox42848 849 850 % --- Executes on button press in checkbox43.851 function checkbox43_Callback(hObject, eventdata, handles)852 % hObject handle to checkbox43 (see GCBO)853 % eventdata reserved - to be defined in a future version of MATLAB854 % handles structure with handles and user data (see GUIDATA)855 856 % Hint: get(hObject,'Value') returns toggle state of checkbox43857 858 859 % --- Executes on button press in checkbox44.860 function checkbox44_Callback(hObject, eventdata, handles)861 % hObject handle to checkbox44 (see GCBO)862 % eventdata reserved - to be defined in a future version of MATLAB863 % handles structure with handles and user data (see GUIDATA)864 865 % Hint: get(hObject,'Value') returns toggle state of checkbox44866 867 868 781 % --- Executes on selection change in popupmenu18. 869 782 function popupmenu18_Callback(hObject, eventdata, handles)
Note: See TracChangeset
for help on using the changeset viewer.