Mantid
Loading...
Searching...
No Matches
PeakShape.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
13using namespace boost::python;
14
16
18 register_ptr_to_python<Mantid::Geometry::PeakShape_sptr>();
19
20 class_<PeakShape, boost::noncopyable>("PeakShape", no_init)
21 .def("toJSON", &PeakShape::toJSON, arg("self"), "Serialize object to JSON")
22 .def("shapeName", &PeakShape::shapeName, arg("self"), "Shape name for type of shape")
23 .def("algorithmVersion", &PeakShape::algorithmVersion, arg("self"),
24 "Number of source integration algorithm version")
25 .def("algorithmName", &PeakShape::algorithmName, arg("self"), "Name of source integration algorithm");
26}
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition: GetPointer.h:17
void export_PeakShape()
Definition: PeakShape.cpp:17
PeakShape : Abstract type to describes the shape of a peak.
Definition: PeakShape.h:20
virtual std::string toJSON() const =0
Serialize.
virtual int algorithmVersion() const =0
Algorithm Version.
virtual std::string shapeName() const =0
Shape name.
virtual std::string algorithmName() const =0
Algorithm.