12#include <boost/python/class.hpp>
13#include <boost/python/enum.hpp>
14#include <boost/python/list.hpp>
15#include <boost/python/register_ptr_to_python.hpp>
16#include <boost/python/scope.hpp>
37 register_ptr_to_python<std::shared_ptr<SymmetryOperation>>();
39 class_<SymmetryOperation>(
"SymmetryOperation")
41 "Returns the order of the symmetry operation, which indicates how "
42 "often the operation needs to be applied to a point to arrive at "
45 "The identifier of the operation in x,y,z-notation.")
46 .def(
"transformCoordinates", &applyToCoordinates, (arg(
"self"), arg(
"coordinates")),
47 "Returns transformed coordinates. For transforming HKLs, use "
49 .def(
"transformHKL", &applyToVector, (arg(
"self"), arg(
"hkl")),
50 "Returns transformed HKLs. For transformation of coordinates use "
51 "transformCoordinates.")
52 .def(
"apply", &applyToVector, (arg(
"self"), arg(
"hkl")),
"An alias for transformHKL.");
void export_SymmetryOperation()
Crystallographic symmetry operations are composed of a rotational component, which is represented by ...
std::string identifier() const
Returns the string-identifier for this symmetry operation.
Kernel::V3D transformHKL(const Kernel::V3D &hkl) const
Transforms an index triplet hkl.
size_t order() const
Returns the order of the symmetry operation.
Takes a Python object and if it supports indexing and is of length 3 then it will attempt to convert ...
A struct to help export std::vector types.
static void wrap(std::string const &python_name)
a python wrapper