LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #include "pybind11/pybind11.h"
38 using namespace pybind11::literals;
45 py::class_<Region, std::unique_ptr<Region>>
cls(mod,
"Region");
49 cls.def(
"clone", [](Region
const &
self) {
return self.clone().release(); });
50 cls.def(
"getBoundingBox", &Region::getBoundingBox);
51 cls.def(
"getBoundingBox3d", &Region::getBoundingBox3d);
52 cls.def(
"getBoundingCircle", &Region::getBoundingCircle);
61 cls.def(
"encode", &python::encode);
66 uint8_t
const *buffer =
reinterpret_cast<uint8_t
const *
>(
67 PYBIND11_BYTES_AS_STRING(
bytes.ptr()));
69 static_cast<size_t>(PYBIND11_BYTES_SIZE(
bytes.ptr()));
70 return Region::decode(buffer, n).release();
This file defines an interface for spherical regions.
This file declares a class for representing axis-aligned bounding boxes in ℝ³.
This file declares a class for representing unit vectors in ℝ³.
This file declares a class for representing circular regions on the unit sphere.
Relationship relate(VertexIterator const begin, VertexIterator const end, Box const &b)
std::bitset< 3 > Relationship
Relationship describes how two sets are related.
A base class for image defects.
This file declares a class for representing elliptical regions on the unit sphere.
This file declares a class for representing longitude/latitude angle boxes on the unit sphere.
PYBIND11_MODULE(camera, mod)
This file declares a class for representing convex polygons with great circle edges on the unit spher...