Changeset 1103 for trunk/src/uvmat.m
- Timestamp:
- May 8, 2021, 11:01:15 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1102 r1103 894 894 function MenuExportCustom_Callback(hObject, eventdata, handles) 895 895 export_fct_name=get(handles.MenuExportCustom,'label'); 896 current_dir=pwd;%current working dir 897 cd(fullfile(fileparts(which('uvmat')),'export_fct')) 898 export_handle=str2func(export_fct_name); 899 cd(current_dir) 900 export_handle(handles) 896 if strcmp(export_fct_name,'user export fct.') 897 MenuExportMore_Callback(hObject, eventdata, handles) 898 else 899 current_dir=pwd;%current working dir 900 cd(fullfile(fileparts(which('uvmat')),'export_fct')) 901 export_handle=str2func(export_fct_name); 902 cd(current_dir) 903 export_handle(handles) 904 end 901 905 902 906 % -------------------------------------------------------------------- … … 2425 2429 ColorType=FileInfo.ColorType;%='truecolor' for color images 2426 2430 end 2427 set(handles.CheckBW,'Value',strcmp(ColorType,'grayscale'))% select handles.CheckBW if grayscale image 2431 if strcmp(ColorType,'truecolor') 2432 set(handles.CheckBW,'String',{'grayscale';'truecolor'}) 2433 else 2434 set(handles.CheckBW,'String',{'grayscale';'default';'jet';'BuYlRd'}) 2435 end 2436 if strcmp(ColorType,'grayscale') 2437 set(handles.CheckBW,'Value',1) 2438 else 2439 set(handles.CheckBW,'Value',2) 2440 end 2428 2441 2429 2442 %% read parameters (time, geometric calibration..) from a documentation file (.xml advised) … … 5452 5465 function CheckFixScalar_Callback(hObject, eventdata, handles) 5453 5466 %------------------------------------------------------------------------ 5454 test=get(handles.CheckFixScalar,'Value'); 5455 if test 5456 % set(handles.CheckFixScalar,'BackgroundColor',[1 1 0]) 5457 else 5458 % set(handles.CheckFixScalar,'BackgroundColor',[0.7 0.7 0.7]) 5467 if ~get(handles.CheckFixScalar,'Value') 5459 5468 update_plot(handles); 5460 5469 end … … 5478 5487 set(handles.num_IncrA,'Visible','on') 5479 5488 set(handles.num_IncrA,'String','')% refresh contour interval 5480 % set(handles.opacity_txt,'Visible','off')5481 % set(handles.num_Opacity,'Visible','off')5482 5489 else % option 'image' 5483 5490 set(handles.interval_txt,'Visible','off') 5484 5491 set(handles.num_IncrA,'Visible','off') 5485 % set(handles.opacity_txt,'Visible','on')5486 % set(handles.num_Opacity,'Visible','on')5487 5492 end 5488 5493 update_plot(handles); … … 5562 5567 enable_bounds='on'; 5563 5568 enable_scalar='on'; 5564 case '64 colors'5569 case {'64 colors','BuYlRd'} 5565 5570 enable_bounds='on'; 5566 5571 enable_scalar='on'; … … 6109 6114 6110 6115 6111 6112 % %TODO: use to modify fill_GUI6113 % %'write_plot_param': update the plotting parameters on the uvmat or view_field interface after a plotting operation6114 % function write_plot_param(handles,PlotParam)6115 % %% axes6116 % if isempty(PlotParam.Axes)6117 % set(handles.Axes,'Visible','off')6118 % set(handles.PlotAxes,'Visible','off')6119 % set(handles.text_display,'Visible','off')6120 % set(handles.TableDisplay,'Visible','on')6121 % else6122 % set(handles.Axes,'Visible','on')6123 % set(handles.PlotAxes,'Visible','on')6124 % set(handles.text_display,'Visible','on')6125 % % if isfield(handles,'TableDisplay')6126 % % set(handles.TableDisplay,'Visible','off')6127 % % end6128 % Coordinates=PlotParam.Axes;6129 % if isfield(Coordinates,'CheckFixAspectRatio')6130 % if Coordinates.CheckFixAspectRatio6131 % set(handles.CheckFixAspectRatio,'Value',1)6132 % else6133 % set(handles.CheckFixAspectRatio,'Value',0)6134 %6135 % end6136 % end6137 % if isfield(Coordinates,'AspectRatio')6138 % set(handles.num_AspectRatio,'String',num2str(Coordinates.AspectRatio))6139 % end6140 % if isfield(Coordinates,'MinX')6141 % set(handles.num_MinX,'String',num2str(Coordinates.MinX,4));6142 % set(handles.num_MaxX,'String',num2str(Coordinates.MaxX,4));6143 % set(handles.num_MinY,'String',num2str(Coordinates.MinY,4));6144 % set(handles.num_MaxY,'String',num2str(Coordinates.MaxY,4));6145 % else6146 % set(handles.num_MinX,'String','');6147 % set(handles.num_MaxX,'String','');6148 % set(handles.num_MinY,'String','');6149 % set(handles.num_MaxY,'String','');6150 % end6151 % end6152 %6153 % %% scalar or image parameters6154 % if isfield(PlotParam,'Scalar')6155 % set(handles.Scalar,'Visible','on')6156 % if isfield(PlotParam.Scalar,'MaxA')6157 % set(handles.num_MaxA,'String',num2str(PlotParam.Scalar.MaxA,3));6158 % end6159 % if isfield(PlotParam.Scalar,'MinA')6160 % set(handles.num_MinA,'String',num2str(PlotParam.Scalar.MinA,3));6161 % end6162 % if isfield(PlotParam.Scalar,'IncrA')6163 % set(handles.num_IncrA,'String',num2str(PlotParam.Scalar.IncrA,3))6164 % end6165 % set(handles.CheckBW,'Value',PlotParam.Scalar.CheckBW)6166 % if isfield(PlotParam.Scalar,'Opacity')&&isfield(handles,'num_Opacity')6167 % set(handles.num_Opacity,'String',num2str(PlotParam.Scalar.Opacity))6168 % end6169 % else6170 % set(handles.Scalar,'Visible','off')6171 % end6172 %6173 % %% parameter for vector field6174 % if isfield(PlotParam,'Vectors')6175 % set(handles.Vectors,'Visible','on')6176 % if isfield(PlotParam.Vectors,'VecScale')6177 % set(handles.num_VecScale,'String',num2str(PlotParam.Vectors.VecScale,3))6178 % end6179 % if isfield(PlotParam.Vectors,'MinC')&& isfield(PlotParam.Vectors,'MaxC')6180 % MinC=PlotParam.Vectors.MinC;6181 % MaxC=PlotParam.Vectors.MaxC;6182 % set(handles.num_MinVec,'String', num2str(MinC,3));6183 % set(handles.num_MaxVec,'String',num2str(MaxC,3));6184 % list=get(handles.ColorCode,'String');6185 % ichoice=get(handles.ColorCode,'Value');6186 % color_option=list{ichoice};6187 % test3color=strcmp(color_option,'rgb')||strcmp(color_option,'bgr');6188 % if test3color% need to update color thresholds6189 % set(handles.num_ColCode1,'Visible','on')6190 % set(handles.num_ColCode2,'Visible','on')6191 % set(handles.Slider1,'Visible','on')6192 % set(handles.Slider2,'Visible','on')6193 % set(handles.num_ColCode1,'String',num2str(PlotParam.Vectors.ColCode1,3))6194 % set(handles.num_ColCode2,'String',num2str(PlotParam.Vectors.ColCode2,3))6195 % set(handles.Slider1,'Value',(PlotParam.Vectors.ColCode1-MinC)/(MaxC-MinC))6196 % set(handles.Slider2,'Value',(PlotParam.Vectors.ColCode2-MinC)/(MaxC-MinC))6197 % else6198 % set(handles.num_ColCode1,'Visible','off')6199 % set(handles.num_ColCode2,'Visible','off')6200 % set(handles.Slider1,'Visible','off')6201 % set(handles.Slider2,'Visible','off')6202 % end6203 % end6204 % else6205 % set(handles.Vectors,'Visible','off')6206 % if isfield(handles,'edit_vect')6207 % set(handles.edit_vect,'Visible','off')6208 % set(handles.record,'Visible','off')6209 % end6210 % end6211 6212 6116 % -------------------------------------------------------------------- 6213 6117 % --- Executes on button press in CheckTable.
Note: See TracChangeset
for help on using the changeset viewer.