14#include <boost/python/class.hpp>
15#include <boost/python/overloads.hpp>
39void calcFromQSampleAndWavelength(
Goniometer &self,
const object &
position,
double wavelength,
bool flip_x,
48 using return_readonly_numpy = return_value_policy<Policies::MatrixRefToNumpy<Converters::WrapReadOnly>>;
50 class_<Goniometer>(
"Goniometer", init<>(arg(
"self")))
51 .def(init<Goniometer const &>((arg(
"self"), arg(
"other"))))
52 .def(init<DblMatrix>((arg(
"self"), arg(
"rot"))))
54 getEulerAngles_overloads(args(
"self",
"convention"),
"Default convention is \'YZX\'. Universal "
55 "goniometer is \'YZY\'"))
57 .def(
"setR", &setR, (arg(
"self"), arg(
"rot")))
58 .def(
"calcFromQSampleAndWavelength", &calcFromQSampleAndWavelength,
59 (arg(
"self"), arg(
"positions"), arg(
"wavelength"), arg(
"flip_x") =
false, arg(
"inner") =
false));
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(valueAsPrettyStrOverloader, valueAsPrettyStr, 0, 2) void export_Property()
#define GNU_DIAG_OFF(x)
This is a collection of macros for turning compiler warnings off in a controlled manner.
Class to represent a particular goniometer setting, which is described by the rotation matrix.
std::vector< double > getEulerAngles(const std::string &convention="YZX")
Return Euler angles acording to a convention.
const Kernel::DblMatrix & getR() const
Return global rotation matrix.
void calcFromQSampleAndWavelength(const Mantid::Kernel::V3D &Q, double wavelength, bool flip_x=false, bool inner=false)
Calculate goniometer for rotation around y-asix for constant wavelength from Q Sample.
Takes a Python object and if it supports indexing and is two dimensional it attempts to convert it to...
Takes a Python object and if it supports indexing and is of length 3 then it will attempt to convert ...