Changeset 1001 for trunk/src/set_object.m
- Timestamp:
- Feb 27, 2017, 9:28:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r987 r1001 380 380 % set default values read in the plot of uvmat to initiate the mesh 381 381 if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps') 382 huvmat=findobj('Tag','uvmat');%find the current uvmat interface handle 382 huvmat=findobj('Tag','uvmat');%find the current uvmat interface handle 383 if ~isempty(huvmat) 383 384 UvData=get(huvmat,'UserData');%Data associated to the current uvmat interface 384 if isempty(str2num(get(handles.num_DX,'String')))||isempty(str2num(get(handles.num_DY,'String'))); 385 % Field=UvData.Field; 386 if isfield(UvData.Field,'CoordMesh')&&~isempty(UvData.Field.CoordMesh) 387 set(handles.num_DX,'String',num2str(UvData.Field.CoordMesh)) 388 set(handles.num_DY,'String',num2str(UvData.Field.CoordMesh)) 389 set(handles.num_RangeX_1,'String',num2str(UvData.Field.XMin)) 390 set(handles.num_RangeX_2,'String',num2str(UvData.Field.XMax)) 391 set(handles.num_RangeY_1,'String',num2str(UvData.Field.YMin)) 392 set(handles.num_RangeY_2,'String',num2str(UvData.Field.YMax)) 393 end 394 if isempty(get(handles.CoordUnit,'String'))&& isfield(UvData.Field,'CoordUnit') 395 set(handles.CoordUnit,'String',UvData.Field.CoordUnit) 396 end 385 if isempty(str2num(get(handles.num_DX,'String')))||isempty(str2num(get(handles.num_DY,'String'))); 386 % Field=UvData.Field; 387 if isfield(UvData.Field,'CoordMesh')&&~isempty(UvData.Field.CoordMesh) 388 set(handles.num_DX,'String',num2str(UvData.Field.CoordMesh)) 389 set(handles.num_DY,'String',num2str(UvData.Field.CoordMesh)) 390 set(handles.num_RangeX_1,'String',num2str(UvData.Field.XMin)) 391 set(handles.num_RangeX_2,'String',num2str(UvData.Field.XMax)) 392 set(handles.num_RangeY_1,'String',num2str(UvData.Field.YMin)) 393 set(handles.num_RangeY_2,'String',num2str(UvData.Field.YMax)) 394 end 395 if isempty(get(handles.CoordUnit,'String'))&& isfield(UvData.Field,'CoordUnit') 396 set(handles.CoordUnit,'String',UvData.Field.CoordUnit) 397 end 398 end 397 399 end 398 400 if isempty(str2num(get(handles.num_RangeInterp,'String'))) && isfield(UvData,'Field') 399 set(handles.num_RangeInterp,'String',num2str(3*UvData.Field.CoordMesh))% default interpolationlength= 3 meshes401 set(handles.num_RangeInterp,'String',num2str(3*UvData.Field.CoordMesh))% default interpolationlength= 3 meshes 400 402 end 401 403 end
Note: See TracChangeset
for help on using the changeset viewer.