Ignore:
Timestamp:
Mar 21, 2019, 6:35:43 PM (6 years ago)
Author:
sommeria
Message:

bugs repaired, still problems with geometry_calib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r1061 r1062  
    293293%set(handles.num_Angle_3,'Visible','off')
    294294set(handles.num_RangeX_1,'Visible','off')
    295 set(handles.num_RangeX_2,'Visible','off')
    296295set(handles.num_RangeY_1,'Visible','off')
    297 if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps')
    298     set(handles.num_RangeY_2,'Visible','off')
    299 else
    300     set(handles.num_RangeY_2,'Visible','on')
    301 end
    302 if strcmp(ObjectStyle,'rectangle')||strcmp(ObjectStyle,'ellipse')
    303     set(handles.num_RangeX_2,'Visible','on')
    304 else
    305    set(handles.num_RangeX_2,'Visible','off')
    306 end
     296% if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps')
     297%     set(handles.num_RangeY_2,'Visible','off')
     298% else
     299%     set(handles.num_RangeY_2,'Visible','on')
     300
    307301set(handles.num_RangeZ_1,'Visible','off')
    308302set(handles.num_RangeZ_2,'Visible','off')
     
    310304set(handles.num_DY,'Visible','off')
    311305set(handles.num_DZ,'Visible','off')
    312 set(handles.num_RangeInterp,'Visible','off')
    313 
     306%default
     307                set(handles.num_RangeX_2,'Visible','off')
     308         set(handles.num_RangeY_2,'Visible','off')
    314309switch ObjectStyle
    315310    case 'points'
    316         set(handles.num_RangeY_2,'TooltipString','num_RangeY_2: range of projection around each point')
     311        set(handles.num_RangeInterp,'TooltipString','num_RangeY_2: range of projection around each point')
    317312%         set(handles.XObject,'TooltipString','XObject: set of x coordinates of the points')
    318313%         set(handles.YObject,'TooltipString','YObject: set of y coordinates of the points')
    319314%         set(handles.ZObject,'TooltipString','ZObject: set of z coordinates of the points')
    320315    case {'line','polyline','polygon'}
    321         set(handles.num_RangeY_2,'TooltipString','num_RangeY_2: range of projection around the line')
     316        set(handles.num_RangeX_2,'Visible','off')
     317         set(handles.num_RangeY_2,'Visible','off')
     318        %set(handles.num_RangeY_2,'TooltipString','num_RangeY_2: range of projection around the line')
    322319         set(handles.Coord,'TooltipString','Coord: table of x,y, z coordinates defining the line')
    323320%         set(handles.YObject,'TooltipString','YObject: set of y coordinates defining the line')
     
    329326        end       
    330327    case {'rectangle','ellipse'}
     328                set(handles.num_RangeX_2,'Visible','on')
     329         set(handles.num_RangeY_2,'Visible','on')
    331330        set(handles.num_RangeX_2,'TooltipString',['num_RangeX_2: half length of the ' ObjectStyle])
    332331        set(handles.num_RangeY_2,'TooltipString',['num_RangeY_2: half width of the ' ObjectStyle])
     332        if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps')
     333            set(handles.num_DX,'Visible','on')
     334            set(handles.num_DX,'TooltipString','num_DX: mesh for the interpolated field along the line')
     335            set(handles.num_RangeInterp,'Visible','on')
     336        end       
    333337    case {'plane','plane_z'} 
    334338        set(handles.num_Angle_1,'Visible','on')
     
    336340        set(handles.num_RangeX_2,'Visible','on')
    337341        set(handles.num_RangeY_1,'Visible','on')
    338         set(handles.num_RangeY_2,'Visible','on')
     342        %set(handles.num_RangeY_2,'Visible','on')
    339343        set(handles.num_RangeZ_2,'TooltipString','num_ZMax: range of projection normal to the plane')
    340344        if test3D
Note: See TracChangeset for help on using the changeset viewer.