/// <summary>
 /// This simply forwards the call from a layer to the container
 /// of this collection (like a MapFrame).
 /// </summary>
 /// <param name="sender">The layer that actually changed</param>
 /// <param name="e"></param>
 protected virtual void OnBufferChanged(object sender, ClipArgs e)
 {
     if (BufferChanged != null)
     {
         BufferChanged(sender, e);
     }
 }
Example #2
0
 /// <summary>
 /// Fires the OnBufferChanged event
 /// </summary>
 /// <param name="clipRectangles">The Rectangle in pixels</param>
 protected virtual void OnBufferChanged(List <Rectangle> clipRectangles)
 {
     if (BufferChanged != null)
     {
         ClipArgs e = new ClipArgs(clipRectangles);
         BufferChanged(this, e);
     }
 }
Example #3
0
 /// <summary>
 /// Fires the OnBufferChanged event
 /// </summary>
 /// <param name="clipRectangles">The Rectangle in pixels</param>
 protected virtual void OnBufferChanged(List<Rectangle> clipRectangles)
 {
     if (BufferChanged != null)
     {
         ClipArgs e = new ClipArgs(clipRectangles);
         BufferChanged(this, e);
     }
 }
Example #4
0
 private void MapFrame_BufferChanged(object sender, ClipArgs e)
 {
     Rectangle view = MapFrame.View;
     foreach (Rectangle clip in e.ClipRectangles)
     {
         if (clip.IsEmpty == false)
         {
             Rectangle mapClip = new Rectangle(clip.X - view.X, clip.Y - view.Y, clip.Width, clip.Height);
             Invalidate(mapClip);
         }
     }
 }
 /// <summary>
 /// This simply forwards the call from a layer to the container of this collection (like a MapFrame).
 /// </summary>
 /// <param name="sender">The layer that actually changed</param>
 /// <param name="e">The clip args.</param>
 protected virtual void OnBufferChanged(object sender, ClipArgs e)
 {
     BufferChanged?.Invoke(sender, e);
 }
 /// <summary>
 /// This simply forwards the call from a layer to the container
 /// of this collection (like a MapFrame).
 /// </summary>
 /// <param name="sender">The layer that actually changed</param>
 /// <param name="e"></param>
 protected virtual void OnBufferChanged(object sender, ClipArgs e)
 {
     if (BufferChanged != null) BufferChanged(sender, e);
 }
Example #7
0
 /// <summary>
 /// Fires the BufferChanged event.  This is fired even if the new content is not currently
 /// in the view rectangle.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void OnBufferChanged(object sender, ClipArgs e)
 {
     if (BufferChanged != null) BufferChanged(this, e);
 }
Example #8
0
 /// <summary>
 /// When any region for the stencil of any layers is changed, we should update the
 /// image that we have in that region.  This activity will be suspended in the
 /// case of a large scale update for all the layers until they have all updated.
 /// </summary>
 private void GeoLayerBufferChanged(object sender, ClipArgs e)
 {
     OnBufferChanged(this, e);
 }