9#include <boost/python/class.hpp>
10#include <boost/python/register_ptr_to_python.hpp>
26std::shared_ptr<Mantid::Geometry::IObject> getShape(
const IObjComponent &self) {
27 PyErr_Warn(PyExc_DeprecationWarning,
"'IObjComponent.shape' is deprecated in Mantid 7.0, "
28 "use 'ComponentInfo.shape' instead. "
29 "For more information, see the instrument access layers concept page: "
30 "https://docs.mantidproject.org/nightly/concepts/InstrumentAccessLayers.html");
31 return std::const_pointer_cast<Mantid::Geometry::IObject>(self.
shape());
36 register_ptr_to_python<std::shared_ptr<IObjComponent>>();
38 class_<IObjComponent, boost::python::bases<IComponent>, boost::noncopyable>(
"IObjComponent", no_init)
39 .def(
"shape", &getShape, arg(
"self"),
40 "Get the object that represents "
41 "the physical shape of this "
42 "component (deprecated, use ComponentInfo.shape)");
#define GET_POINTER_SPECIALIZATION(TYPE)
void export_IObjComponent()
base class for Geometric IComponent
Object Component class, this class brings together the physical attributes of the component to the po...
virtual const std::shared_ptr< const IObject > shape() const =0
Returns the shape of the Object.