% MODELVIEWER is a graphical user interface for viewing the built-in AO and
% SSM models
%
% CALL: modelViewer
%       modelViewer(h) % build the model viewer in the figure with handle, h.
%
% M Hewitson 24-11-08
%
% $Id: modelViewer.m,v 1.3 2011/04/08 08:56:34 hewitson Exp $
%
classdef modelViewer < handle

  properties
    handle      = [];
    signals     = [];
  end
  properties (SetAccess=private, GetAccess=private)
    Gproperties = [];
    SigSelected = [];
  end
  
  methods
    function mainfig = modelViewer(varargin)
      % Build the main figure
      mainfig = buildMainfig(mainfig, varargin{:});      
      % Make the GUI visible.
      set(mainfig.handle,'Visible','on')
    end
  end % End public methods

  methods (Static=true)
    % Main figure
    varargout = cb_mainfigClose(varargin);  
    varargout = cb_selectModelType(varargin);
    varargout = cb_selectModel(varargin);
    varargout = buildParamsPanel(varargin);
    varargout = getParamsFromPanel(varargin);
    varargout = cb_buildModel(varargin);    
    varargout = buildObject(varargin);
    varargout = cb_typeModel(varargin);
    
  end
  
  methods (Access = private)    
    varargout = buildMainfig(varargin);
  end
  
  methods (Access = public)
  end
  
end

% END
