LSSTApplications  20.0.0
LSSTDataManagementBasePackage
pixelAreaBoundedField.cc
Go to the documentation of this file.
1 /*
2  * This file is part of afw.
3  *
4  * Developed for the LSST Data Management System.
5  * This product includes software developed by the LSST Project
6  * (https://www.lsst.org).
7  * See the COPYRIGHT file at the top-level directory of this distribution
8  * for details of code ownership.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <https://www.gnu.org/licenses/>.
22  */
23 #include <pybind11/pybind11.h>
24 
26 
27 namespace py = pybind11;
28 using namespace py::literals;
29 
30 namespace lsst {
31 namespace afw {
32 namespace math {
33 namespace {
34 
35 using PyClass = py::class_<PixelAreaBoundedField, std::shared_ptr<PixelAreaBoundedField>, BoundedField>;
36 
37 PYBIND11_MODULE(pixelAreaBoundedField, mod) {
38  py::module::import("lsst.afw.geom.skyWcs");
39  PyClass cls(mod, "PixelAreaBoundedField");
40  cls.def(
42  lsst::geom::AngleUnit const &, double>(),
43  "bbox"_a, "skyWcs"_a, "unit"_a=lsst::geom::radians, "scaling"_a=1.0
44  );
45  // All other operations are wrapped by the BoundedField base class.
46 }
47 
48 } // namespace
49 } // namespace math
50 } // namespace afw
51 } // namespace lsst
std::shared_ptr
STL class.
lsst::afw
Definition: imageAlgorithm.dox:1
lsst::afw::geom.transform.transformContinued.cls
cls
Definition: transformContinued.py:33
PixelAreaBoundedField.h
PyClass
py::class_< ProductBoundedField, std::shared_ptr< ProductBoundedField >, BoundedField > PyClass
Definition: productBoundedField.cc:32
lsst
A base class for image defects.
Definition: imageAlgorithm.dox:1
lsst::geom::AngleUnit
A class used to convert scalar POD types such as double to Angle.
Definition: Angle.h:70
lsst::geom::Box2I
An integer coordinate rectangle.
Definition: Box.h:55
lsst::geom::radians
constexpr AngleUnit radians
constant with units of radians
Definition: Angle.h:108
pybind11
Definition: _GenericMap.cc:40
lsst::utils.tests.init
def init()
Definition: tests.py:58
lsst::afw::cameraGeom::PYBIND11_MODULE
PYBIND11_MODULE(camera, mod)
Definition: camera.cc:133