Mantid
Loading...
Searching...
No Matches
IMDEventWorkspace.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 +
10#include <boost/python/class.hpp>
11#include <boost/python/register_ptr_to_python.hpp>
12
13using namespace Mantid::API;
15using namespace boost::python;
16
18
20 // IMDEventWorkspace class
21 class_<IMDEventWorkspace, bases<IMDWorkspace, MultipleExperimentInfos>, boost::noncopyable>("IMDEventWorkspace",
22 no_init)
23 .def("getNPoints", &IMDEventWorkspace::getNPoints, arg("self"),
24 "Returns the total number of points (events) in this "
25 ":class:`~mantid.api.Workspace`")
26
27 .def("getNumDims", &IMDEventWorkspace::getNumDims, arg("self"),
28 "Returns the number of dimensions in this "
29 ":class:`~mantid.api.Workspace`")
30
32 arg("self"),
33 "Returns the :class:`~mantid.api.BoxController` used in this "
34 ":class:`~mantid.api.Workspace`")
35 .def("setDisplayNormalization", &IMDEventWorkspace::setDisplayNormalization, (arg("self"), arg("normalization")),
36 "Sets the visual normalization of"
37 " the :class:`~mantid.api.Workspace`.")
38 .def("setDisplayNormalizationHisto", &IMDEventWorkspace::setDisplayNormalizationHisto,
39 (arg("self"), arg("normalization")),
40 "For :class:`~mantid.api.IMDEventWorkspace` s sets"
41 " the visual normalization of dervied "
42 ":class:`~mantid.api.IMDHistoWorkspace` s.");
43
45}
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition: GetPointer.h:17
void export_IMDEventWorkspace()
Abstract base class for multi-dimension event workspaces (MDEventWorkspace).
virtual Mantid::API::BoxController_sptr getBoxController()=0
virtual void setDisplayNormalizationHisto(Mantid::API::MDNormalization preferredNormalizationHisto)=0
Preferred visual normalizaiton method for any histo workspaces created from this.
virtual void setDisplayNormalization(Mantid::API::MDNormalization preferredNormalization)=0
Preferred visual normalization method.
std::shared_ptr< BoxController > BoxController_sptr
Shared ptr to BoxController.
Encapsulates the registration required for an interface type T that sits on top of a Kernel::DataItem...