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 return std::const_pointer_cast<Mantid::Geometry::IObject>(self.
shape());
32 register_ptr_to_python<std::shared_ptr<IObjComponent>>();
34 class_<IObjComponent, boost::python::bases<IComponent>, boost::noncopyable>(
"IObjComponent", no_init)
35 .def(
"shape", &getShape, arg(
"self"),
36 "Get the object that represents "
37 "the physical shape of this "
#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.