Changeset 705 for trunk/src/set_object.m
- Timestamp:
- Feb 12, 2014, 12:02:04 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r684 r705 36 36 function varargout = set_object(varargin) 37 37 38 % Last Modified by GUIDE v2.5 02-Sep-2013 11:39:5638 % Last Modified by GUIDE v2.5 11-Feb-2014 20:08:17 39 39 40 40 % Begin initialization code - DO NOT REFRESH … … 82 82 set(0,'Unit','pixels') 83 83 ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right 84 Width=300;% fig width in pixels 85 Height=600; 84 PosGUI=get(handles.set_object,'Position');% fig width in pixels 85 Width=PosGUI(3);%width of the gui set_object in pixels 86 Height=PosGUI(4); 86 87 Left=ScreenSize(3)- Width-40; %right edge close to the right, with margin=40 87 88 Bottom=ScreenSize(4)-Height-40; %put fig at top right … … 650 651 def=[Object.Style '.xml']; 651 652 end 652 displ_txt={ 'save object as an .xml file in';dir_save};%default display653 displ_txt={['save object in' dir_save]; 'with file name (.xml):'};%default display 653 654 menu=get(handles.ProjMode,'String'); 654 655 value=get(handles.ProjMode,'Value'); 655 656 ProjMode=menu{value}; 656 657 if strcmp(ProjMode,'mask_inside')||strcmp(ProjMode,'mask_outside') 657 displ_txt={ 'save mask contour as an .xml file:'; 'to create a mask image, use save_mask on the GUI uvmat (lower right)'};658 displ_txt={displ_txt; '(to create a mask image, use save_mask on the GUI uvmat upper menu)'}; 658 659 end 659 660 answer=msgbox_uvmat('INPUT_TXT',displ_txt,def); 660 if isc ell(answer)661 FullName=fullfile(dir_save,answer {1});661 if ischar(answer) 662 FullName=fullfile(dir_save,answer); 662 663 t=struct2xml(Object); 663 664 t=set(t,1,'name','ProjObject'); … … 784 785 set(handles.Coord,'Data',Coord); 785 786 end 786 787 788
Note: See TracChangeset
for help on using the changeset viewer.