Example #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryFilter filter) 
 {
     filter.Filter(this);
 }
Example #2
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>
		///  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);
			}
		}
 /// <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);
 }
Example #5
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 );
		}