12#include <boost/python/class.hpp>
13#include <boost/python/enum.hpp>
14#include <boost/python/register_ptr_to_python.hpp>
28 register_ptr_to_python<IPreview *>();
30 enum_<IPreview::PreviewType>(
"PreviewType")
37 class_<IPreview, boost::noncopyable>(
"IPreview", no_init)
38 .def(
"name", &
IPreview::name, arg(
"self"),
"Get the name of the preview.")
41 .def(
"type", &
IPreview::type, arg(
"self"),
"Get the type of the preview.")
42 .def(
"view", view, (arg(
"self"), arg(
"ws")),
"Perform the preview operation on the workspace.");
#define GET_POINTER_SPECIALIZATION(TYPE)
IPreview : This is the abstract base class of the raw data previews.
virtual std::string name() const =0
Workspace_sptr view(Workspace_sptr ws) const
virtual std::string facility() const =0
virtual std::string technique() const =0
virtual PreviewType type() const =0
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace