Changeset 954 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jun 22, 2016, 1:36:50 PM (5 years ago)
Author:
sommeria
Message:

update calib modfied + various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r951 r954  
    910910create_object(data,handles)
    911911
     912% --------------------------------------------------------------------
     913function Menuplane_z_Callback(hObject, eventdata, handles)
     914data.Type='plane_z';
     915data.ProjMode='projection';%default
     916data.ProjModeMenu={};% do not restrict ProjMode menus
     917create_object(data,handles)
     918
    912919%------------------------------------------------------------------------
    913920function Menuvolume_Callback(hObject, eventdata, handles)
     
    949956check_plot=0;
    950957if 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)
    953959         data.Coord=[0 0 0]; %default
    954960    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')
    959965        data.RangeX=[UvData.Field.XMin UvData.Field.XMax];
    960966        switch data.Type
     
    984990        data.DX=UvData.Field.CoordMesh;
    985991        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
    986995    end
    987996end
     
    58825891    set(handles.TableDisplay,'Visible','off')
    58835892end
     5893
     5894
     5895
Note: See TracChangeset for help on using the changeset viewer.