Changeset 71 for trunk/src/update_obj.m


Ignore:
Timestamp:
Mar 29, 2010, 6:34:55 PM (11 years ago)
Author:
sommeria
Message:

civ3D updated: introduction of image size
imadoc2struct: reding of image size from the xml file
set_object, view_field and related functions: improvement of projection object editing
mouse: possibility of adjusting the calibrations points with the mouse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_obj.m

    r67 r71  
    99%
    1010%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
    1215%IndexObjIn: object index for an existing objects stored in UvData
    1316%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
    1519%-------------------------------------
    1620
     
    3539                 HandlesDisplay=Object_set{IndexObj}.HandlesDisplay;%list of handles of object representations
    3640             end
    37              hplot_list=findobj(haxes,'Tag','proj_object');
     41             hplot_list=findobj(haxes,'Tag','proj_object');%list of projection objects on the axes
    3842             for ih=1:length(HandlesDisplay)
    3943                 plot_detect=find(hplot_list==HandlesDisplay(ih));
     
    4650             if ~testupdate% draw new object plot
    4751                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
    4957                PlotData=get(hh,'UserData');
    5058                PlotData.IndexObj=IndexObj;
     
    5563end
    5664% plot the field projected on the object
    57 if ~isempty(PlotHandles) %&& ~testmask
     65% if ~isempty(PlotHandles) %&& ~testmask
    5866    ProjData= proj_field(UvData.Field,ObjectData,IndexObj);%project the current interface field on ObjectData
    5967    if ~isempty(ProjData)   
    6068        plotaxes=[];%default
     69%         get(Object_set{IndexObj}.plotaxes)
    6170        if length(Object_set)>= IndexObj && isfield(Object_set{IndexObj},'plotaxes')
    6271            plotaxes=Object_set{IndexObj}.plotaxes;
     
    7382        end
    7483    end
    75 end
     84% end
    7685
    7786
Note: See TracChangeset for help on using the changeset viewer.