Changeset 159 for trunk/src/update_obj.m


Ignore:
Timestamp:
Dec 23, 2010, 8:09:20 AM (10 years ago)
Author:
sommeria
Message:

bug in civ corrected: civ2 was not lauched for Windows system
various bugs corrections and cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_obj.m

    r156 r159  
    4848
    4949%%  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)<IndexObj
    53     %Object_set{IndexObj}=ObjectData;
    54 % end
    55 % plot the updated object in uvmat
    56 %  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 % % else
    60 % %     hobject=plotaxes;
    61 % end
    62 % Object_out{IndexObj}.DisplayHandle_uvmat=plot_object(Object_set{IndexObj},Object_set{1},hobject,'m');%update the object representation
    6350
    64 % if strcmp(tagfig,'uvmat')%plot uvmat
     51%plot uvmat
    6552    for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1
    6653         hobject=[];
    6754        if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat)
    6855            hobject=Object_out{iobj}.DisplayHandle_uvmat;
    69 %         else
    70 %             hobject=plotaxes;
    7156        end
    7257        Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation
    7358    end
    74 % else%plot view_field
     59% plot view_field
     60if ~isempty(IndexObj_2)
    7561    for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_2
    7662        hobject=[];
     
    8268        Object_out{iobj}.DisplayHandle_view_field=plot_object(Object_out{iobj},Object_out{IndexObj_2},hobject,'m');%update the object representation
    8369    end
     70end
    8471%  end
    8572
Note: See TracChangeset for help on using the changeset viewer.