Mantid
Loading...
Searching...
No Matches
PyObjectToVMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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/VMD.h"
11#include <boost/python/object.hpp>
12
13namespace Mantid {
14namespace PythonInterface {
15namespace Converters {
23 PyObjectToVMD(const boost::python::object &p);
25 Kernel::VMD 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
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: PyObjectToVMD.h:22
bool m_alreadyVMD
Is the object a wrapped instance of VMD.
Definition: PyObjectToVMD.h:31
const boost::python::object & m_obj
A reference to the object.
Definition: PyObjectToVMD.h:29