box.hpp
BOOST_GEOMETRY_REGISTER_BOX
Box
Point
MinCorner
MaxCorner
namespace boost { namespace geometry { namespace traits { \ BOOST_GEOMETRY_DETAIL_SPECIALIZE_BOX_TRAITS(Box, Point) \ BOOST_GEOMETRY_DETAIL_SPECIALIZE_BOX_ACCESS(Box, Point, MinCorner, MaxCorner) \ }}}

Macro to register a \1.

The macro BOOST_GEOMETRY_REGISTER_BOX registers a box such that it is recognized by Boost.Geometry and that Boost.Geometry functionality can used with the specified type. The box may contain template parameters, which must be specified then. Box

Box type to be registered

Point

Point type on which box is based. Might be two or three-dimensional

MinCorner

minimum corner (should be public member or method)

MaxCorner

maximum corner (should be public member or method)

[heading Example] [register_box] [register_box_output]
BOOST_GEOMETRY_REGISTER_BOX_2D_4VALUES
Box
Point
Left
Bottom
Right
Top
namespace boost { namespace geometry { namespace traits { \ BOOST_GEOMETRY_DETAIL_SPECIALIZE_BOX_TRAITS(Box, Point) \ BOOST_GEOMETRY_DETAIL_SPECIALIZE_BOX_ACCESS_4VALUES(Box, Point, Left, Bottom, Right, Top) \ }}}

Macro to register a \1.

The macro BOOST_GEOMETRY_REGISTER_BOX_2D_4VALUES registers a box such that it is recognized by Boost.Geometry and that Boost.Geometry functionality can used with the specified type. Box

Box type to be registered

Point

Point type reported as point_type by box. Must be two dimensional. Note that these box tyeps do not contain points, but they must have a related point_type

Left

Left side (must be public member or method)

Bottom

Bottom side (must be public member or method)

Right

Right side (must be public member or method)

Top

Top side (must be public member or method)

[heading Example] [register_box_2d_4values] [register_box_2d_4values_output]
BOOST_GEOMETRY_REGISTER_BOX_TEMPLATED
Box
MinCorner
MaxCorner
namespace boost { namespace geometry { namespace traits { \ BOOST_GEOMETRY_DETAIL_SPECIALIZE_BOX_TRAITS_TEMPLATED(Box) \ BOOST_GEOMETRY_DETAIL_SPECIALIZE_BOX_ACCESS_TEMPLATED(Box, MinCorner, MaxCorner) \ }}}

Macro to register a \1.

The macro BOOST_GEOMETRY_REGISTER_BOX_TEMPLATED registers a box such that it is recognized by Boost.Geometry and that Boost.Geometry functionality can used with the specified type. The type must have one template parameter, which should be a point type, and should not be specified. Boost.Geometry takes care of inserting the template parameter. Hence all types of this templated box are registered, regardless of their point type. Box

Box type to be registered

MinCorner

minimum corner (should be public member or method)

MaxCorner

maximum corner (should be public member or method)

[heading Example] [register_box_templated] [register_box_templated_output]