C# Class MapAround.Geometry.BufferBuilder

Calculates buffers. Supports MapAround.Geometry.PointD, MapAround.Geometry.Polyline, MapAround.Geometry.Polygon, MapAround.Geometry.MultiPoint. Buffer distance for polygon may be negative.
ファイルを表示 Open project: gkrsu/maparound.core

Public Methods

Method Description
GetBuffer ( IGeometry geometry, double distance, int pointsPerCircle, bool allowParallels ) : IGeometry

Builds a buffer for the specified geometry.

Private Methods

Method Description
getArcPoints ( ICoordinate point, double startAngle, double endAngle, double distance, int pointsPerCircle ) : ICoordinate[]
getBoundsBuffer ( Polygon polygon, double distance, int pointsPerCircle, bool allowParallels ) : Polygon
getCoordinateBuffer ( ICoordinate point, double distance, int pointsPerCircle ) : Polygon
getMultiPointBuffer ( MultiPoint multiPoint, double distance, int pointsPerCircle, bool allowParallels ) : IGeometry
getPointBuffer ( PointD point, double distance, int pointsPerCircle ) : Polygon
getPolygonBuffer ( Polygon polygon, double distance, int pointsPerCircle, bool allowParallels ) : Polygon
getPolylineBuffer ( Polyline polyline, double distance, int pointsPerCircle, bool allowParallels ) : Polygon
getSegmentPreBuffer ( Segment segment, double distance, int pointsPerCircle, bool bothSides ) : Polygon
mergePartialBuffers ( List buffers ) : Polygon
mergePartialBuffers ( List buffers, bool allowParallels ) : Polygon
mergePartialBuffers ( object buffers ) : void

Method Details

GetBuffer() public static method

Builds a buffer for the specified geometry.
public static GetBuffer ( IGeometry geometry, double distance, int pointsPerCircle, bool allowParallels ) : IGeometry
geometry IGeometry The geometry to build a buffer
distance double Buffer distance
pointsPerCircle int The number of points in a polygon approximating a circle of a point object buffer
allowParallels bool The value indicating whether the parallel computing will be used when possible
return IGeometry