Changeset 965 for trunk/src/set_object.m


Ignore:
Timestamp:
Jul 1, 2016, 7:47:18 PM (5 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r964 r965  
    158158    end 
    159159    if ~isfield(data,'Angle')
    160         data.Angle=[0 0 0];
     160        data.Angle=[0 0];
    161161    end
    162162%     if isfield(data,'Angle') && isequal(numel(data.Angle),3)
     
    362362        set(handles.num_Angle_1,'Visible','on')
    363363        set(handles.num_Angle_2,'Visible','on')
    364         set(handles.num_Angle_3,'Visible','on')
     364        %set(handles.num_Angle_3,'Visible','on')
    365365        set(handles.num_RangeZ_1,'Visible','on')
    366366        set(handles.num_RangeZ_2,'Visible','on')
     
    412412PlaneAngle(1)=str2num(get(handles.num_Angle_1,'String'));%first  angle in degrees
    413413PlaneAngle(2)=str2num(get(handles.num_Angle_2,'String'));%second  angle in degrees
    414 PlaneAngle(3)=str2num(get(handles.num_Angle_3,'String'));%second  angle in degrees
     414%PlaneAngle(3)=str2num(get(handles.num_Angle_3,'String'));%second  angle in degrees
    415415om=norm(PlaneAngle);%norm of rotation angle in radians
    416416OmAxis=PlaneAngle/om; %unit vector marking the rotation axis
     
    714714Z_value=get(handles.z_slider,'Value');
    715715%rotation angles
    716 PlaneAngle=[0 0 0];
     716PlaneAngle=[0 0];
    717717norm_plane=[0 0 1];
    718718cos_om=1;
     
    764764
    765765
    766 function num_Angle_3_Callback(hObject, eventdata, handles)
    767 
    768 %------------------------------------------------------------------------
    769 % --- Executes on key press with selection of a uicontrol
    770 %------------------------------------------------------------------------
    771 function KeyPressFcn(hObject, eventdata, handles)
    772 set(handles.REFRESH,'BackgroundColor',[1 0 1])% se REFRESH to magenta color, indicates that refresh needs to be done
    773 if strcmp(get(hObject,'Tag'),'num_Angle_3')
    774     set(handles.num_RangeX_1,'String','')
    775     set(handles.num_RangeX_2,'String','')
    776         set(handles.num_RangeY_1,'String','')
    777     set(handles.num_RangeY_2,'String','')
    778 end
     766% function num_Angle_3_Callback(hObject, eventdata, handles)
     767%
     768% %------------------------------------------------------------------------
     769% % --- Executes on key press with selection of a uicontrol
     770% %------------------------------------------------------------------------
     771% function KeyPressFcn(hObject, eventdata, handles)
     772% set(handles.REFRESH,'BackgroundColor',[1 0 1])% se REFRESH to magenta color, indicates that refresh needs to be done
     773% if strcmp(get(hObject,'Tag'),'num_Angle_3')
     774%     set(handles.num_RangeX_1,'String','')
     775%     set(handles.num_RangeX_2,'String','')
     776%         set(handles.num_RangeY_1,'String','')
     777%     set(handles.num_RangeY_2,'String','')
     778% end
    779779
    780780%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.