Changeset 153 for trunk/src/uvmat.m


Ignore:
Timestamp:
Dec 9, 2010, 11:31:04 PM (13 years ago)
Author:
sommeria
Message:

civ.m: bug on field numbers repaired
other: various cleaning and bug repair for the creation of a new object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r150 r153  
    44284428list_str=get(handles.list_object_2,'String');
    44294429IndexObj=get(handles.list_object_2,'Value');
    4430 if isequal(list_str{IndexObj},'...')
     4430if strcmp(list_str{IndexObj},'...')
    44314431    hview_field=findobj(allchild(0),'Tag','view_field');
    44324432    if ~isempty(hview_field)
     
    44414441%------------------------------------------------------------------------
    44424442UvData=get(handles.uvmat,'UserData');%read UvData properties stored on the uvmat interface
    4443 if ~(length(UvData.Object)>=IndexObj);
     4443if numel(UvData.Object)<IndexObj;
    44444444    return
    44454445end
     
    44634463
    44644464% %project the current field on the object and plot it
    4465 % ProjData= proj_field(UvData.Field,ObjectData,IndexObj);%project the current interface field on ObjectData
    4466 % if option==1%length(UvData.Object)>= IndexObj && isfield(UvData.Object{IndexObj},'plotaxes')&& ishandle(UvData.Object{IndexObj}.plotaxes)
    4467 %     plot_field(ProjData,handles.axes3,PlotHandles);
    4468 %     UvData.Object{IndexObj}.plotaxes=handles.axes3;
    4469 % else
    4470 %     UvData.Object{IndexObj}.plotaxes=view_field(ProjData);
    4471 % end
    4472 % set(handles.uvmat,'UserData',UvData)
     4465ProjData= proj_field(UvData.Field,ObjectData,IndexObj);%project the current interface field on ObjectData
     4466if option==1%length(UvData.Object)>= IndexObj && isfield(UvData.Object{IndexObj},'plotaxes')&& ishandle(UvData.Object{IndexObj}.plotaxes)
     4467    plot_field(ProjData,handles.axes3,PlotHandles);
     4468    UvData.Object{IndexObj}.plotaxes=handles.axes3;
     4469else
     4470    hviewfield=view_field(ProjData);
     4471    hhviewfield=guidata(hviewfield);
     4472    UvData.Object{IndexObj}.plotaxes=hhviewfield.axes3;
     4473end
     4474set(handles.uvmat,'UserData',UvData)
    44734475hother=findobj('Tag','proj_object');%find all the proj objects
    44744476for iobj=1:length(hother)
Note: See TracChangeset for help on using the changeset viewer.