transform.hpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  6. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  7. // Use, modification and distribution is subject to the Boost Software License,
  8. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP
  11. #define BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP
  12. #include <cstddef>
  13. #include <boost/mpl/assert.hpp>
  14. #include <boost/geometry/strategies/tags.hpp>
  15. namespace boost { namespace geometry
  16. {
  17. namespace strategy { namespace transform { namespace services
  18. {
  19. /*!
  20. \brief Traits class binding a transformation strategy to a coordinate system
  21. \ingroup transform
  22. \details Can be specialized
  23. - per coordinate system family (tag)
  24. - per coordinate system (or groups of them)
  25. - per dimension
  26. - per point type
  27. \tparam CoordinateSystemTag 1,2 coordinate system tags
  28. \tparam CoordinateSystem 1,2 coordinate system
  29. \tparam D 1, 2 dimension
  30. \tparam Point 1, 2 point type
  31. */
  32. template
  33. <
  34. typename CoordinateSystemTag1, typename CoordinateSystemTag2,
  35. typename CoordinateSystem1, typename CoordinateSystem2,
  36. std::size_t Dimension1, std::size_t Dimension2,
  37. typename Point1, typename Point2
  38. >
  39. struct default_strategy
  40. {
  41. BOOST_MPL_ASSERT_MSG
  42. (
  43. false, NOT_IMPLEMENTED_FOR_THIS_POINT_TYPES
  44. , (types<Point1, Point2>)
  45. );
  46. };
  47. }}} // namespace strategy::transform::services
  48. }} // namespace boost::geometry
  49. #endif // BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP