|
lsst.meas.algorithms g95e024353f+89887f4dd8
|
"Trampoline" for ImagePsf to let it be used as a base class in Python. More...
#include <python.h>
Public Types | |
| typedef typename Base::Image | Image |
Public Member Functions | |
| template<typename... Args> | |
| ImagePsfTrampoline (Args &&... args) | |
| Delegating constructor for wrapped class. | |
| double | doComputeApertureFlux (double radius, geom::Point2D const &position, afw::image::Color const &color) const override |
| afw::geom::ellipses::Quadrupole | doComputeShape (geom::Point2D const &position, afw::image::Color const &color) const override |
| std::shared_ptr< Psf > | clone () const override |
| std::shared_ptr< Psf > | resized (int width, int height) const override |
| lsst::geom::Point2D | getAveragePosition () const override |
| std::shared_ptr< Image > | doComputeImage (lsst::geom::Point2D const &position, image::Color const &color) const override |
| lsst::geom::Box2I | doComputeImageBBox (lsst::geom::Point2D const &position, image::Color const &color) const override |
| std::shared_ptr< Image > | doComputeKernelImage (lsst::geom::Point2D const &position, image::Color const &color) const override |
| lsst::geom::Box2I | doComputeBBox (lsst::geom::Point2D const &position, image::Color const &color) const override |
| std::shared_ptr< Storable > | cloneStorable () const override |
| std::string | toString () const override |
| std::size_t | hash_value () const override |
| bool | equals (Storable const &other) const noexcept override |
| bool | isPersistable () const noexcept override |
| std::string | getPersistenceName () const override |
| std::string | getPythonModule () const override |
| void | write (table::io::OutputArchiveHandle &handle) const override |
"Trampoline" for ImagePsf to let it be used as a base class in Python.
Subclasses of ImagePsf that are wrapped in pybind11 should have a similar helper that subclasses ImagePsfTrampoline<subclass>. This helper can be skipped if the subclass neither adds any virtual methods nor implements any abstract methods.
| Base | the exact (most specific) class being wrapped |
|
inline |
Delegating constructor for wrapped class.
While we would like to simply inherit base class constructors, when doing so, we cannot change their access specifiers. One consequence is that it's not possible to use inheritance to expose a protected constructor to python. The alternative, used here, is to create a new public constructor that delegates to the base class public or protected constructor with the same signature.
| Args | Variadic type specification |
| ...args | Arguments to forward to the Base class constructor. |
|
inlineoverride |
|
inlineoverride |