Esempio n. 1
0
 /// <summary>
 /// Calculates the geometry for any spatial features that were created by
 /// this editing operation.
 /// </summary>
 /// <param name="ctx">The context in which the geometry is being calculated.</param>
 /// <remarks>This implementation does nothing. Derived classes that need to are
 /// expected to provide a suitable override.</remarks>
 internal virtual void CalculateGeometry(EditingContext ctx)
 {
     // Do nothing
 }
Esempio n. 2
0
        /// <summary>
        /// Defines the position of this point as a new un-shared position.
        /// </summary>
        /// <param name="ctx">The context in which the assignment is being made. May be null, but do
        /// so with care - an editing context is vital when dealing with the propagation of updates.
        /// </param>
        /// <param name="value">The position to assign (not null).</param>
        internal void ApplyPointGeometry(EditingContext ctx, PointGeometry value)
        {
            if (value == null)
                throw new ArgumentNullException();

            if (ctx != null)
                ctx.RegisterChange(this);

            m_Geom = new Node(this, value);
        }