Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
geometry
src
Exports
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 +
7
#include "
MantidGeometry/MDGeometry/MDFrame.h
"
8
#include "
MantidPythonInterface/core/GetPointer.h
"
9
#include <boost/python/class.hpp>
10
#include <boost/python/register_ptr_to_python.hpp>
11
12
using namespace
Mantid::Geometry
;
13
using namespace
boost::python
;
14
15
GET_POINTER_SPECIALIZATION
(
MDFrame
)
16
17
void
export_MDFrame
() {
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
}
GetPointer.h
GET_POINTER_SPECIALIZATION
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition
GetPointer.h:17
export_MDFrame
void export_MDFrame()
Definition
MDFrame.cpp:17
MDFrame.h
Mantid::Geometry::MDFrame
MDFrame : The coordinate frame for a dimension, or set of dimensions in a multidimensional workspace.
Definition
MDFrame.h:22
Mantid::Geometry::MDFrame::name
virtual std::string name() const =0
Mantid::Geometry::MDFrame::getUnitLabel
virtual Mantid::Kernel::UnitLabel getUnitLabel() const =0
Mantid::Geometry::MDFrame::isQ
virtual bool isQ() const =0
Mantid::Geometry
Definition
AbsorptionCorrection.h:23
boost::python
Definition
NDArray.h:50
Generated by
1.9.8