Changeset 193 for trunk/src/set_object.m
- Timestamp:
- Feb 20, 2011, 10:42:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r187 r193 703 703 testnew=0; 704 704 ObjectData=read_set_object(handles);%read the input parameters defining the object in the GUI set_object 705 PlotHandles=get_plot_handles(hhuvmat);706 projview='view_field';%default707 705 if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame 708 706 IndexObj=IndexObj_1; 709 707 projview='uvmat'; 710 plotaxes=hhuvmat.axes3;%handle of axes3 in view_field711 708 elseif ~isempty(IndexObj_2) && IndexObj_2<=numel(ListObject)&& strcmp(ListObject{IndexObj_2},ObjectName)% we are editing the object whose projection is viewed in view_field 712 709 IndexObj=IndexObj_2; 710 projview='view_field'; 713 711 else %new object 714 712 testnew=1; 715 713 IndexObj=numel(ListObject)+1; 716 hview_field=findobj(allchild(0),'tag','view_field'); 717 if ~isempty(hview_field) 718 PlotHandles=guidata(hview_field); 719 plotaxes=PlotHandles.axes3;%handle of axes3 in view_field 720 end 714 projview='view_field'; 721 715 end 722 716 if strcmp(projview,'view_field') … … 728 722 PlotHandles=guidata(hview_field); 729 723 plotaxes=PlotHandles.axes3;%handle of axes3 in view_field 724 else 725 PlotHandles=hhuvmat; 726 plotaxes=hhuvmat.axes3;%handle of axes3 in view_field 730 727 end 731 732 728 733 729 %% naming the object … … 780 776 %% plot the field projected on the object and store in the corresponding figue 781 777 ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData 782 [PlotType,Object_out{IndexObj}.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotHandles);%update an existing field plot 778 PlotParam=read_plot_param(PlotHandles); 779 [PlotType,Object_out{IndexObj}.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotParam);%update an existing field plot 783 780 784 781 %% update the GUI uvmat
Note: See TracChangeset
for help on using the changeset viewer.