/// <summary>
        /// Creates a new <c>FindCirclesQuery</c> (and executes it). The result of the query
        /// can then be obtained through the <c>Result</c> property.
        /// </summary>
        /// <param name="index">The spatial index to search</param>
        /// <param name="p">The search position.</param>
        /// <param name="tol">The search tolerance (expected to be greater than zero).</param>
        internal FindCirclesQuery(EditingIndex index, IPosition p, ILength tol)
        {
            m_Position = p;
            m_Tolerance = tol.Meters;
            m_Result = new List<Circle>();

            // The query will actually involve a square window, not a circle.
            IWindow x = new Window(p, m_Tolerance * 2.0);
            index.FindCircles(x, OnQueryHit);
        }
Exemple #2
0
        /// <summary>
        /// Creates a new <c>FindCirclesQuery</c> (and executes it). The result of the query
        /// can then be obtained through the <c>Result</c> property.
        /// </summary>
        /// <param name="index">The spatial index to search</param>
        /// <param name="p">The search position.</param>
        /// <param name="tol">The search tolerance (expected to be greater than zero).</param>
        internal FindCirclesQuery(EditingIndex index, IPosition p, ILength tol)
        {
            m_Position  = p;
            m_Tolerance = tol.Meters;
            m_Result    = new List <Circle>();

            // The query will actually involve a square window, not a circle.
            IWindow x = new Window(p, m_Tolerance * 2.0);

            index.FindCircles(x, OnQueryHit);
        }