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

Create a circular buffer around a point. More...

#include <buffer_point_circle.hpp>

Public Member Functions

 point_circle (std::size_t count=90)
 Constructs the strategy. More...
 
template<typename Point , typename OutputRange , typename DistanceStrategy >
void apply (Point const &point, DistanceStrategy const &distance_strategy, OutputRange &output_range) const
 Fills output_range with a circle around point using distance_strategy. More...
 

Detailed Description

Create a circular buffer around a point.

This strategy can be used as PointStrategy for the buffer algorithm. It creates a circular buffer around a point. It can be applied for points and multi_points, but also for a linestring (if it is degenerate, so consisting of only one point) and for polygons (if it is degenerate). This strategy is only applicable for Cartesian coordinate systems.

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

  • [link geometry.reference.algorithms.buffer.buffer_7_with_strategies buffer (with strategies)]
  • [link geometry.reference.strategies.strategy_buffer_point_square point_square] }

Constructor & Destructor Documentation

boost::geometry::strategy::buffer::point_circle::point_circle ( std::size_t  count = 90)
inlineexplicit

Constructs the strategy.

Parameters
countnumber of points for the created circle

Member Function Documentation

template<typename Point , typename OutputRange , typename DistanceStrategy >
void boost::geometry::strategy::buffer::point_circle::apply ( Point const &  point,
DistanceStrategy const &  distance_strategy,
OutputRange &  output_range 
) const
inline

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