Ignore:
Timestamp:
Nov 21, 2011, 11:12:06 AM (9 years ago)
Author:
sommeria
Message:

GUI civ patch2 corrected (SmoothingParam?).
uvmatand view_field updated with panels.
read_plot_param removed (replaced by the mostgeneral read_GUI)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/write_plot_param.m

    r204 r292  
    44if isfield(PlotParam,'FixEqual')
    55    if PlotParam.FixEqual
    6         set(handles.FixEqual,'Value',1)
    7         set(handles.FixEqual,'BackgroundColor',[1 1 0])
     6        set(handles.CheckFixEqual,'Value',1)
     7        set(handles.CheckFixEqual,'BackgroundColor',[1 1 0])
    88    else
    9         set(handles.FixEqual,'Value',0)
    10         set(handles.FixEqual,'BackgroundColor',[0.7 0.7 0.7])
     9        set(handles.CheckFixEqual,'Value',0)
     10        set(handles.CheckFixEqual,'BackgroundColor',[0.7 0.7 0.7])
    1111    end
    1212end
    1313if isfield(PlotParam,'MinX')
    14 set(handles.MinX,'String',num2str(PlotParam.MinX,4));
    15 set(handles.MaxX,'String',num2str(PlotParam.MaxX,4));
    16 set(handles.MinY,'String',num2str(PlotParam.MinY,4));
    17 set(handles.MaxY,'String',num2str(PlotParam.MaxY,4));
     14    set(handles.num_MinX,'String',num2str(PlotParam.MinX,4));
     15    set(handles.num_MaxX,'String',num2str(PlotParam.MaxX,4));
     16    set(handles.num_MinY,'String',num2str(PlotParam.MinY,4));
     17    set(handles.num_MaxY,'String',num2str(PlotParam.MaxY,4));
    1818else
    19     set(handles.MinX,'String','');
    20 set(handles.MaxX,'String','');
    21 set(handles.MinY,'String','');
    22 set(handles.MaxY,'String','');
     19    set(handles.num_MinX,'String','');
     20    set(handles.num_MaxX,'String','');
     21    set(handles.num_MinY,'String','');
     22    set(handles.num_MaxY,'String','');
    2323end
    2424
     
    2727    set_scal_display(handles,'on')
    2828    if isfield(PlotParam.Scalar,'MaxA')
    29         set(handles.MaxA,'String',num2str(PlotParam.Scalar.MaxA,3));
     29        set(handles.num_MaxA,'String',num2str(PlotParam.Scalar.MaxA,3));
    3030    end
    3131    if isfield(PlotParam.Scalar,'MinA')
    32         set(handles.MinA,'String',num2str(PlotParam.Scalar.MinA,3));
     32        set(handles.num_MinA,'String',num2str(PlotParam.Scalar.MinA,3));
    3333    end
    3434
    3535    if isfield(PlotParam.Scalar,'IncrA')
    36         set(handles.IncrA,'String',num2str(PlotParam.Scalar.IncrA,3))
     36        set(handles.num_IncrA,'String',num2str(PlotParam.Scalar.IncrA,3))
    3737    end
    3838else
     
    4444    set_vect_display(handles,'on')
    4545    if isfield(PlotParam.Vectors,'VecScale')
    46         set(handles.VecScale,'String',num2str(PlotParam.Vectors.VecScale,3))
     46        set(handles.num_VecScale,'String',num2str(PlotParam.Vectors.VecScale,3))
    4747    end
    4848    if isfield(PlotParam.Vectors,'MinC')&& isfield(PlotParam.Vectors,'MaxC')
     
    8787function set_scal_display(handles,state)
    8888%------------------------------------------------------------------
    89 % set(handles.SCALAR_title,'Visible',state)
    90 set(handles.MaxA,'Visible',state)
    91 set(handles.MinA,'Visible',state)
    92 %set(handles.IncrA,'Visible',state)
    93 set(handles.FixScal,'Visible',state)
    94 set(handles.BW,'Visible',state)
    95 set(handles.Contours,'Visible',state)
    96 set(handles.min_title,'Visible',state)
    97 set(handles.max_title,'Visible',state)
    98 %set(handles.frame_scal,'Visible',state)
    99 set(handles.npx,'Visible',state)
    100 set(handles.npy,'Visible',state)
    101 set(handles.npx_title,'Visible',state)
    102 set(handles.npy_title,'Visible',state)
    103 %set(handles.makemask,'Visible',state)
     89set(handles.Scalar,'Visible',state)
     90% set(handles.num_MaxA,'Visible',state)
     91% set(handles.num_MinA,'Visible',state)
     92% %set(handles.IncrA,'Visible',state)
     93% set(handles.CheckFixScalar,'Visible',state)
     94% set(handles.CheckBW,'Visible',state)
     95% set(handles.ListContour,'Visible',state)
     96% set(handles.TitleMinA,'Visible',state)
     97% set(handles.TitleMaxA,'Visible',state)
     98% set(handles.num_Npx,'Visible',state)
     99% set(handles.num_Npy,'Visible',state)
     100% set(handles.TitleNpx,'Visible',state)
     101% set(handles.TitleNpy,'Visible',state)
    104102
    105103%---------------------------------------------
     
    107105function set_vect_display(handles,state)
    108106%------------------------------------------------------------------
    109 set(handles.frame_vect,'Visible',state)
     107set(handles.Vectors,'Visible',state)
    110108% set(handles.VECT_title,'Visible',state)
    111 set(handles.VecScale,'Visible',state)
    112 set(handles.FixVec,'Visible',state)
    113 set(handles.HideFalse,'Visible',state)
    114 set(handles.HideWarning,'Visible',state)
    115 % if isfield(handles,'record')
    116 %     set(handles.record,'Visible',state)
     109% set(handles.num_VecScale,'Visible',state)
     110% set(handles.FixVec,'Visible',state)
     111% set(handles.HideFalse,'Visible',state)
     112% set(handles.HideWarning,'Visible',state)
     113% % if isfield(handles,'record')
     114% %     set(handles.record,'Visible',state)
     115% % end
     116% set(handles.num_ColCode1,'Visible',state)
     117% set(handles.num_ColCode2,'Visible',state)
     118% set(handles.num_MinVec,'Visible',state)
     119% set(handles.num_MaxVec,'Visible',state)
     120% set(handles.scale_title,'Visible',state)
     121% set(handles.slider1,'Visible',state)
     122% set(handles.slider2,'Visible',state)
     123% set(handles.col_vec,'Visible',state)
     124% set(handles.Color_title,'Visible',state)
     125% set(handles.color_code,'Visible',state)
     126% set(handles.vec_col_bar,'Visible',state)
     127% % set(handles.record,'Visible',state)
     128% set(handles.AutoVecColor,'Visible',state)
     129% set(handles.decimate4,'Visible',state)
     130% set(handles.min_C_title,'Visible',state)
     131% set(handles.max_C_title,'Visible',state)
     132% if isfield(handles,'MenuEditVectors')
     133%     set(handles.MenuEditVectors,'Enable',state)
    117134% end
    118 set(handles.colcode1,'Visible',state)
    119 set(handles.colcode2,'Visible',state)
    120 set(handles.min_vec,'Visible',state)
    121 set(handles.max_vec,'Visible',state)
    122 set(handles.scale_title,'Visible',state)
    123 set(handles.slider1,'Visible',state)
    124 set(handles.slider2,'Visible',state)
    125 set(handles.col_vec,'Visible',state)
    126 set(handles.Color_title,'Visible',state)
    127 set(handles.color_code,'Visible',state)
    128 set(handles.vec_col_bar,'Visible',state)
    129 % set(handles.record,'Visible',state)
    130 set(handles.AutoVecColor,'Visible',state)
    131 set(handles.decimate4,'Visible',state)
    132 set(handles.min_C_title,'Visible',state)
    133 set(handles.max_C_title,'Visible',state)
    134 if isfield(handles,'MenuEditVectors')
    135     set(handles.MenuEditVectors,'Enable',state)
    136 end
Note: See TracChangeset for help on using the changeset viewer.