function vm=getviewmode %GETVIEWMODE Return the current view mode. % % MODE = GETVIEWMODE % % getviewmode returns the UserData of the checked-on view menu item % % See also: SHOWIMAGE % % Claudio May 16 1995 % % % Copyright (c) 1995 by Claudio Rivetti and Mark Young % claudio@alice.uoregon.edu, mark@alice.uoregon.edu % global Handlefig mnb=findobj(finduimenu(Handlefig), 'label', 'View '); ch=get(mnb, 'children'); ck=findobj(ch, 'checked', 'on'); vm=get(ck, 'UserData'); return