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

Let the buffer create flat ends. More...

#include <buffer_end_flat.hpp>

Public Member Functions

template<typename Point , typename RangeOut , typename DistanceStrategy >
void apply (Point const &penultimate_point, Point const &perp_left_point, Point const &ultimate_point, Point const &perp_right_point, 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 flat ends.

This strategy can be used as EndStrategy for the buffer algorithm. It creates a flat 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_flat] [heading Output] [$img/strategies/buffer_end_flat.png] [heading See also]

  • [link geometry.reference.algorithms.buffer.buffer_7_with_strategies buffer (with strategies)]
  • [link geometry.reference.strategies.strategy_buffer_end_round end_round] }

Member Function Documentation

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

Returns the piece_type (flat end)

References boost::geometry::strategy::buffer::buffered_flat_end.

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

References boost::distance().


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