Skip to content
Snippets Groups Projects
Commit 6ca0b0ec authored by Nick Draper's avatar Nick Draper
Browse files

fixes #3486

added python bindings
parent cb21c4a7
No related branches found
No related tags found
No related merge requests found
......@@ -464,6 +464,7 @@ using namespace boost::python;
{
//Pointer
register_ptr_to_python<API::Sample*>();
register_ptr_to_python<boost::shared_ptr<API::Sample> >();
//Sample class
class_< API::Sample, boost::noncopyable >("Sample", no_init)
......@@ -472,6 +473,8 @@ using namespace boost::python;
.def("getThickness", &API::Sample::getThickness)
.def("getHeight", &API::Sample::getHeight)
.def("getWidth", &API::Sample::getWidth)
.def("__getitem__", &API::Sample::operator[], return_internal_reference<>())
.def("size", &API::Sample::size)
;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment