- Timestamp:
- Jul 1, 2016, 7:47:18 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r964 r965 949 949 950 950 %% rotation angles 951 PlaneAngle=[0 0 0];951 PlaneAngle=[0 0]; 952 952 norm_plane=[0 0 1]; 953 953 %cos_om=1; … … 963 963 % ObjectData.Angle(2)=90*Delta_y/Delta_mod; 964 964 % end 965 if isfield(ObjectData,'Angle')&& isequal(size(ObjectData.Angle),[1 3])&& ~isequal(ObjectData.Angle,[00 0])965 if isfield(ObjectData,'Angle')&& isequal(size(ObjectData.Angle),[1 2])&& ~isequal(ObjectData.Angle,[0 0]) 966 966 test90y=0;%isequal(ObjectData.Angle,[0 90 0]); 967 967 PlaneAngle=(pi/180)*ObjectData.Angle; -
trunk/src/set_object.m
r964 r965 158 158 end 159 159 if ~isfield(data,'Angle') 160 data.Angle=[0 0 0];160 data.Angle=[0 0]; 161 161 end 162 162 % if isfield(data,'Angle') && isequal(numel(data.Angle),3) … … 362 362 set(handles.num_Angle_1,'Visible','on') 363 363 set(handles.num_Angle_2,'Visible','on') 364 set(handles.num_Angle_3,'Visible','on')364 %set(handles.num_Angle_3,'Visible','on') 365 365 set(handles.num_RangeZ_1,'Visible','on') 366 366 set(handles.num_RangeZ_2,'Visible','on') … … 412 412 PlaneAngle(1)=str2num(get(handles.num_Angle_1,'String'));%first angle in degrees 413 413 PlaneAngle(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 degrees414 %PlaneAngle(3)=str2num(get(handles.num_Angle_3,'String'));%second angle in degrees 415 415 om=norm(PlaneAngle);%norm of rotation angle in radians 416 416 OmAxis=PlaneAngle/om; %unit vector marking the rotation axis … … 714 714 Z_value=get(handles.z_slider,'Value'); 715 715 %rotation angles 716 PlaneAngle=[0 0 0];716 PlaneAngle=[0 0]; 717 717 norm_plane=[0 0 1]; 718 718 cos_om=1; … … 764 764 765 765 766 function num_Angle_3_Callback(hObject, eventdata, handles)767 768 % ------------------------------------------------------------------------769 % --- Executes on key press with selection of a uicontrol770 % ------------------------------------------------------------------------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 done773 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 end766 % 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 779 779 780 780 %------------------------------------------------------------------------ -
trunk/src/uvmat.m
r962 r965 3749 3749 UvData.ProjObject{1}.RangeZ=UvData.Field.CoordMesh;%main plotting plane 3750 3750 UvData.ProjObject{1}.Coord(1,3)=(UvData.Field.ZMin+UvData.Field.ZMax)/2;%section at a middle plane chosen 3751 UvData.ProjObject{1}.Angle=[0 0 0];3751 UvData.ProjObject{1}.Angle=[0 0]; 3752 3752 elseif isfield(UvData,'Z') 3753 3753 %multilevel case (single menuplane in a 3D space) … … 5661 5661 end 5662 5662 ZBounds=0; % default 5663 if ~isfield(UvData,'Field') 5664 disp('an input field needs to be introduced') 5665 return 5666 end 5663 5667 if isfield(UvData.Field,'ZMin') && isfield(UvData.Field,'ZMax') 5664 5668 ZBounds(1)=UvData.Field.ZMin; %minimum for the Z slider
Note: See TracChangeset
for help on using the changeset viewer.