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_square Class Reference

Create a squared form buffer around a point. More...

#include <buffer_point_square.hpp>

Public Member Functions

template<typename Point , typename DistanceStrategy , typename OutputRange >
void apply (Point const &point, DistanceStrategy const &distance_strategy, OutputRange &output_range) const
 Fills output_range with a square around point using distance_strategy. More...
 

Detailed Description

Create a squared form buffer around a point.

This strategy can be used as PointStrategy for the buffer algorithm. It creates a square from each point, where the point lies in the center. 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_square] [heading Output] [$img/strategies/buffer_point_square.png] [heading See also]

  • [link geometry.reference.algorithms.buffer.buffer_7_with_strategies buffer (with strategies)]
  • [link geometry.reference.strategies.strategy_buffer_point_circle point_circle] }

Member Function Documentation

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

Fills output_range with a square around point using distance_strategy.

References boost::geometry::strategy::buffer::buffer_side_left.


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