Mantid
Loading...
Searching...
No Matches
MDFrame.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9#include <boost/python/class.hpp>
10#include <boost/python/register_ptr_to_python.hpp>
11
12using namespace Mantid::Geometry;
13using namespace boost::python;
14
16
18
19 using namespace Mantid::Geometry;
20
21 register_ptr_to_python<std::shared_ptr<MDFrame>>();
22
23 class_<MDFrame, boost::noncopyable>("MDFrame", no_init)
24 .def("getUnitLabel", &MDFrame::getUnitLabel, arg("self"))
25 .def("name", &MDFrame::name, arg("self"))
26 .def("isQ", &MDFrame::isQ, arg("self"));
27}
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition: GetPointer.h:17
void export_MDFrame()
Definition: MDFrame.cpp:17
MDFrame : The coordinate frame for a dimension, or set of dimensions in a multidimensional workspace.
Definition: MDFrame.h:22
virtual std::string name() const =0
virtual Mantid::Kernel::UnitLabel getUnitLabel() const =0
virtual bool isQ() const =0