/// <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); }
/// <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; } }
/// <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 }
/// <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(); }
/// <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); }