mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[buffer] rename strategy (review result)
This commit is contained in:
parent
e9149afdae
commit
c46e4625a7
@ -40,8 +40,8 @@
|
||||
<div><div class="author"><h3 class="author">
|
||||
<span class="firstname">Vissarion</span> <span class="surname">Fisikopoulos</span>
|
||||
</h3></div></div>
|
||||
<div><p class="copyright">Copyright © 2009-2018 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam Wulkiewicz, Oracle
|
||||
and/or its affiliates</p></div>
|
||||
<div><p class="copyright">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
|
||||
Wulkiewicz, Oracle and/or its affiliates</p></div>
|
||||
<div><div class="legalnotice">
|
||||
<a name="geometry.legal"></a><p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
@ -143,7 +143,7 @@
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"><p><small>Last revised: January 16, 2019 at 11:01:19 GMT</small></p></td>
|
||||
<td align="left"><p><small>Last revised: February 13, 2019 at 10:27:00 GMT</small></p></td>
|
||||
<td align="right"><div class="copyright-footer"></div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
|
@ -147,8 +147,8 @@
|
||||
[import src/examples/strategies/buffer_distance_symmetric.cpp]
|
||||
[import src/examples/strategies/buffer_distance_asymmetric.cpp]
|
||||
[import src/examples/strategies/buffer_point_circle.cpp]
|
||||
[import src/examples/strategies/buffer_point_circle_geographic.cpp]
|
||||
[import src/examples/strategies/buffer_point_square.cpp]
|
||||
[import src/examples/strategies/buffer_geographic_point_circle.cpp]
|
||||
|
||||
[import src/examples/views/box_view.cpp]
|
||||
[import src/examples/views/segment_view.cpp]
|
||||
|
@ -133,7 +133,7 @@ strategies = ["area::cartesian", "area::spherical", "area::geographic"
|
||||
, "buffer::end_round", "buffer::end_flat"
|
||||
, "buffer::distance_symmetric", "buffer::distance_asymmetric"
|
||||
, "buffer::side_straight"
|
||||
, "buffer::point_circle_geographic"
|
||||
, "buffer::geographic_point_circle"
|
||||
, "centroid::bashein_detmer", "centroid::average"
|
||||
, "convex_hull::graham_andrew"
|
||||
, "densify::cartesian", "densify::geographic", "densify::spherical"
|
||||
|
@ -545,8 +545,8 @@
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_join_miter">strategy::buffer::join_miter</link></member>
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_join_round">strategy::buffer::join_round</link></member>
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_point_circle">strategy::buffer::point_circle</link></member>
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_point_circle_geographic">strategy::buffer::point_circle_geographic</link></member>
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_point_square">strategy::buffer::point_square</link></member>
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_geographic_point_circle">strategy::buffer::geographic_point_circle</link></member>
|
||||
<member><link linkend="geometry.reference.strategies.strategy_buffer_side_straight">strategy::buffer::side_straight</link></member>
|
||||
</simplelist>
|
||||
</entry>
|
||||
|
@ -362,8 +362,8 @@
|
||||
[include generated/buffer_distance_symmetric.qbk]
|
||||
[include generated/buffer_distance_asymmetric.qbk]
|
||||
[include generated/buffer_point_circle.qbk]
|
||||
[include generated/buffer_point_circle_geographic.qbk]
|
||||
[include generated/buffer_point_square.qbk]
|
||||
[include generated/buffer_geographic_point_circle.qbk]
|
||||
[include generated/buffer_side_straight.qbk]
|
||||
[include generated/centroid_average.qbk]
|
||||
[include generated/centroid_bashein_detmer.qbk]
|
||||
|
@ -69,5 +69,5 @@ side_straight
|
||||
* DistanceStrategy: [link geometry.reference.strategies.strategy_buffer_distance_asymmetric distance_asymmetric]
|
||||
* PointStrategy: [link geometry.reference.strategies.strategy_buffer_point_circle point_circle (cartesian)]
|
||||
* PointStrategy: [link geometry.reference.strategies.strategy_buffer_point_square point_square (cartesian)]
|
||||
* PointStrategy: [link geometry.reference.strategies.strategy_buffer_point_circle_geographic point_circle_geographic (geographic)]
|
||||
* PointStrategy: [link geometry.reference.strategies.strategy_buffer_geographic_point_circle geographic_point_circle (geographic)]
|
||||
* SideStrategy: [link geometry.reference.strategies.strategy_buffer_side_straight side_straight (cartesian)]
|
||||
|
@ -12,7 +12,7 @@ project boost-geometry-doc-example-strategies
|
||||
;
|
||||
|
||||
exe buffer_point_circle : buffer_point_circle.cpp ;
|
||||
exe buffer_point_circle_geographic : buffer_point_circle_geographic.cpp ;
|
||||
exe buffer_geographic_point_circle : buffer_geographic_point_circle.cpp ;
|
||||
exe buffer_point_square : buffer_point_square.cpp ;
|
||||
exe buffer_join_round : buffer_join_round.cpp ;
|
||||
exe buffer_join_miter : buffer_join_miter.cpp ;
|
||||
|
@ -7,10 +7,11 @@
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
//[buffer_point_circle_geographic
|
||||
//[buffer_geographic_point_circle
|
||||
//` Shows how the point_circle strategy, for the Earth, can be used as a PointStrategy to create circular buffers around points
|
||||
|
||||
#include <boost/geometry.hpp>
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
@ -18,9 +19,9 @@ int main()
|
||||
|
||||
typedef bg::model::point<double, 2, bg::cs::geographic<bg::degree> > point;
|
||||
|
||||
// Declare the point_circle_geographic strategy (with 36 points)
|
||||
// Declare the geographic_point_circle strategy (with 36 points)
|
||||
// Default template arguments (taking Andoyer strategy)
|
||||
bg::strategy::buffer::point_circle_geographic<> point_strategy(36);
|
||||
bg::strategy::buffer::geographic_point_circle<> point_strategy(36);
|
||||
|
||||
// Declare the distance strategy (one kilometer, around the point, on Earth)
|
||||
bg::strategy::buffer::distance_symmetric<double> distance_strategy(1000.0);
|
||||
@ -47,7 +48,7 @@ int main()
|
||||
|
||||
//]
|
||||
|
||||
//[buffer_point_circle_geographic_output
|
||||
//[buffer_geographic_point_circle_output
|
||||
/*`
|
||||
Output:
|
||||
[pre
|
@ -50,7 +50,7 @@ namespace strategy { namespace buffer
|
||||
[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]
|
||||
\* [link geometry.reference.strategies.strategy_buffer_point_circle_geographic point_circle_geographic]
|
||||
\* [link geometry.reference.strategies.strategy_buffer_geographic_point_circle geographic_point_circle]
|
||||
}
|
||||
*/
|
||||
class point_circle
|
||||
|
@ -45,7 +45,7 @@ namespace strategy { namespace buffer
|
||||
[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]
|
||||
\* [link geometry.reference.strategies.strategy_buffer_point_circle_geographic point_circle_geographic]
|
||||
\* [link geometry.reference.strategies.strategy_buffer_geographic_point_circle geographic_point_circle]
|
||||
}
|
||||
*/
|
||||
class point_square
|
||||
|
@ -33,8 +33,8 @@ namespace strategy { namespace buffer
|
||||
|
||||
\qbk{
|
||||
[heading Example]
|
||||
[buffer_point_circle_geographic]
|
||||
[buffer_point_circle_geographic_output]
|
||||
[buffer_geographic_point_circle]
|
||||
[buffer_geographic_point_circle_output]
|
||||
[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]
|
||||
@ -47,13 +47,13 @@ template
|
||||
typename Spheroid = srs::spheroid<double>,
|
||||
typename CalculationType = void
|
||||
>
|
||||
class point_circle_geographic
|
||||
class geographic_point_circle
|
||||
{
|
||||
public :
|
||||
//! \brief Constructs the strategy
|
||||
//! \param count number of points for the created circle (if count
|
||||
//! is smaller than 3, count is internally set to 3)
|
||||
explicit point_circle_geographic(std::size_t count = 90)
|
||||
explicit geographic_point_circle(std::size_t count = 90)
|
||||
: m_count((count < 3u) ? 3u : count)
|
||||
{}
|
||||
|
||||
|
@ -40,7 +40,7 @@ void test_one_geo(std::string const& caseid,
|
||||
? distance_left : distance_right);
|
||||
|
||||
// Use the appropriate strategy for geographic points
|
||||
bg::strategy::buffer::point_circle_geographic<> circle_strategy(settings.points_per_circle);
|
||||
bg::strategy::buffer::geographic_point_circle<> circle_strategy(settings.points_per_circle);
|
||||
|
||||
// Use Thomas strategy to calculate geographic area, because it is
|
||||
// the most precise (unless scale of buffer is only around 1 meter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user