/////////////////////////////////////////////////////////////
//                                                         //
// Copyright (c) 2007-2014 by The University of Queensland //
// Centre for Geoscience Computing                         //
// http://earth.uq.edu.au/centre-geoscience-computing      //
//                                                         //
// Primary Business: Brisbane, Queensland, Australia       //
// Licensed under the Open Software License version 3.0    //
// http://www.opensource.org/licenses/osl-3.0.php          //
//                                                         //
/////////////////////////////////////////////////////////////

#include <boost/version.hpp>
#include "ClippedSphereVolPy.h"

using namespace boost::python;

    void exportClippedSphereVol()
    {
      // Disable autogeneration of C++ signatures (Boost 1.34.0 and higher)
      // for Epydoc which stumbles over indentation in the automatically generated strings.
      boost::python::docstring_options no_autogen(true,false);

      class_<ClippedSphereVol, bases<AVolume3D> >(
        "ClippedSphereVol",
        "A class defining a sphere in 3D space clipped by planes.",
        init<>()
      )
      .def(init<const ClippedSphereVol &>())
      .def(
        init<Vector3,double>(
          ( arg("centre"), arg("radius") ),
          "Constructs a sphere with the specified centre and radius.\n"
          "@type centre: L{Vector3}\n"
          "@kwarg centre: Coordinates of the centre of the sphere\n"
          "@type radius: double\n"
          "@kwarg radius: Radius of the sphere\n"
        )
      )
      .def(
        "addPlane",
        &ClippedSphereVol::addPlane,
        ( arg("plane"), arg("fit") ),
        "Adds a plane to the volume for clipping the sphere.\n"
        "@type plane: L{Plane}\n"
        "@kwarg plane: the plane to add to the volume\n"
        "@rtype: void\n"
      )
      .def(self_ns::str(self))
      ;
    }



