LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Private 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. The transformations in each direction are implemented as separate instances of concrete subclasses of the Functor base class. More...

#include <SeparableXYTransform.h>

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

Public Member Functions

 SeparableXYTransform (Functor const &xfunctor, Functor const &yfunctor)
 
virtual ~SeparableXYTransform ()
 
virtual boost::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
 
- Public Member Functions inherited from lsst::afw::geom::XYTransform
 XYTransform ()
 
virtual ~XYTransform ()
 
virtual boost::shared_ptr
< XYTransform
invert () const
 returns a "deep inverse" in this sense that the forward+inverse transforms do not share state More...
 
virtual AffineTransform linearizeForwardTransform (Point2D const &point) const
 linearized forward and reversed transforms More...
 
virtual AffineTransform linearizeReverseTransform (Point2D const &point) const
 
- Public Member Functions inherited from lsst::daf::base::Citizen
 Citizen (const std::type_info &)
 
 Citizen (Citizen const &)
 
 ~Citizen ()
 
Citizenoperator= (Citizen const &)
 
std::string repr () const
 Return a string representation of a Citizen. More...
 
void markPersistent (void)
 Mark a Citizen as persistent and not destroyed until process end. More...
 
memId getId () const
 Return the Citizen's ID. More...
 

Private Attributes

boost::shared_ptr< Functor_xfunctor
 
boost::shared_ptr< Functor_yfunctor
 

Additional Inherited Members

- Public Types inherited from lsst::afw::geom::XYTransform
typedef afw::geom::Point2D Point2D
 
typedef afw::geom::AffineTransform AffineTransform
 
- Public Types inherited from lsst::daf::base::Citizen
enum  { magicSentinel = 0xdeadbeef }
 
typedef unsigned long memId
 Type of the block's ID. More...
 
typedef memId(* memNewCallback )(const memId cid)
 A function used to register a callback. More...
 
typedef memId(* memCallback )(const Citizen *ptr)
 
- Static Public Member Functions inherited from lsst::daf::base::Citizen
static bool hasBeenCorrupted ()
 Check all allocated blocks for corruption. More...
 
static memId getNextMemId ()
 Return the memId of the next object to be allocated. More...
 
static int init ()
 Called once when the memory system is being initialised. More...
 
static int census (int, memId startingMemId=0)
 How many active Citizens are there? More...
 
static void census (std::ostream &stream, memId startingMemId=0)
 Print a list of all active Citizens to stream, sorted by ID. More...
 
static const std::vector
< const Citizen * > * 
census ()
 Return a (newly allocated) std::vector of active Citizens sorted by ID. More...
 
static memId setNewCallbackId (memId id)
 Call the NewCallback when block is allocated. More...
 
static memId setDeleteCallbackId (memId id)
 Call the current DeleteCallback when block is deleted. More...
 
static memNewCallback setNewCallback (memNewCallback func)
 Set the NewCallback function. More...
 
static memCallback setDeleteCallback (memCallback func)
 Set the DeleteCallback function. More...
 
static memCallback setCorruptionCallback (memCallback func)
 Set the CorruptionCallback function. More...
 

Detailed Description

A 2D transform for which the pixel distortions in the in the x- and y-directions are separable. The transformations in each direction are implemented as separate instances of concrete subclasses of the Functor base class.

Definition at line 46 of file SeparableXYTransform.h.

Constructor & Destructor Documentation

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.
virtual lsst::afw::geom::SeparableXYTransform::~SeparableXYTransform ( )
inlinevirtual

Definition at line 56 of file SeparableXYTransform.h.

56 {}

Member Function Documentation

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

returns a deep copy

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

virtual Point2D lsst::afw::geom::SeparableXYTransform::forwardTransform ( Point2D const &  point) const
virtual
Returns
The transformed Point2D in sensor coordinates in units of pixels.
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.

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

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

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

Member Data Documentation

boost::shared_ptr< Functor > lsst::afw::geom::SeparableXYTransform::_xfunctor
private

Definition at line 81 of file SeparableXYTransform.h.

boost::shared_ptr< Functor > lsst::afw::geom::SeparableXYTransform::_yfunctor
private

Definition at line 82 of file SeparableXYTransform.h.


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