Changeset 183 for trunk/src/update_obj.m


Ignore:
Timestamp:
Jan 26, 2011, 5:03:40 PM (14 years ago)
Author:
sommeria
Message:

small bug repair: reading movies in read_fields, plotting rectangles and ellipes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_obj.m

    r180 r183  
    1212%    .Object{IndexObj}.DisplayHandle_uvmat: handles of the object plot on uvmat, =[] if it does not exist
    1313%    .Object{IndexObj}.DisplayHandle_view_field: handles of the object plot on view_field, =[] if it does not exist
    14 %IndexObj: object index of  UvData.Object correspopnding to the updated object
    15 %ObjectData: structure containing the input object properties to be attributed to the object #IndexObj
    16 %       .Style: style of the object: 'line', 'rectangle'...
    17 %PlotHandles: structure containing the handles of the plotting parameter buttons on the uvmat or view_field interface
     14%IndexObj_1: index of  the object used for the uvmat plot
     15%IndexObj_2: index of  the object used for the view_field plot
    1816%-------------------------------------
    1917
     
    2624%%  representation of the different objects in the plots uvmat and view_field
    2725%plot uvmat
    28     for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1
    29          hobject=[];
    30         if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat)
    31             hobject=Object_out{iobj}.DisplayHandle_uvmat;%graphic handle of object #iobj in the uvmat plot
    32         end
    33         Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1}
     26for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1
     27     hobject=[];
     28    if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat)
     29        hobject=Object_out{iobj}.DisplayHandle_uvmat;%graphic handle of object #iobj in the uvmat plot
    3430    end
     31    Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1}
     32end
    3533% plot view_field
    3634if ~isempty(IndexObj_2)
    37     for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_2
     35    for iobj=1:length(Object_out) %change the view of all existing objects on the updated object #IndexObj_2
    3836        hobject=[];
    3937        if isfield(Object_out{iobj},'DisplayHandle_view_field') &&  ~isempty(Object_out{iobj}.DisplayHandle_view_field) && ishandle(Object_out{iobj}.DisplayHandle_view_field)
Note: See TracChangeset for help on using the changeset viewer.