Changeset 159 for trunk/src/update_obj.m
- Timestamp:
- Dec 23, 2010, 8:09:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_obj.m
r156 r159 48 48 49 49 %% representation of the different objects in the plots uvmat and view_field 50 %hfig=get(plotaxes,'parent');51 %tagfig=get(hfig,'tag');52 % if length(Object_set)<IndexObj53 %Object_set{IndexObj}=ObjectData;54 % end55 % plot the updated object in uvmat56 % hobject=[];57 % if isfield(Object_set{IndexObj},'DisplayHandle_uvmat') && ~isempty(Object_set{IndexObj}.DisplayHandle_uvmat) && ishandle(Object_set{IndexObj}.DisplayHandle_uvmat)58 % hobject=Object_set{IndexObj}.DisplayHandle_uvmat;59 % % else60 % % hobject=plotaxes;61 % end62 % Object_out{IndexObj}.DisplayHandle_uvmat=plot_object(Object_set{IndexObj},Object_set{1},hobject,'m');%update the object representation63 50 64 % if strcmp(tagfig,'uvmat')%plot uvmat51 %plot uvmat 65 52 for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1 66 53 hobject=[]; 67 54 if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat) 68 55 hobject=Object_out{iobj}.DisplayHandle_uvmat; 69 % else70 % hobject=plotaxes;71 56 end 72 57 Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation 73 58 end 74 % else%plot view_field 59 % plot view_field 60 if ~isempty(IndexObj_2) 75 61 for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_2 76 62 hobject=[]; … … 82 68 Object_out{iobj}.DisplayHandle_view_field=plot_object(Object_out{iobj},Object_out{IndexObj_2},hobject,'m');%update the object representation 83 69 end 70 end 84 71 % end 85 72
Note: See TracChangeset
for help on using the changeset viewer.