Changeset 150 for trunk/src/view_field.m
- Timestamp:
- Dec 3, 2010, 12:16:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r144 r150 1 2 1 %'view_field': function associated with the GUI 'view_field.fig' for images and data field visualization 3 2 %------------------------------------------------------------------------ … … 60 59 61 60 % Choose default command menuline output for view_field 62 handles.output = handles. axes3;61 handles.output = handles.view_field; 63 62 64 63 % Update handles structure … … 92 91 93 92 [PlotType,PlotParamOut]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar) 94 set(handles.axes3,'UserData',Field);%store the current field 93 ViewFieldData.axes3=Field; 94 set(handles.view_field,'UserData',ViewFieldData);%store the current field 95 get(handles.view_field) 95 96 if isfield(PlotParamOut,'Vectors') 96 97 set(handles.VECT_title,'Visible','on') … … 692 693 693 694 %------------------------------------------------------------------- 694 function [PlotType,ScalOut]=update_plot(handles)695 function PlotType=update_plot(handles) 695 696 %------------------------------------------------------------------- 696 697 haxes= handles.axes3; … … 708 709 global Data_view_field 709 710 % huvmat=findobj(allchild(0),'Name','uvmat'); 710 Data_view_field=get(handles.axes3,'UserData'); 711 Data_view_field=get(handles.view_field,'UserData'); 712 Data_view_field=Data_view_field.axes3; 711 713 % Data_view_field=UvData.ProjField_2; 712 714 evalin('base','global Data_view_field')%make CurData global in the workspace … … 775 777 function closefcn(hObject, eventdata, handles) 776 778 huvmat=findobj(allchild(0),'Name','uvmat'); 779 if ~isempty(huvmat) 777 780 hhuvmat=guidata(huvmat); 778 781 list_object_2=get(hhuvmat.list_object_2,'String'); 779 782 set(hhuvmat.list_object_2,'Value',numel(list_object_2))%select the last value ('...') 783 end 780 784 delete(hObject) 781 782 785 783 786 784 787 % --- Executes on selection change in popupmenu18. 785 788 function popupmenu18_Callback(hObject, eventdata, handles) 786 787 788 function edit91_Callback(hObject, eventdata, handles)789 % hObject handle to edit91 (see GCBO)790 % eventdata reserved - to be defined in a future version of MATLAB791 % handles structure with handles and user data (see GUIDATA)792 793 % Hints: get(hObject,'String') returns contents of edit91 as text794 % str2double(get(hObject,'String')) returns contents of edit91 as a double795 796 797 % --- Executes on button press in checkbox45.798 function checkbox45_Callback(hObject, eventdata, handles)799 % hObject handle to checkbox45 (see GCBO)800 % eventdata reserved - to be defined in a future version of MATLAB801 % handles structure with handles and user data (see GUIDATA)802 803 % Hint: get(hObject,'Value') returns toggle state of checkbox45804 805 806 % --- Executes on selection change in popupmenu19.807 function popupmenu19_Callback(hObject, eventdata, handles)808 % hObject handle to popupmenu19 (see GCBO)809 % eventdata reserved - to be defined in a future version of MATLAB810 % handles structure with handles and user data (see GUIDATA)811 812 % Hints: contents = get(hObject,'String') returns popupmenu19 contents as cell array813 % contents{get(hObject,'Value')} returns selected item from popupmenu19814 815 816 817 818 789 819 790
Note: See TracChangeset
for help on using the changeset viewer.