polygon.qbk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
  5. Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
  6. Use, modification and distribution is subject to the Boost Software License,
  7. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. http://www.boost.org/LICENSE_1_0.txt)
  9. =============================================================================/]
  10. [/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
  11. [/ Generated from doxy/doxygen_output/xml/classboost_1_1geometry_1_1model_1_1polygon.xml]
  12. [section:model_polygon model::polygon]
  13. '''<indexterm><primary>model</primary></indexterm><indexterm><primary>polygon</primary></indexterm>'''
  14. The polygon contains an outer ring and zero or more inner rings.
  15. [heading Model of]
  16. [link geometry.reference.concepts.concept_polygon Polygon Concept]
  17. [heading Synopsis]
  18. ``template<typename Point, bool ClockWise, bool Closed, template< typename, typename > class PointList,
  19. template< typename, typename > class RingList, template< typename > class PointAlloc, template< typename > class RingAlloc>
  20. class model::polygon
  21. {
  22. // ...
  23. };
  24. ``
  25. [heading Template parameter(s)]
  26. [table
  27. [[Parameter] [Default] [Description]]
  28. [[typename Point] [] [point type ]]
  29. [[bool ClockWise] [true] [true for clockwise direction, false for CounterClockWise direction ]]
  30. [[bool Closed] [true] [true for closed polygons (last point == first point), false open points ]]
  31. [[template< typename, typename > class PointList] [std::vector] [container type for points, for example std::vector, std::deque ]]
  32. [[template< typename, typename > class RingList] [std::vector] [container type for inner rings, for example std::vector, std::deque ]]
  33. [[template< typename > class PointAlloc] [std::allocator] [container-allocator-type, for the points ]]
  34. [[template< typename > class RingAlloc] [std::allocator] [container-allocator-type, for the rings ]]
  35. ]
  36. [heading Constructor(s)]
  37. [table
  38. [[Function] [Description] [Parameters] ]
  39. [[``polygon()``
  40. ] [Default constructor, creating an empty polygon. ] [
  41. ]]
  42. [[``polygon(std::initializer_list< ring_type > l)``
  43. ] [Constructor taking std::initializer_list, filling the polygon. ] [[* std::initializer_list< ring_type >]: ['l]:
  44. ]]
  45. ]
  46. [heading Member Function(s)]
  47. [table
  48. [[Function] [Description] [Parameters] [Returns]]
  49. [[``ring_type const & outer()``
  50. ] [] [
  51. ][
  52. ]
  53. ]
  54. [[``inner_container_type const & inners()``
  55. ] [] [
  56. ][
  57. ]
  58. ]
  59. [[``ring_type & outer()``
  60. ] [] [
  61. ][
  62. ]
  63. ]
  64. [[``inner_container_type & inners()``
  65. ] [] [
  66. ][
  67. ]
  68. ]
  69. [[``void clear()``
  70. ] [Utility method, clears outer and inner rings. ] [
  71. ][
  72. ]
  73. ]
  74. ]
  75. [heading Header]
  76. Either
  77. `#include <boost/geometry/geometries/geometries.hpp>`
  78. Or
  79. `#include <boost/geometry/geometries/polygon.hpp>`
  80. [include reference/geometries/polygon.qbk]
  81. [endsect]