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 "ShapeListPy.h"
16
using namespace boost::python;
18
void exportShapeList ()
20
// Check that Boost 1.34.0 or higher is being used.
21
// If so, disable auto-generation of C++ signatures for Epydoc
22
// (which stumbles over indentation in the auto-generated strings).
23
#if ((BOOST_VERSION / 100000 >= 1) \
24
&& (BOOST_VERSION / 100 % 1000 >= 34)) \
25
|| (BOOST_VERSION / 100000 >= 2)
26
boost::python::docstring_options no_autogen(true,false);
31
"A list of 3D shapes to be inserted into a packing by replacing spheres with scaled versions of the specified shape.\n"
32
"Shapes may be read from a shape database file and the probability with which a given shape is inserted into a packing may be specified.\n",
37
&ShapeList::addHexShape,
40
"Adds a hexagonal aggregate to the L{ShapeList}\n"
42
"@kwarg bias: How often the shape should be added\n"
44
"@kwarg random: 1 to randomly orientate this shape, 0 to have all constant\n"
48
&ShapeList::addGenericShape,
55
"Adds a shape from a database file into the list\n"
57
"@kwarg db: The filename of the database file\n"
58
"@type name: string\n"
59
"@kwarg name: The name of the shape to be added, as per database file\n"
61
"@kwarg bias: The bias of the new shape; in other words, how often it will be added\n"
63
"@kwarg random: Whether the shape should be orientated randomly at each insertion:\n"
64
"0 for not random, 1 for always random\n"
65
"@type particleTag: int\n"
66
"@kwarg particleTag: the ID of each particle inside each inserted shape\n"
67
"@type bondTag: int\n"
68
"@kwarg bondTag: the bond ID of each bond internal to each shape\n"