#include "pybind11/pybind11.h"
#include "lsst/afw/geom/ellipses/PixelRegion.h"
Go to the source code of this file.
◆ PYBIND11_MODULE()
PYBIND11_MODULE |
( |
pixelRegion |
, |
|
|
mod |
|
|
) |
| |
Definition at line 31 of file pixelRegion.cc.
32 py::class_<PixelRegion> clsPixelRegion(mod,
"PixelRegion");
35 clsPixelRegion.def(py::init<Ellipse const &>());
38 clsPixelRegion.def(
"getBBox", &PixelRegion::getBBox, py::return_value_policy::copy);
39 clsPixelRegion.def(
"getSpanAt", &PixelRegion::getSpanAt);
40 clsPixelRegion.def(
"__iter__",
42 py::keep_alive<0, 1>() );