Changeset 102 for trunk/src/view_field.m


Ignore:
Timestamp:
Jun 13, 2010, 11:32:05 PM (14 years ago)
Author:
sommeria
Message:

bugs corrected for projection objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r99 r102  
    8282set(hObject,'Position',pos_view_field)
    8383
    84 
    85 
    8684%functions for the mouse and keyboard
    8785set(hObject,'KeyPressFcn',{'keyboard_callback',handles_mouse})%set keyboard action function
     
    9189set(hObject,'CloseRequestFcn',{@closefcn})%
    9290
    93 [PlotType,PlotParamOut,haxes]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)
     91[PlotType,PlotParamOut]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)
    9492set(handles.axes3,'UserData',Field);%store the current field
    9593if isfield(PlotParamOut,'Vectors')
     
    690688set(handles.vec_col_bar,'Cdata',A)
    691689
    692 
    693690%-------------------------------------------------------------------
    694691function [PlotType,ScalOut]=update_plot(handles)
    695692%-------------------------------------------------------------------
    696693haxes= handles.axes3;
    697 huvmat=findobj(allchild(0),'tag','uvmat');
     694%huvmat=findobj(allchild(0),'tag','uvmat');
    698695ProjField=get(haxes,'UserData');
    699 %
    700 % AxeData=get(haxes,'UserData');
    701696PlotParam=read_plot_param(handles);
    702697[PlotType,PlotParamOut]= plot_field(ProjField,haxes,PlotParam,1);
     
    708703function MenuExportField_Callback(hObject, eventdata, handles)
    709704
    710 global CurData
    711 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 workspace
     705global Data_view_field
     706% huvmat=findobj(allchild(0),'Name','uvmat');
     707Data_view_field=get(handles.axes3,'UserData');
     708% Data_view_field=UvData.ProjField_2;
     709evalin('base','global Data_view_field')%make CurData global in the workspace
    715710display(['UserData of view_field :'])
    716 evalin('base','CurData') %display CurData in the workspace
     711evalin('base','Data_view_field') %display CurData in the workspace
    717712commandwindow;
    718713
     
    753748
    754749
    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 MATLAB
    763 % handles    structure with handles and user data (see GUIDATA)
    764 
    765 % Hint: get(hObject,'Value') returns toggle state of AutoScal
    766 
    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 MATLAB
    776 % handles    structure with handles and user data (see GUIDATA)
    777 
    778 % Hints: get(hObject,'String') returns contents of min_vec as text
    779 %        str2double(get(hObject,'String')) returns contents of min_vec as a double
    780 
    781750
    782751% --- Executes on slider movement.
     
    799768%        get(hObject,'Min') and get(hObject,'Max') to determine range of
    800769%        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 MATLAB
    807 % handles    structure with handles and user data (see GUIDATA)
    808 
    809 % Hint: get(hObject,'Value') returns toggle state of AutoVecColor
    810 
    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 MATLAB
    815 % handles    structure with handles and user data (see GUIDATA)
    816 
    817 % Hints: get(hObject,'String') returns contents of max_vec as text
    818 %        str2double(get(hObject,'String')) returns contents of max_vec as a double
    819 
    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 MATLAB
    824 % handles    structure with handles and user data (see GUIDATA)
    825 
    826 % Hints: get(hObject,'String') returns contents of colcode2 as text
    827 %        str2double(get(hObject,'String')) returns contents of colcode2 as a double
    828 
    829 
    830770
    831771
     
    839779
    840780
    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 MATLAB
    845 % handles    structure with handles and user data (see GUIDATA)
    846 
    847 % Hint: get(hObject,'Value') returns toggle state of checkbox42
    848 
    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 MATLAB
    854 % handles    structure with handles and user data (see GUIDATA)
    855 
    856 % Hint: get(hObject,'Value') returns toggle state of checkbox43
    857 
    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 MATLAB
    863 % handles    structure with handles and user data (see GUIDATA)
    864 
    865 % Hint: get(hObject,'Value') returns toggle state of checkbox44
    866 
    867 
    868781% --- Executes on selection change in popupmenu18.
    869782function popupmenu18_Callback(hObject, eventdata, handles)
Note: See TracChangeset for help on using the changeset viewer.