Mantid
Loading...
Searching...
No Matches
PyObjectToV3D.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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#pragma once
8
10#include "MantidKernel/V3D.h"
11#include <boost/python/object.hpp>
12
13namespace Mantid {
14namespace PythonInterface {
15namespace Converters {
23 PyObjectToV3D(const boost::python::object &p);
25 Kernel::V3D operator()();
26
27private:
29 const boost::python::object &m_obj;
32};
33} // namespace Converters
34} // namespace PythonInterface
35} // namespace Mantid
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Class for 3D vectors.
Definition: V3D.h:34
Helper class which provides the Collimation Length for SANS instruments.
Takes a Python object and if it supports indexing and is of length 3 then it will attempt to convert ...
Definition: PyObjectToV3D.h:22
const boost::python::object & m_obj
A reference to the object.
Definition: PyObjectToV3D.h:29
bool m_alreadyV3D
Is the object a wrapped instance of V3D.
Definition: PyObjectToV3D.h:31