Пример #1
0
 /// <summary>
 /// Adds any members found in the specified region to the selected state as long as SelectionEnabled is set to true.
 /// </summary>
 /// <param name="tolerant">The geographic region where selection occurs that is tolerant for point or linestrings.</param>
 /// <param name="strict">The tight envelope to use for polygons.</param>
 /// <param name="mode">The selection mode.</param>
 /// <param name="affectedArea">The envelope affected area.</param>
 /// <returns>Boolean, true if any members were added to the selection.</returns>
 public bool UnSelect(IEnvelope tolerant, IEnvelope strict, SelectionMode mode, out IEnvelope affectedArea)
 {
     affectedArea = new Envelope();
     if (MapFrame == null) return false;
     return MapFrame.UnSelect(tolerant, strict, mode, out affectedArea);
 }
Пример #2
0
 /// <summary>
 /// Adds any members found in the specified region to the selected state as long as SelectionEnabled is set to true.
 /// </summary>
 /// <param name="tolerant">The geographic region where selection occurs that is tolerant for point or linestrings.</param>
 /// <param name="strict">The tight envelope to use for polygons.</param>
 /// <param name="mode">The selection mode.</param>
 /// <param name="affectedArea">The envelope affected area.</param>
 /// <returns>Boolean, true if any members were added to the selection.</returns>
 public bool Select(IEnvelope tolerant, IEnvelope strict, SelectionMode mode, out IEnvelope affectedArea)
 {
     return _mapCore.Select(tolerant, strict, mode, out affectedArea);
 }
Пример #3
0
 /// <summary>
 /// Inverts the selected state of any members in the specified region.
 /// </summary>
 /// <param name="tolerant">The geographic region where selection occurs that is tolerant for point or linestrings.</param>
 /// <param name="strict">The tight envelope to use for polygons.</param>
 /// <param name="mode">The selection mode determining how to test for intersection.</param>
 /// <param name="affectedArea">The geographic region encapsulating the changed members.</param>
 /// <returns>boolean, true if members were changed by the selection process.</returns>
 public bool InvertSelection(IEnvelope tolerant, IEnvelope strict, SelectionMode mode, out IEnvelope affectedArea)
 {
     affectedArea = new Envelope();
     if (_map.MapFrame == null) return false;
     return _map.MapFrame.InvertSelection(tolerant, strict, mode, out affectedArea);
 }
Пример #4
0
 /// <summary>
 /// Adds any members found in the specified region to the selected state as long as SelectionEnabled is set to true.
 /// </summary>
 /// <param name="tolerant">The geographic region where selection occurs that is tolerant for point or linestrings.</param>
 /// <param name="strict">The tight envelope to use for polygons.</param>
 /// <param name="mode">The selection mode.</param>
 /// <param name="affectedArea">The envelope affected area.</param>
 /// <returns>Boolean, true if any members were added to the selection.</returns>
 public static bool Select(this IMap map, IEnvelope tolerant, IEnvelope strict, SelectionMode mode, out IEnvelope affectedArea)
 {
     affectedArea = new Envelope();
     if (map.MapFrame == null) return false;
     return map.MapFrame.Select(tolerant, strict, mode, out affectedArea);
 }