Changeset 71 for trunk/src/update_obj.m
- Timestamp:
- Mar 29, 2010, 6:34:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_obj.m
r67 r71 9 9 % 10 10 %INPUT: 11 %UvIn: structure stored as 'Userdata' on the uvmat interface 11 %UvData: structure stored as 'Userdata' on the uvmat interface, it contains 12 % .Object{1},{2}... description of all the projection objects 13 % .Object{iview}.plotaxes: axes for the plot of the field projected on this object 14 % .Object{iview}.HandlesDisplay(ih): array of handles for plots representing the object #iview in the field #ih 12 15 %IndexObjIn: object index for an existing objects stored in UvData 13 16 %ObjectData: structure containing the input object properties 14 %PlotHandles: structure containing the handles of the plotting parameter buttons on the uvmat interface (obtained by get_plot_handles.m) 17 % .Style: style of the object: 'line', 'rectangle'... 18 %PlotHandles: structure containing the handles of the plotting parameter buttons on the uvmat or view_field interface 15 19 %------------------------------------- 16 20 … … 35 39 HandlesDisplay=Object_set{IndexObj}.HandlesDisplay;%list of handles of object representations 36 40 end 37 hplot_list=findobj(haxes,'Tag','proj_object'); 41 hplot_list=findobj(haxes,'Tag','proj_object');%list of projection objects on the axes 38 42 for ih=1:length(HandlesDisplay) 39 43 plot_detect=find(hplot_list==HandlesDisplay(ih)); … … 46 50 if ~testupdate% draw new object plot 47 51 hh=plot_object(ObjectData,Object_set{iview},haxes,'m');%draw the object with the new object data 48 Object_out.HandlesDisplay=[Object_out.HandlesDisplay hh]; 52 if isfield(Object_out,'HandlesDisplay') 53 Object_out.HandlesDisplay=[Object_out.HandlesDisplay hh]; 54 else 55 Object_out.HandlesDisplay=hh; 56 end 49 57 PlotData=get(hh,'UserData'); 50 58 PlotData.IndexObj=IndexObj; … … 55 63 end 56 64 % plot the field projected on the object 57 if ~isempty(PlotHandles) %&& ~testmask65 % if ~isempty(PlotHandles) %&& ~testmask 58 66 ProjData= proj_field(UvData.Field,ObjectData,IndexObj);%project the current interface field on ObjectData 59 67 if ~isempty(ProjData) 60 68 plotaxes=[];%default 69 % get(Object_set{IndexObj}.plotaxes) 61 70 if length(Object_set)>= IndexObj && isfield(Object_set{IndexObj},'plotaxes') 62 71 plotaxes=Object_set{IndexObj}.plotaxes; … … 73 82 end 74 83 end 75 end84 % end 76 85 77 86
Note: See TracChangeset
for help on using the changeset viewer.