www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/xregBoundaryEditor.m
function out = xregBoundaryEditor( root ) %XREGBOUNDARYEDITOR Create a boundary editor window % % H = XREGBOUNDARYEDITOR returns a handle to Boundary Editor % If there is no boundary editor present then a new one is created. % % Calling this function will result in the boundary editor being made % visible. % % H = XREGBOUNDARYEDITOR( ROOT ) sets the root node in the boundary tree % in the editor. % % To check if the editor is visible use, e.g., % h = xregBoundaryEditor; % isVisible = ~isempty( h ) && strcmpi( 'on', h.Visible ); % % See also XREGDESIGNEDITOR. % Copyright 2005-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin hEditor = xregbdrygui.Editor.create('Root',root); % Make GUI visible if ~isempty( hEditor ) && options.Show, hEditor.Visible = 'on'; end else % find the boundary editor hEditor = xregbdrygui.Editor.find('BoundaryEditor'); end % Return the handle if the caller wants it if nargout, out = hEditor; end