Changeset 413 for trunk/src/mouse_up.m
- Timestamp:
- May 8, 2012, 2:27:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r410 r413 152 152 ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData 153 153 if ~isempty(ProjData) 154 if strcmp(tagfig,'uvmat')% uvmat plot selected, projection plot seen on view_field154 if strcmp(tagfig,'uvmat')% uvmat plot selected, projection plot seen in view_field 155 155 hview_field=findobj(allchild(0),'tag','view_field'); 156 156 if isempty(hview_field) 157 hview_field=view_field; 157 hview_field=view_field(ProjData); 158 else 159 hhview_field=guidata(hview_field); 160 [PlotType,PlotParam]=plot_field(ProjData,hhview_field.axes3,read_GUI(hview_field));%update an existing field plot 161 write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object 158 162 end 159 163 ViewFieldData=get(hview_field,'UserData'); 160 164 ViewFieldData.axes3=ProjData; 161 165 set(hview_field,'UserData',ViewFieldData) 162 hh_plotfield=guidata(hview_field);166 163 167 else 164 168 UvData.axes3=ProjData; 165 hh_plotfield=hhuvmat; 169 [PlotType,PlotParam]=plot_field(ProjData,hhuvmat.axes3,read_GUI(hhuvmat));%update an existing field plot 170 write_plot_param(hhuvmat,PlotParam); %update the display of plotting parameters for the current object 166 171 end 167 172 %[PlotType,PlotParam]=plot_field(ProjData,hh_plotfield.axes3,read_plot_param(hh_plotfield));%update an existing field plot 168 [PlotType,PlotParam]=plot_field(ProjData,hh_plotfield.axes3,read_GUI(hview_field));%update an existing field plot 169 write_plot_param(hh_plotfield,PlotParam); %update the display of plotting parameters for the current object 173 170 174 end 171 175 set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow
Note: See TracChangeset
for help on using the changeset viewer.