Let the buffer algorithm create buffers with same distances. More...
#include <buffer_distance_symmetric.hpp>
Public Member Functions | |
distance_symmetric (NumericType const &distance) | |
Constructs the strategy, a distance must be specified. More... | |
template<typename Point > | |
NumericType | apply (Point const &, Point const &, buffer_side_selector) const |
Returns the distance-value. More... | |
int | factor () const |
Used internally, returns -1 for deflate, 1 for inflate. More... | |
bool | negative () const |
Returns true if distance is negative. More... | |
template<typename JoinStrategy , typename EndStrategy > | |
NumericType | max_distance (JoinStrategy const &join_strategy, EndStrategy const &end_strategy) const |
Returns the max distance distance up to the buffer will reach. More... | |
NumericType | simplify_distance () const |
Returns the distance at which the input is simplified before the buffer process. More... | |
Let the buffer algorithm create buffers with same distances.
NumericType |
This strategy can be used as DistanceStrategy for the buffer algorithm. It can be applied for all geometries. It uses one distance for left and for right. If the distance is negative and used with a (multi)polygon or ring, the geometry will shrink (deflate) instead of expand (inflate).
{ [heading Example] [buffer_distance_symmetric] [heading Output] [$img/strategies/buffer_distance_symmetric.png] [heading See also]
|
inlineexplicit |
Constructs the strategy, a distance must be specified.
distance | The distance (or radius) of the buffer |
|
inline |
Returns the distance-value.
References boost::geometry::math::abs(), and boost::geometry::strategy::buffer::distance_symmetric< NumericType >::negative().
|
inline |
Used internally, returns -1 for deflate, 1 for inflate.
References boost::geometry::strategy::buffer::distance_symmetric< NumericType >::negative().
|
inline |
Returns the max distance distance up to the buffer will reach.
References boost::geometry::math::abs(), and boost::accumulators::extract::max.
|
inline |
Returns true if distance is negative.
Referenced by boost::geometry::strategy::buffer::distance_symmetric< NumericType >::apply(), and boost::geometry::strategy::buffer::distance_symmetric< NumericType >::factor().
|
inline |
Returns the distance at which the input is simplified before the buffer process.
References boost::geometry::math::abs().