Changeset 72 for trunk/src/set_object.m


Ignore:
Timestamp:
Mar 30, 2010, 11:03:42 AM (14 years ago)
Author:
sommeria
Message:

ima2vol: write image volumes in 16 bits (test for civ_3D)
plot-text removed: put as a sub-function of plot_field
uvmat: movie stops in case of error in reding files
bug fixes for reading 3D vel fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r71 r72  
    100100    if isfield(data,'Name')
    101101        set(handles.TITLE,'String',data.Name)
     102        set(hObject,'name',data.Name)
    102103    end
    103104    if ~isfield(data,'NbDim')||~isequal(data.NbDim,3)%2D case
     
    245246   set(handles.PLOT,'enable','off')
    246247end
    247 
     248huvmat=findobj(allchild(0),'tag','uvmat');
     249UvData=get(huvmat,'UserData');
     250pos_uvmat=get(huvmat,'Position');
     251%position the set_object GUI with respect to uvmat
     252if isfield(UvData,'SetObjectOrigin')
     253    pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2);
     254    pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4);
     255    set(hObject,'Position',pos_set_object)
     256end
    248257
    249258% --- Outputs from this function are returned to the command line.
     
    745754testnew=0;
    746755if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame
    747    ObjectData.HandlesDisplay=handles.axes3;
    748     PlotHandles=get_plot_handles(handles);
     756   ObjectData.HandlesDisplay=hhuvmat.axes3;
     757    PlotHandles=get_plot_handles(hhuvmat);
    749758    IndexObj=IndexObj_1;
    750759elseif strcmp(ListObject{IndexObj_2},ObjectName)% we are editing the object whose projection is viewed in view_field
Note: See TracChangeset for help on using the changeset viewer.