]> git.sesse.net Git - casparcg/blob - dependencies/boost/boost/geometry/strategies/transform.hpp
Manually merged pull request #222
[casparcg] / dependencies / boost / boost / geometry / strategies / transform.hpp
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 // Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
6
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
9
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
14 #ifndef BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP
15 #define BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP
16
17 #include <cstddef>
18
19 #include <boost/mpl/assert.hpp>
20
21 #include <boost/geometry/strategies/tags.hpp>
22
23 namespace boost { namespace geometry
24 {
25
26 namespace strategy { namespace transform { namespace services
27 {
28
29 /*!
30     \brief Traits class binding a transformation strategy to a coordinate system
31     \ingroup transform
32     \details Can be specialized
33     - per coordinate system family (tag)
34     - per coordinate system (or groups of them)
35     - per dimension
36     - per point type
37     \tparam CoordinateSystemTag 1,2 coordinate system tags
38     \tparam CoordinateSystem 1,2 coordinate system
39     \tparam D 1, 2 dimension
40     \tparam Point 1, 2 point type
41  */
42 template
43 <
44     typename CoordinateSystemTag1, typename CoordinateSystemTag2,
45     typename CoordinateSystem1, typename CoordinateSystem2,
46     std::size_t Dimension1, std::size_t Dimension2,
47     typename Point1, typename Point2
48 >
49 struct default_strategy
50 {
51     BOOST_MPL_ASSERT_MSG
52         (
53             false, NOT_IMPLEMENTED_FOR_THIS_POINT_TYPES
54             , (types<Point1, Point2>)
55         );
56 };
57
58 }}} // namespace strategy::transform::services
59
60
61 }} // namespace boost::geometry
62
63 #endif // BOOST_GEOMETRY_STRATEGIES_TRANSFORM_HPP