Changeset 150 for trunk/src/set_object.m
- Timestamp:
- Dec 3, 2010, 12:16:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r102 r150 772 772 function PLOT_Callback(hObject, eventdata, handles) 773 773 774 %SetData=get(handles.set_object,'UserData');%get the hidden interface data775 774 huvmat=findobj('tag','uvmat');%find the current uvmat interface handle 776 775 UvData=get(huvmat,'UserData');%Data associated to the GUI uvmat … … 786 785 testnew=0; 787 786 PlotHandles=get_plot_handles(hhuvmat); 787 projview=''; 788 788 if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame 789 789 ObjectData.HandlesDisplay=hhuvmat.axes3; 790 790 IndexObj=IndexObj_1; 791 projview='uvmat'; 791 792 elseif IndexObj_2<=numel(ListObject)&& strcmp(ListObject{IndexObj_2},ObjectName)% we are editing the object whose projection is viewed in view_field 792 793 hview_field=findobj('tag','view_field'); … … 796 797 end 797 798 IndexObj=IndexObj_2; 799 projview='view_field'; 798 800 else %new object 799 801 testnew=1; … … 825 827 % update the object plot and projection field 826 828 UvData.Object{IndexObj}=update_obj(UvData,IndexObj,ObjectData,PlotHandles); 827 set(huvmat,'UserData',UvData)%update the data in the uvmat interface 829 if strcmp(projview,'view_field') 830 ViewFieldData=get(hview_field,'UserData'); 831 ViewFieldData.axes3=ObjectData; 832 set(hview_field,'UserData',ViewFieldData) 833 else 834 UvData.axes3=ObjectData; 835 end 828 836 829 837 %set uvmat to object edit mode to allow further object update
Note: See TracChangeset
for help on using the changeset viewer.