Esempio n. 1
0
 ///<summary>
 ///  Performs an operation with or on this Geometry and it's children.
 ///</summary>
 ///<param name="filter">The filter to apply to this Geometry (and it's children, if it is a
 ///GeometryCollection).</param>
 public override void Apply(IGeometryFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentNullException("filter");
     }
     filter.Filter(this);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryFilter filter)
 {
     filter.Filter(this);
     for (int i = 0; i < _geometries.Length; i++)
     {
         _geometries[i].Apply(filter);
     }
 }
Esempio n. 3
0
 ///<summary>
 ///  Performs an operation with or on this Geometry and it's children.
 ///</summary>
 ///<param name="filter">The filter to apply to this Geometry (and it's children, if it is a
 ///GeometryCollection).</param>
 public override void Apply(IGeometryFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentException("Filters cannot be null");
     }
     filter.Filter(this);
     foreach (Geometry geom in _geometries)
     {
         geom.Apply(filter);
     }
 }
Esempio n. 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryFilter filter)
 {
     filter.Filter(this);
 }
Esempio n. 5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryFilter filter) 
 {
     filter.Filter(this);
 }
Esempio n. 6
0
 /// <summary>
 /// Performs an operation with or on this <c>Geometry</c> and its
 /// subelement <c>Geometry</c>s (if any).
 /// Only GeometryCollections and subclasses
 /// have subelement Geometry's.
 /// </summary>
 /// <param name="filter">
 /// The filter to apply to this <c>Geometry</c> (and
 /// its children, if it is a <c>GeometryCollection</c>).
 /// </param>
 public abstract void Apply(IGeometryFilter filter);
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryFilter filter)
 {
     filter.Filter(this);
     for (int i = 0; i < _geometries.Length; i++)
         _geometries[i].Apply(filter);
 }
Esempio n. 8
0
 public FilteredGeometryCollector WherePasses(IGeometryFilter filter)
 {
     Filters.Add(filter);
     return(this);
 }
		///<summary>
		///  Performs an operation with or on this Geometry and it's children.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry (and it's children, if it is a 
		///GeometryCollection).</param>
		public override void Apply(IGeometryFilter filter)
		{
			if(filter == null)
			{
				throw new ArgumentException("Filters cannot be null");
			}
			filter.Filter( this );
			foreach(Geometry geom in _geometries)
			{
				geom.Apply(filter);
			}
		}
Esempio n. 10
0
 public override void Apply(IGeometryFilter filter) => Linearize().Apply(filter);
Esempio n. 11
0
		///<summary>
		///  Performs an operation with or on this Geometry and it's children.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry (and it's children, if it is a 
		///GeometryCollection).</param>
		public override void Apply(IGeometryFilter filter)
		{
			if (filter==null)
			{
				throw new ArgumentNullException("filter");
			}
			filter.Filter( this );
		}
Esempio n. 12
0
		///<summary>
		///  Performs an operation with or on this Geometry and it's subelement Geometrys (if any).
		///  Only GeometryCollections and subclasses have subelement Geometrys.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry (and it's children, if it is a 
		///GeometryCollection).</param>
		public abstract void Apply(IGeometryFilter filter);