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::join_round Class Reference

Let the buffer create rounded corners. More...

#include <buffer_join_round.hpp>

Public Member Functions

 join_round (std::size_t points_per_circle=90)
 Constructs the strategy. More...
 
template<typename Point , typename DistanceType , typename RangeOut >
bool apply (Point const &ip, Point const &vertex, Point const &perp1, Point const &perp2, DistanceType const &buffer_distance, RangeOut &range_out) const
 Fills output_range with a rounded shape around a vertex. More...
 

Static Public Member Functions

template<typename NumericType >
static NumericType max_distance (NumericType const &distance)
 

Detailed Description

Let the buffer create rounded corners.

This strategy can be used as JoinStrategy for the buffer algorithm. It creates a rounded corners around each convex vertex. It can be applied for (multi)linestrings and (multi)polygons. This strategy is only applicable for Cartesian coordinate systems.

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

  • [link geometry.reference.algorithms.buffer.buffer_7_with_strategies buffer (with strategies)]
  • [link geometry.reference.strategies.strategy_buffer_join_miter join_miter] }

Constructor & Destructor Documentation

boost::geometry::strategy::buffer::join_round::join_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 DistanceType , typename RangeOut >
bool boost::geometry::strategy::buffer::join_round::apply ( Point const &  ip,
Point const &  vertex,
Point const &  perp1,
Point const &  perp2,
DistanceType const &  buffer_distance,
RangeOut &  range_out 
) const
inline
template<typename NumericType >
static NumericType boost::geometry::strategy::buffer::join_round::max_distance ( NumericType const &  distance)
inlinestatic

References boost::distance().


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