function h = bodegain(varargin)
%BODEGAIN  Constructor for the Bode Gain Constraint objects.

%   Authors: N. Hickey, A. Stothert
%   Copyright 1986-2004 The MathWorks, Inc. 
%   $Revision: 1.1.6.2 $ $Date: 2004/12/10 19:30:45 $

% Create class instance
hParent = [];
if nargin > 0
   %Check to see if we've an explicit parent setting
   idx = find(strcmpi(varargin,'Parent'));
   if ~isempty(idx)
      hParent = varargin{idx+1};
      varargin = {varargin{1:idx-1}, varargin{idx+2:end}};
   end
end
if ~isempty(hParent)
   h = plotconstr.bodegain('Parent',hParent);
else
   h = plotconstr.bodegain;
end
h.EventManager = ctrluis.eventmgr;
h.Data         = plotconstr.polygondata;

% Initialize properties
h.Orientation    = 'horizontal';
h.xCoords        = [1 10];
h.xUnits         = 'rad/sec';
h.yCoords        = [0 0];
h.yUnits         = 'dB';
h.Ts             = 0;
h.xDisplayUnits  = h.FrequencyUnits;
h.yDisplayUnits  = h.MagnitudeUnits;

% Install default BDF
h.defaultbdf;

if ~isempty(varargin)
   %Set any constructor called properties
   set(h,varargin{:})
end
