lsst.afw  14.0-60-ga423a1d65+1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lsst::afw::geom::SeparableXYTransform Class Reference

A 2D transform for which the pixel distortions in the in the x- and y-directions are separable. More...

#include <SeparableXYTransform.h>

Inheritance diagram for lsst::afw::geom::SeparableXYTransform:
lsst::afw::geom::XYTransform lsst::daf::base::Citizen

Public Types

typedef afw::geom::Point2D Point2D
 
typedef afw::geom::AffineTransform AffineTransform
 
typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

Public Member Functions

 SeparableXYTransform (Functor const &xfunctor, Functor const &yfunctor)
 
 SeparableXYTransform (SeparableXYTransform const &)
 
 SeparableXYTransform (SeparableXYTransform &&)
 
SeparableXYTransform & operator= (SeparableXYTransform const &)
 
SeparableXYTransform & operator= (SeparableXYTransform &&)
 
virtual ~SeparableXYTransform ()=default
 
virtual std::shared_ptr< XYTransform > clone () const
 returns a deep copy More...
 
virtual Point2D forwardTransform (Point2D const &point) const
 
virtual Point2D reverseTransform (Point2D const &point) const
 
Functor const & getXfunctor () const
 
Functor const & getYfunctor () const
 
virtual std::shared_ptr< XYTransform > invert () const
 returns a "deep inverse" in this sense that the forward+inverse transforms do not share state default implementation; subclass may override More...
 
virtual AffineTransform linearizeForwardTransform (Point2D const &point) const
 linearized forward and reversed transforms More...
 
virtual AffineTransform linearizeReverseTransform (Point2D const &point) const
 default implementation; subclass may override More...
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 

Static Public Member Functions

static bool hasBeenCorrupted ()
 
static memId getNextMemId ()
 
static int init ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static memId setNewCallbackId (memId id)
 
static memId setNewCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memNewCallback setNewCallback (memNewCallback func)
 
static memCallback setDeleteCallback (memCallback func)
 
static memCallback setCorruptionCallback (memCallback func)
 

Public Attributes

 magicSentinel
 

Detailed Description

A 2D transform for which the pixel distortions in the in the x- and y-directions are separable.

Deprecated:
Deprecated in 14.0. Will be removed in 15.0. It is partially replaced by ast::ParallelMap or ast::Mapping::under, but the replacement of Functors with Mappings must be done on a case-by-case basis.

The transformations in each direction are implemented as separate instances of concrete subclasses of the Functor base class.

Definition at line 52 of file SeparableXYTransform.h.

Member Typedef Documentation

◆ AffineTransform

Definition at line 52 of file XYTransform.h.

◆ Point2D

Definition at line 51 of file XYTransform.h.

Constructor & Destructor Documentation

◆ SeparableXYTransform() [1/3]

lsst::afw::geom::SeparableXYTransform::SeparableXYTransform ( Functor const &  xfunctor,
Functor const &  yfunctor 
)
Parameters
xfunctorFunctor describing the transformation from nominal pixels to actual pixels in the x-direction.
yfunctorFunctor describing the transformation from nominal pixels to actual pixels in the y-direction.

◆ SeparableXYTransform() [2/3]

lsst::afw::geom::SeparableXYTransform::SeparableXYTransform ( SeparableXYTransform const &  )

◆ SeparableXYTransform() [3/3]

lsst::afw::geom::SeparableXYTransform::SeparableXYTransform ( SeparableXYTransform &&  )

◆ ~SeparableXYTransform()

virtual lsst::afw::geom::SeparableXYTransform::~SeparableXYTransform ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual std::shared_ptr<XYTransform> lsst::afw::geom::SeparableXYTransform::clone ( ) const
virtual

returns a deep copy

Implements lsst::afw::geom::XYTransform.

◆ forwardTransform()

virtual Point2D lsst::afw::geom::SeparableXYTransform::forwardTransform ( Point2D const &  point) const
virtual
Parameters
pointThe Point2D location in sensor coordinates in units of pixels. This corresponds to the location on the sensor in the absence of the pixel distortions.
Returns
The transformed Point2D in sensor coordinates in units of pixels.

Implements lsst::afw::geom::XYTransform.

◆ getXfunctor()

Functor const& lsst::afw::geom::SeparableXYTransform::getXfunctor ( ) const
Returns
Const reference to the xfunctor.

◆ getYfunctor()

Functor const& lsst::afw::geom::SeparableXYTransform::getYfunctor ( ) const
Returns
Const reference to the yfunctor.

◆ invert()

virtual std::shared_ptr<XYTransform> lsst::afw::geom::XYTransform::invert ( ) const
virtualinherited

returns a "deep inverse" in this sense that the forward+inverse transforms do not share state default implementation; subclass may override

Reimplemented in lsst::afw::geom::RadialXYTransform, and lsst::afw::geom::InvertedXYTransform.

◆ linearizeForwardTransform()

virtual AffineTransform lsst::afw::geom::XYTransform::linearizeForwardTransform ( Point2D const &  point) const
virtualinherited

linearized forward and reversed transforms

Deprecated:
Deprecated in 14.0. Will be removed in 15.0; it is superseded by geom::linearizeTransform.

These are virtual but not pure virtual; there is a default implementation which calls forwardTransform() or reverseTransform() and takes finite differences with step size equal to one.

The following should always be satisfied for an arbitrary Point2D p (and analogously for the reverse transform) this->forwardTransform(p) == this->linearizeForwardTransform(p)(p);default implementation; subclass may override

Reimplemented in lsst::afw::geom::RadialXYTransform, lsst::afw::geom::AffineXYTransform, lsst::afw::geom::MultiXYTransform, lsst::afw::geom::InvertedXYTransform, and lsst::afw::geom::IdentityXYTransform.

◆ linearizeReverseTransform()

virtual AffineTransform lsst::afw::geom::XYTransform::linearizeReverseTransform ( Point2D const &  point) const
virtualinherited

◆ operator=() [1/2]

SeparableXYTransform& lsst::afw::geom::SeparableXYTransform::operator= ( SeparableXYTransform const &  )

◆ operator=() [2/2]

SeparableXYTransform& lsst::afw::geom::SeparableXYTransform::operator= ( SeparableXYTransform &&  )

◆ reverseTransform()

virtual Point2D lsst::afw::geom::SeparableXYTransform::reverseTransform ( Point2D const &  point) const
virtual
Parameters
pointThe Point2D location in sensor coordinates. This corresponds to the actual location of charge deposition, i.e., with the pixel distortions applied.
Returns
The un-transformed Point2D in sensor coordinates.

Implements lsst::afw::geom::XYTransform.


The documentation for this class was generated from the following file: