Changeset 432 for trunk/src/view_field.m


Ignore:
Timestamp:
May 25, 2012, 8:59:59 AM (12 years ago)
Author:
sommeria
Message:

system of projection object manipulation with uvmat improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r429 r432  
    6464guidata(hObject, handles);
    6565
    66 dircur=pwd; %current working directory
    67 dir_opening=dircur;
    68 
    69 % set the position of colorbar and ancillary GUIs:
    70 set(hObject,'Units','Normalized')
    71 handles_mouse=handles;
    72 huvmat=findobj(allchild(0),'Name','uvmat');
    73 if ~isempty(huvmat)
    74     hhuvmat=guidata(huvmat);
    75     handles_mouse.edit=hhuvmat.edit_object;
    76     pos_view_field=get(hObject,'Position');
    77     pos_uvmat=get(huvmat,'Position');
    78     pos_view_field(1)=pos_uvmat(1)+pos_uvmat(3)/2;
    79     pos_view_field(2)=pos_uvmat(2)-pos_uvmat(3)/4;
    80 %      pos_view_field(3:4)=pos_uvmat(3:4);
    81     set(hObject,'Position',pos_view_field)
    82 end
    83 
    8466%functions for the mouse and keyboard
    85 set(hObject,'KeyPressFcn',{'keyboard_callback',handles_mouse})%set keyboard action function
    86 set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles_mouse})%set mouse action functio
     67set(hObject,'KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function
     68set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles})%set mouse action functio
    8769set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function
    88 set(hObject,'WindowButtonUpFcn',{'mouse_up',handles_mouse})
     70set(hObject,'WindowButtonUpFcn',{'mouse_up',handles})
    8971set(hObject,'DeleteFcn',{@closefcn})%
    9072set(hObject,'ResizeFcn',{@ResizeFcn,handles})%
     
    10385    write_plot_param(handles,PlotParamOut);% update the display of the plotting parameters
    10486end
     87
     88%put the GUI on the lower right of the sceen
     89pos_view_field=get(hObject,'Position');
     90ScreenSize=get(0,'ScreenSize');
     91pos_view_field(1)=ScreenSize(1)+ScreenSize(3)-pos_view_field(3);
     92pos_view_field(2)=ScreenSize(2);
     93set(hObject,'Position',pos_view_field)
    10594
    10695%------------------------------------------------------------------------
     
    827816
    828817
     818%
     819%
     820% % --- Executes when view_field is resized.
     821% function view_field_ResizeFcn(hObject, eventdata, handles)
     822% % hObject    handle to view_field (see GCBO)
     823% % eventdata  reserved - to be defined in a future version of MATLAB
     824% % handles    structure with handles and user data (see GUIDATA)
Note: See TracChangeset for help on using the changeset viewer.