/// <summary>Gets informations of the current object as a specific <see cref="InfoOutput" /> instance.
        /// </summary>
        /// <param name="infoOutput">The <see cref="InfoOutput" /> object which is to be filled with informations concering the current instance.</param>
        /// <param name="categoryName">The name of the category, i.e. all informations will be added to these category.</param>
        public void FillInfoOutput(InfoOutput infoOutput, string categoryName = "General")
        {
            var infoOutputPackage = infoOutput.AcquirePackage(categoryName);

            infoOutputPackage.Add("Count", GridPointCount);
            infoOutputPackage.Add("Is read-only", IsReadOnly);

            if (m_CurveBuilder.Factory is GridPointCurve.Interpolator)
            {
                m_CurveBuilder.FillInfoOutput(infoOutput, categoryName + ".Interpolator");
                m_LeftExtrapolator.FillInfoOutput(infoOutput, categoryName + ".Extrapolator.Left");
                m_RightExtrapolator.FillInfoOutput(infoOutput, categoryName + ".Extrapolator.Right");
            }
            else
            {
                m_CurveBuilder.FillInfoOutput(infoOutput, categoryName + ".Parametrization");
                m_LeftExtrapolator.FillInfoOutput(infoOutput, categoryName + ".Truncation.Left");
                m_RightExtrapolator.FillInfoOutput(infoOutput, categoryName + ".Truncation.Right");
            }
        }
Example #2
0
        /// <summary>Gets informations of the current object as a specific <see cref="InfoOutput" /> instance.
        /// </summary>
        /// <param name="infoOutput">The <see cref="InfoOutput" /> object which is to be filled with informations concering the current instance.</param>
        /// <param name="categoryName">The name of the category, i.e. all informations will be added to these category.</param>
        public void FillInfoOutput(InfoOutput infoOutput, string categoryName = "General")
        {
            var infoOutputPackage = infoOutput.AcquirePackage(categoryName);

            infoOutputPackage.Add("Count", GridPointCount);
            infoOutputPackage.Add("Is read-only", IsReadOnly);

            m_CurveInterpolator.FillInfoOutput(infoOutput, categoryName + ".Interpolator");
            m_LeftExtrapolator.FillInfoOutput(infoOutput, categoryName + ".Extrapolator.Left");
            m_RightExtrapolator.FillInfoOutput(infoOutput, categoryName + ".Extrapolator.Right");
        }