/Src/Dependencies/Boost/libs/geometry/doc/doxy/doxygen_input/pages/doxygen_mainpage.hpp

http://hadesmem.googlecode.com/ · C++ Header · 104 lines · 3 code · 9 blank · 92 comment · 0 complexity · 15cd885faafce95dbfa8b050498ef639 MD5 · raw file

  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. //
  3. // Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands.
  4. // Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
  5. // Use, modification and distribution is subject to the Boost Software License,
  6. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef _DOXYGEN_MAINPAGE_HPP
  9. #define _DOXYGEN_MAINPAGE_HPP
  10. // -> introduction.qbk
  11. // -> quickstart.qbk
  12. /*!
  13. \mainpage Boost.Geometry
  14. \section header Boost.Geometry (aka GGL, Generic Geometry Library)
  15. <em>Copyright &copy; 1995-2010 <b>Barend Gehrels</b>, Geodan, Amsterdam, the Netherlands.\n
  16. Copyright &copy; 2008-2010 <b>Bruno Lalande</b>, Paris, France.\n
  17. Copyright &copy; 2010 <b>Mateusz Loskot</b>, Cadcorp, London, UK.\n
  18. Distributed under the Boost Software License, Version 1.0.\n
  19. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  20. </em>
  21. \section intro Introduction
  22. Boost.Geometry, formally accepted by Boost, defines concepts "concepts" for geometries and
  23. implements some algorithms on such geometries. Before acceptance by Boost it was known as GGL
  24. (Generic Geometry Library) and this documentation still contains that name on various places.
  25. Boost.Geometry contains a dimension-agnostic, coordinate-system-agnostic and
  26. scalable kernel, based on concepts, meta-functions and tag- dispatching. On top
  27. of that kernel, algorithms are built: area, length, perimeter, centroid, convex
  28. hull, intersection (clipping), within (point in polygon), distance, envelope
  29. (bounding box), simplify, transform, convert, and more. The library is also
  30. designed to support high precision arithmetic numbers, such as GMP.
  31. Boost.Geometry contains instantiable geometry classes, but library users can also use their own. Using registration macros or traits classes their geometries can be adapted to fulfil the Boost.Geometry Concepts.
  32. Boost.Geometry might be used in all domains where geometry plays a role: mapping and GIS, gaming, computer graphics and widgets, robotics, astronomy... The core is designed to be as generic as possible and support those domains. However, for now the development has been mostly GIS-oriented.
  33. Boost.Geometry supports the extension model, the same way as GIL also applies it. An extension is (mostly) something more specific to domains like mentioned above.
  34. The library follows existing conventions:
  35. - conventions from boost
  36. - conventions from the std library
  37. - conventions and names from one of the OGC standards on Geometry
  38. The library can be downloaded from the Boost Sandbox,
  39. go to the \ref download "Download page" for more information.
  40. A (recently started) Wiki is here: http://trac.osgeo.org/ggl/wiki
  41. \section quickstart Quick start
  42. It is not possible to show the whole library at a glance. A few very small examples are shown below.
  43. It should be possible to use a very small part of the library,
  44. for example only the distance between two points.
  45. \dontinclude doxygen_2.cpp
  46. \skip example_for_main_page()
  47. \skipline int a
  48. \until endl;
  49. Other often used algorithms are point-in-polygon:
  50. \skipline ring_2d
  51. \until endl;
  52. or area:
  53. \skip area
  54. \until endl;
  55. It is possible, by the nature of a template library, to mix the point types declared above:
  56. \skip double d2
  57. \until endl;
  58. The pieces above generate this output:
  59. \image html output_main.png
  60. It is also possible to use non-Cartesian points.
  61. For example: points on a sphere. When then an algorithm such as distance
  62. is used the library "inspects" that it is handling spherical
  63. points and calculates the distance over the sphere, instead of applying the Pythagorean theorem.
  64. Finally an example from a totally different domain: developing window-based applications, for example
  65. using QtWidgets. We check if two rectangles overlap and if so,
  66. move the second one to another place:
  67. \skip QRect
  68. \until }
  69. More examples are on the page \b Examples
  70. */
  71. #endif // _DOXYGEN_MAINPAGE_HPP