コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryComponentFilter filter)
 {
     filter.Filter(this);
     for (int i = 0; i < _geometries.Length; i++)
     {
         _geometries[i].Apply(filter);
     }
 }
コード例 #2
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(IGeometryComponentFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentException("Filters cannot be null");
     }
     filter.Filter(this);               // will cause a recusive loop????
     foreach (Geometry geom in _geometries)
     {
         geom.Apply(filter);
     }
 }
コード例 #3
0
 /// <summary>
 /// Performs an operation with or on this Geometry's components.
 /// </summary>
 /// <param name="filter">The filter to apply to this Geometry's components.</param>
 public override void Apply(IGeometryComponentFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentNullException("filter");
     }
     filter.Filter(this);
     _shell.Apply(filter);
     for (int i = 0; i < _holes.Length; i++)
     {
         _holes[i].Apply(filter);
     }
 }
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryComponentFilter filter)
 {
     filter.Filter(this);
 }
コード例 #5
0
ファイル: LineString.cs プロジェクト: lishxi/_SharpMap
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryComponentFilter filter) 
 {
     filter.Filter(this);
 }
コード例 #6
0
ファイル: Polygon.cs プロジェクト: ExRam/DotSpatial-PCL
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(IGeometryComponentFilter filter) 
 {
     filter.Filter(this);
     shell.Apply(filter);
     for (int i = 0; i < holes.Length; i++) 
         holes[i].Apply(filter);            
 }
コード例 #7
0
ファイル: Geometry.cs プロジェクト: joelmuzz/DotSpatial
 /// <summary>
 /// Performs an operation with or on this Geometry and its
 /// component Geometry's. Only GeometryCollections and
 /// Polygons have component Geometry's; for Polygons they are the LinearRings
 /// of the shell and holes.
 /// </summary>
 /// <param name="filter">The filter to apply to this <c>Geometry</c>.</param>
 public abstract void Apply(IGeometryComponentFilter filter);
コード例 #8
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(IGeometryComponentFilter filter)
		{
			if(filter == null)
			{
				throw new ArgumentException("Filters cannot be null");
			}
			filter.Filter( this ); // will cause a recusive loop????
			foreach( Geometry geom in _geometries )
			{
				geom.Apply( filter );
			}
		}
コード例 #9
0
 public override void Apply(IGeometryComponentFilter filter) => Linearize().Apply(filter);
コード例 #10
0
ファイル: Polygon.cs プロジェクト: xuchuansheng/GenXSource
		/// <summary>
		/// Performs an operation with or on this Geometry's components.
		/// </summary>
		/// <param name="filter">The filter to apply to this Geometry's components.</param>
		public override void Apply(IGeometryComponentFilter filter )
		{
			if (filter==null)
			{
				throw new ArgumentNullException("filter");
			}
			filter.Filter( this );
			_shell.Apply( filter );
			for ( int i = 0; i < _holes.Length; i++ )
			{
				_holes[i].Apply( filter );
			}
		}
コード例 #11
0
		/// <summary>
		/// Performs an operation with or on this Geometry and its component Geometries.  Only GeometryCollection and
		/// Polygons have component Geometryes; for Polygons they are the LinearRings of the shell and holes.
		/// </summary>
		/// <param name="filter">The filter to apply to this Geometry.</param>
		public abstract void Apply(IGeometryComponentFilter filter);