Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
geometry
src
Exports
SymmetryElementFactory.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/Crystal/SymmetryElementFactory.h
"
8
#include "
MantidPythonInterface/core/GetPointer.h
"
9
10
#include <boost/python/class.hpp>
11
12
using namespace
Mantid::Geometry
;
13
using namespace
boost::python
;
14
15
GET_POINTER_SPECIALIZATION
(
SymmetryElementFactoryImpl
)
16
17
void
export_SymmetryElementFactory
() {
18
class_<SymmetryElementFactoryImpl, boost::noncopyable>(
"SymmetryElementFactoryImpl"
, no_init)
19
.def(
"createSymElement"
, &
SymmetryElementFactoryImpl::createSymElement
, (arg(
"self"
), arg(
"operation"
)),
20
"Creates the symmetry element that corresponds to the supplied "
21
"symmetry operation."
)
22
.def(
"Instance"
, &SymmetryElementFactory::Instance, return_value_policy<reference_existing_object>(),
23
"Returns a reference to the SymmetryElementFactory singleton"
)
24
.staticmethod(
"Instance"
);
25
}
GetPointer.h
GET_POINTER_SPECIALIZATION
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition
GetPointer.h:17
export_SymmetryElementFactory
void export_SymmetryElementFactory()
Definition
SymmetryElementFactory.cpp:17
SymmetryElementFactory.h
Mantid::Geometry::SymmetryElementFactoryImpl
This factory takes a SymmetryOperation and generates the corresponding SymmetryElement.
Definition
SymmetryElementFactory.h:188
Mantid::Geometry::SymmetryElementFactoryImpl::createSymElement
SymmetryElement_sptr createSymElement(const SymmetryOperation &operation)
Creates a SymmetryElement from a SymmetryOperation.
Definition
SymmetryElementFactory.cpp:306
Mantid::Geometry
Definition
AbsorptionCorrection.h:23
boost::python
Definition
NDArray.h:50
Generated by
1.9.8