Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::strategy::buffer::end_round Class Reference

Let the buffer create rounded ends. More...

#include <buffer_end_round.hpp>

Public Member Functions

 end_round (std::size_t points_per_circle=90)
 Constructs the strategy. More...
 
template<typename Point , typename RangeOut , typename DistanceStrategy >
void apply (Point const &penultimate_point, Point const &perp_left_point, Point const &ultimate_point, Point const &, buffer_side_selector side, DistanceStrategy const &distance, RangeOut &range_out) const
 Fills output_range with a flat end. More...
 

Static Public Member Functions

template<typename NumericType >
static NumericType max_distance (NumericType const &distance)
 
static piece_type get_piece_type ()
 Returns the piece_type (flat end) More...
 

Detailed Description

Let the buffer create rounded ends.

This strategy can be used as EndStrategy for the buffer algorithm. It creates a rounded end for each linestring-end. It can be applied for (multi)linestrings. Also it is applicable for spikes in (multi)polygons. This strategy is only applicable for Cartesian coordinate systems.

{ [heading Example] [buffer_end_round] [heading Output] [$img/strategies/buffer_end_round.png] [heading See also]

  • [link geometry.reference.algorithms.buffer.buffer_7_with_strategies buffer (with strategies)]
  • [link geometry.reference.strategies.strategy_buffer_end_flat end_flat] }

Constructor & Destructor Documentation

boost::geometry::strategy::buffer::end_round::end_round ( std::size_t  points_per_circle = 90)
inlineexplicit

Constructs the strategy.

Parameters
points_per_circlepoints which would be used for a full circle

Member Function Documentation

template<typename Point , typename RangeOut , typename DistanceStrategy >
void boost::geometry::strategy::buffer::end_round::apply ( Point const &  penultimate_point,
Point const &  perp_left_point,
Point const &  ultimate_point,
Point const &  ,
buffer_side_selector  side,
DistanceStrategy const &  distance,
RangeOut &  range_out 
) const
inline
static piece_type boost::geometry::strategy::buffer::end_round::get_piece_type ( )
inlinestatic

Returns the piece_type (flat end)

References boost::geometry::strategy::buffer::buffered_round_end.

template<typename NumericType >
static NumericType boost::geometry::strategy::buffer::end_round::max_distance ( NumericType const &  distance)
inlinestatic

References boost::distance().


The documentation for this class was generated from the following file: