Changeset 954 for trunk/src/uvmat.m
- Timestamp:
- Jun 22, 2016, 1:36:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r951 r954 910 910 create_object(data,handles) 911 911 912 % -------------------------------------------------------------------- 913 function Menuplane_z_Callback(hObject, eventdata, handles) 914 data.Type='plane_z'; 915 data.ProjMode='projection';%default 916 data.ProjModeMenu={};% do not restrict ProjMode menus 917 create_object(data,handles) 918 912 919 %------------------------------------------------------------------------ 913 920 function Menuvolume_Callback(hObject, eventdata, handles) … … 949 956 check_plot=0; 950 957 if isfield(UvData,'Field') 951 Field=UvData.Field; 952 if isfield(Field,'NbDim')&& isequal(Field.NbDim,3) 958 if isfield(UvData.Field,'NbDim')&& isequal(UvData.Field.NbDim,3) 953 959 data.Coord=[0 0 0]; %default 954 960 end 955 if isfield( Field,'CoordUnit')956 data.CoordUnit= Field.CoordUnit;957 end 958 if isfield(UvData.Field,'CoordMesh')&&~isempty(UvData.Field.CoordMesh) 961 if isfield(UvData.Field,'CoordUnit') 962 data.CoordUnit=UvData.Field.CoordUnit; 963 end 964 if isfield(UvData.Field,'CoordMesh')&&~isempty(UvData.Field.CoordMesh)&&~strcmp(data.Type,'plane_z') 959 965 data.RangeX=[UvData.Field.XMin UvData.Field.XMax]; 960 966 switch data.Type … … 984 990 data.DX=UvData.Field.CoordMesh; 985 991 data.DY=UvData.Field.CoordMesh; 992 end 993 if isfield(UvData.Field,'ProjModeRequest') 994 data.ProjMode=UvData.Field.ProjModeRequest;%set the request proj mode option by default 986 995 end 987 996 end … … 5882 5891 set(handles.TableDisplay,'Visible','off') 5883 5892 end 5893 5894 5895
Note: See TracChangeset
for help on using the changeset viewer.