Пример #1
0
        /// <summary>
        /// Checks whether this operation makes reference to a specific feature.
        /// </summary>
        /// <param name="feat">The feature to check for.</param>
        /// <returns>True if this edit depends on (contains a reference to) the supplied feature</returns>
        bool HasReference(Feature feat)
        {
            if (Object.ReferenceEquals(m_Center, feat))
            {
                return(true);
            }

            if (m_Radius.HasReference(feat))
            {
                return(true);
            }

            return(false);
        }
        /// <summary>
        /// Checks whether this operation makes reference to a specific feature.
        /// </summary>
        /// <param name="feat">The feature to check for.</param>
        /// <returns>True if this edit depends on (contains a reference to) the supplied feature</returns>
        bool HasReference(Feature feat)
        {
            if (Object.ReferenceEquals(m_From, feat))
            {
                return(true);
            }

            if (m_Direction.HasReference(feat))
            {
                return(true);
            }

            if (m_Distance.HasReference(feat))
            {
                return(true);
            }

            return(false);
        }
Пример #3
0
        /// <summary>
        /// Checks whether this operation makes reference to a specific feature.
        /// </summary>
        /// <param name="feat">The feature to check for.</param>
        /// <returns>True if this edit depends on (contains a reference to) the supplied feature</returns>
        bool HasReference(Feature feat)
        {
            if (Object.ReferenceEquals(m_From1, feat) ||
                Object.ReferenceEquals(m_From2, feat))
            {
                return(true);
            }

            if (m_Distance1.HasReference(feat))
            {
                return(true);
            }

            if (m_Distance2.HasReference(feat))
            {
                return(true);
            }

            return(false);
        }