/// <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); } }
/// <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); } }
/// <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); } }
/// <summary> /// /// </summary> /// <param name="filter"></param> public override void Apply(IGeometryComponentFilter filter) { filter.Filter(this); }
/// <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); }
/// <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);
/// <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 ); } }
public override void Apply(IGeometryComponentFilter filter) => Linearize().Apply(filter);
/// <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 ); } }
/// <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);