99 using namespace std::placeholders;
100 class_<Projection>(
"Projection", init<>(
"Default constructor creates a two dimensional projection"))
101 .def(init<const Mantid::Kernel::V3D &, const Mantid::Kernel::V3D &>(
102 "Constructs a 3 dimensional projection, with w as the cross product "
105 .def(init<const Mantid::Kernel::V3D &, const Mantid::Kernel::V3D &, const Mantid::Kernel::V3D &>(
106 "Constructs a 3 dimensional projection", args(
"u",
"v",
"w")))
107 .def(
"__init__", make_constructor(&projCtor2, default_call_policies(), (arg(
"u"), arg(
"v"))),
108 "Constructs a 3 dimensional projection, with w as the cross product "
110 .def(
"__init__", make_constructor(&projCtor3, default_call_policies(), (arg(
"u"), arg(
"v"), arg(
"w"))),
111 "Constructs a 3 dimensional projection")
112 .def(
"getOffset", &
Projection::getOffset, (arg(
"self"), arg(
"nd")),
"Returns the offset for the given dimension",
114 .def(
"getAxis", &
Projection::getAxis, (arg(
"self"), arg(
"nd")),
"Returns the axis for the given dimension",
116 .def(
"getType", &getUnit, (arg(
"self"), arg(
"dimension")),
"Returns the unit for the given dimension")
118 "Sets the offset for the given dimension", args(
"dimension",
"offset"))
120 "Sets the axis for the given dimension")
121 .def(
"setAxis", &projSetAxis, (arg(
"self"), arg(
"nd"), arg(
"data")),
"Sets the axis for the given dimension")
122 .def(
"setType", &setUnit, (arg(
"self"), arg(
"dimension"), arg(
"unit")),
"Sets the unit for the given dimension")
125 boost::mpl::vector2<Mantid::Kernel::V3D &, Projection &>()),
127 boost::mpl::vector3<void, Projection &, Mantid::Kernel::V3D>()))
130 boost::mpl::vector2<Mantid::Kernel::V3D &, Projection &>()),
132 boost::mpl::vector3<void, Projection &, Mantid::Kernel::V3D>()))
135 boost::mpl::vector2<Mantid::Kernel::V3D &, Projection &>()),
137 boost::mpl::vector3<void, Projection &, Mantid::Kernel::V3D>()))
140 boost::mpl::vector2<Mantid::Kernel::V3D &, Projection &>()),
141 make_function(std::bind(&projSetAxis, _1, 0, _2), default_call_policies(),
142 boost::mpl::vector3<void, Projection &, const object &>()))
145 boost::mpl::vector2<Mantid::Kernel::V3D &, Projection &>()),
146 make_function(std::bind(&projSetAxis, _1, 1, _2), default_call_policies(),
147 boost::mpl::vector3<void, Projection &, const object &>()))
150 boost::mpl::vector2<Mantid::Kernel::V3D &, Projection &>()),
151 make_function(std::bind(&projSetAxis, _1, 2, _2), default_call_policies(),
152 boost::mpl::vector3<void, Projection &, const object &>()))
153 .def(
"createWorkspace",
createWorkspace(),
"Create a TableWorkspace representing the projection");