MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLBufferHelper Class Reference

Detailed Description

This class provides methods for buffering entities.

Currently the entities that can be buffered are polylines, polygons and symbols.

Static Public Member Functions

static TSLPolygonbuffer (const TSLPolygon *polygon, const int distance, const int curveIncrementInDegrees=5)
 
static TSLEntitybuffer (const TSLPolyline *polyline, const int distance, const TSLBufferSideSelection side=TSLBufferSideSelectionLeft)
 
static TSLEntitybuffer (const TSLPolyline *polyline, const int distance, const TSLCoord &point)
 
static TSLEllipsebuffer (const TSLSymbol *symbol, const int distance)
 
static TSLEntitybuffer (const TSLEntity *entity, const int distance)
 

Member Function Documentation

◆ buffer() [1/5]

static TSLEntity * TSLBufferHelper::buffer ( const TSLEntity * entity,
const int distance )
static

This method buffers the given entity by the specified distance.

Parameters
entityThe entity to be buffered.
distanceThe size of the buffer in TMC units.
Returns
the buffered entity on success, NULL otherwise.

◆ buffer() [2/5]

static TSLPolygon * TSLBufferHelper::buffer ( const TSLPolygon * polygon,
const int distance,
const int curveIncrementInDegrees = 5 )
static

This method buffers the given polygon by the specified distance.

Parameters
polygonThe polygon to be buffered.
distanceThe width of the buffer in TMC units.
curveIncrementInDegreesDetermines the smoothness of the disc used to perform the buffering. The smaller the value, the smoother the buffer. Defaults to 5 degrees.
Returns
the buffered polygon on success, NULL otherwise.

◆ buffer() [3/5]

static TSLEntity * TSLBufferHelper::buffer ( const TSLPolyline * polyline,
const int distance,
const TSLBufferSideSelection side = TSLBufferSideSelectionLeft )
static

This method buffers the given polyline by the specified distance on the specified side.

Parameters
polylineThe polyline to be buffered.
distanceThe width of the buffer in TMC units (for a double sided buffer this should be half the width).
sideThe side of the polyline to be buffered. Defaults to TSLBufferSide SelectionLeft.
Returns
the buffered polyline on success, NULL otherwise.

◆ buffer() [4/5]

static TSLEntity * TSLBufferHelper::buffer ( const TSLPolyline * polyline,
const int distance,
const TSLCoord & point )
static

This method buffers the given polyline by the specified distance on the side specified by the given point.

Parameters
polylineThe polyline to be buffered.
distanceThe width of the buffer in TMC units.
pointThe point that determines which side the polyline should be buffered on.
Returns
the buffered polyline on success, NULL otherwise.

◆ buffer() [5/5]

static TSLEllipse * TSLBufferHelper::buffer ( const TSLSymbol * symbol,
const int distance )
static

This method buffers the given symbol, returning a circle with the specified distance as the radius.

Parameters
symbolThe symbol to be buffered.
distanceThe radius of the circle in TMC units.
Returns
the buffered symbol on success, NULL otherwise.