Esempio n. 1
0
        /// <summary>
        /// Performs any processing that needs to be done just before the position of
        /// a referenced feature is changed.
        /// </summary>
        /// <param name="f">The feature that is about to be moved  - something that
        /// the <c>IFeatureDependent</c> is dependent on (not null).</param>
        /// <param name="ctx">The context in which the move is being made (not null).</param>
        public override void OnFeatureMoving(Feature f, UpdateEditingContext ctx)
        {
            // Remove the circle from the spatial index
            this.Circle.OnFeatureMoving(f, ctx);

            base.OnFeatureMoving(f, ctx);
        }
Esempio n. 2
0
        /// <summary>
        /// Performs any processing that needs to be done just before the position of
        /// a referenced feature is changed.
        /// </summary>
        /// <param name="f">The feature that is about to be moved  - something that
        /// the <c>IFeatureDependent</c> is dependent on (not null).</param>
        /// <param name="ctx">The context in which the move is being made (not null).</param>
        public void OnFeatureMoving(Feature f, UpdateEditingContext ctx)
        {
            EditingIndex index = f.MapModel.EditingIndex;

            if (index != null && this.IsIndexed)
            {
                index.RemoveCircle(this);
                this.IsIndexed = false;
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Performs any processing that needs to be done just before the position of
 /// a referenced feature is changed.
 /// </summary>
 /// <param name="f">The feature that is about to be moved (not null).</param>
 /// <param name="ctx">The context in which the move is being made (not null).</param>
 public void OnFeatureMoving(Feature f, UpdateEditingContext context)
 {
     // Do nothing
 }
Esempio n. 4
0
 /// <summary>
 /// Performs any processing that needs to be done just before the position of
 /// a referenced feature is changed.
 /// </summary>
 /// <param name="f">The feature that is about to be moved (not null).</param>
 /// <param name="ctx">The context in which the move is being made (not null).</param>
 public void OnFeatureMoving(Feature f, UpdateEditingContext context)
 {
     // Do nothing
 }
Esempio n. 5
0
 /// <summary>
 /// Performs any processing that needs to be done just before the position of
 /// a referenced feature is changed.
 /// </summary>
 /// <param name="f">The feature that is about to be moved  - something that
 /// the <c>IFeatureDependent</c> is dependent on (not null).</param>
 /// <param name="ctx">The context in which the move is being made (not null).</param>
 public virtual void OnFeatureMoving(Feature f, UpdateEditingContext ctx)
 {
     RemoveIndex();
 }
Esempio n. 6
0
        /// <summary>
        /// Performs any processing that needs to be done just before the position of
        /// a referenced feature is changed.
        /// </summary>
        /// <param name="f">The feature that is about to be moved  - something that
        /// the <c>IFeatureDependent</c> is dependent on (not null).</param>
        /// <param name="ctx">The context in which the move is being made (not null).</param>
        public override void OnFeatureMoving(Feature f, UpdateEditingContext ctx)
        {
            // Remove line from spatial index, so long as the feature being moved is
            // an end point.
            bool isEndPointMoving = (f == this.StartPoint || f == this.EndPoint);
            if (isEndPointMoving)
                base.OnFeatureMoving(f, ctx);

            // If we have a line that's been cut up into a series of
            // dividers, remove them all.
            ResetTopology();

            // If the feature that's being changed is a point that isn't
            // one of this line's end points, remove the point->line reference
            if (!isEndPointMoving && (f is PointFeature))
                (f as PointFeature).CutReference(this);
        }
Esempio n. 7
0
        /// <summary>
        /// Performs any processing that needs to be done just before the position of
        /// a referenced feature is changed.
        /// </summary>
        /// <param name="f">The feature that is about to be moved  - something that
        /// the <c>IFeatureDependent</c> is dependent on (not null).</param>
        /// <param name="ctx">The context in which the move is being made (not null).</param>
        public override void OnFeatureMoving(Feature f, UpdateEditingContext ctx)
        {
            // Remove the circle from the spatial index
            this.Circle.OnFeatureMoving(f, ctx);

            base.OnFeatureMoving(f, ctx);
        }