1
/////////////////////////////////////////////////////////////
3
// Copyright (c) 2007-2011 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
11
/////////////////////////////////////////////////////////////
13
#include <boost/version.hpp>
14
#include "BoxWithLines2DPy.h"
15
#include "BoxWithLines2D.h"
17
using namespace boost::python;
19
void exportBoxWithLines2D()
21
// Check that Boost 1.34.0 or higher is being used.
22
// If so, disable auto-generation of C++ signatures for Epydoc
23
// (which stumbles over indentation in the auto-generated strings).
24
#if ((BOOST_VERSION / 100000 >= 1) \
25
&& (BOOST_VERSION / 100 % 1000 >= 34)) \
26
|| (BOOST_VERSION / 100000 >= 2)
27
boost::python::docstring_options no_autogen(true,false);
30
class_<BoxWithLines2D, bases<AVolume2D> >(
32
"A class defining a rectangular volume in 2D optionally bounded by lines.",
35
.def(init<const BoxWithLines2D &>())
37
init<Vector3,Vector3>(
38
( arg("minPoint"), arg("maxPoint") ),
39
"Constructs a box with the specified corner points.\n"
40
"@type minPoint: L{Vector3}\n"
41
"@kwarg minPoint: Coordinate of bottom left corner of the box\n"
42
"@type maxPoint: L{Vector3}\n"
43
"@kwarg maxPoint: Coordinate of upper right corner of the box\n"
48
&BoxWithLines2D::addLine,
50
"Adds a line to the box for fitting particles.\n"
51
"@type line: L{Line2D}\n"
52
"@kwarg line: the line to add to the box\n"
55
.def(self_ns::str(self))
57
// boost::python::implicitly_convertible<BoxWithLines2D, AVolume2D>();