transform.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. // This file was modified by Oracle on 2020.
  6. // Modifications copyright (c) 2020, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  8. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  9. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  10. // Use, modification and distribution is subject to the Boost Software License,
  11. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. #ifndef BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP
  14. #define BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP
  15. #include <cstddef>
  16. #include <boost/geometry/core/static_assert.hpp>
  17. #include <boost/geometry/strategies/tags.hpp>
  18. namespace boost { namespace geometry
  19. {
  20. namespace strategy { namespace transform { namespace services
  21. {
  22. /*!
  23. \brief Traits class binding a transformation strategy to a coordinate system
  24. \ingroup transform
  25. \details Can be specialized
  26. - per coordinate system family (tag)
  27. - per coordinate system (or groups of them)
  28. - per dimension
  29. - per point type
  30. \tparam CoordinateSystemTag 1,2 coordinate system tags
  31. \tparam CoordinateSystem 1,2 coordinate system
  32. \tparam D 1, 2 dimension
  33. \tparam Point 1, 2 point type
  34. */
  35. template
  36. <
  37. typename CoordinateSystemTag1, typename CoordinateSystemTag2,
  38. typename CoordinateSystem1, typename CoordinateSystem2,
  39. std::size_t Dimension1, std::size_t Dimension2,
  40. typename Point1, typename Point2
  41. >
  42. struct default_strategy
  43. {
  44. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  45. "Not implemented for these Point types.",
  46. Point1, Point2);
  47. };
  48. }}} // namespace strategy::transform::services
  49. }} // namespace boost::geometry
  50. #endif // BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP