/// <summary> /// Создать массив из автовычислимых параметров стакана /// </summary> /// <param name="parameters">Параметры стакана, /// помеченные как автовычислимые</param> /// <returns></returns> private static bool[] CreateArrayAutoCalcParams( IAutoCalcParams parameters) { var p = parameters; return(new[] { p.Height, p.DiameterBottom, p.AngleHeight, p.DepthSide, p.DepthBottom, p.HeightFaceted, p.CountFaceted }); }
/// <summary> /// Установление параметров гладкого стакана. /// </summary> /// <param name="diameterBottom">Диаметр дна стакана.</param> /// <param name="height">Высота стакана.</param> public CleanGlass(BorderConditions <double> diameterBottom, BorderConditions <double> height) { //Фиксированные параметры - angle height, // count faceted, height faceted. //Зависимые автовычисляемые параметры - depth bottom, // depth side. //Задаваемые параметры - height, diameter bottom. _dependencies = new DependenciesParams(false, false, true, true, true, true, true); this._height = height; this._diameterBottom = diameterBottom; _isValidParams.Add(_labelDiameterBottom, true); _isValidParams.Add(_labelHeight, true); }