LSSTApplications
11.0-22-g33de520,13.0+153,14.0+52,14.0+57,14.0-1-g013352c+36,14.0-1-g13ef843+9,14.0-1-g4b114ac+14,14.0-1-g7257b6a+12,14.0-1-g8b7e855+51,14.0-13-g7a60b79+2,14.0-14-g87d16e8+10,14.0-14-gbf7a6f8a,14.0-17-g4f4ea82+5,14.0-2-g319577b+11,14.0-2-ga5af9b6+10,14.0-22-gc48c03f+3,14.0-3-g20413be+3,14.0-46-g76222d5f+3,14.0-47-g0a51fac97,14.0-5-g744ff5f+2,14.0-5-g86eb1bd+31,14.0-6-gd5b81a9+6,14.0-6-ge2c9487+42,14.0-8-g7f6dd6b+6,14.0-8-gb81b6e9+4,14.0-9-g11010eb,14.0-9-g330837b+5
LSSTDataManagementBasePackage
|
XYTransformFromWcsPair: An XYTransform obtained by putting two Wcs objects "back to back". More...
#include <Wcs.h>
Public Types | |
typedef afw::geom::Point2D | Point2D |
typedef afw::geom::AffineTransform | AffineTransform |
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) |
Public Member Functions | |
XYTransformFromWcsPair (std::shared_ptr< Wcs const > dst, std::shared_ptr< Wcs const > src) | |
virtual | ~XYTransformFromWcsPair () |
virtual std::shared_ptr< afw::geom::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 std::shared_ptr< afw::geom::XYTransform > | clone () const |
The following methods are needed to devirtualize the XYTransform parent class. More... | |
virtual Point2D | forwardTransform (Point2D const &pixel) const |
virtuals for forward and reverse transforms More... | |
virtual Point2D | reverseTransform (Point2D const &pixel) const |
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 |
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... | |
Static Public Member Functions | |
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... | |
Census | |
Provide a list of current Citizens | |
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... | |
callbackIDs | |
Set callback Ids. The old Id is returned | |
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... | |
callbacks | |
Set the New/Delete callback functions; in each case the previously installed callback is returned. These callback functions return a value which is Added to the previously registered id. The default callback functions are called default{New,Delete}Callback; you may want to set a break point in these callbacks from your favourite debugger | |
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... | |
Protected Attributes | |
std::shared_ptr< Wcs const > | _dst |
std::shared_ptr< Wcs const > | _src |
bool const | _isSameSkySystem |
XYTransformFromWcsPair: An XYTransform obtained by putting two Wcs objects "back to back".
Eventually there will be an XYTransform subclass which represents a camera distortion. For now we can get a SIP camera distortion in a clunky way, by using an XYTransformFromWcsPair with a SIP-distorted TanWcs and an undistorted Wcs.
|
inherited |
Definition at line 52 of file XYTransform.h.
|
inherited |
|
inherited |
Definition at line 51 of file XYTransform.h.
lsst::afw::image::XYTransformFromWcsPair::XYTransformFromWcsPair | ( | std::shared_ptr< Wcs const > | dst, |
std::shared_ptr< Wcs const > | src | ||
) |
|
inlinevirtual |
|
staticinherited |
How many active Citizens are there?
startingMemId | Don't print Citizens with lower IDs |
Definition at line 267 of file Citizen.cc.
|
staticinherited |
Print a list of all active Citizens to stream, sorted by ID.
stream | stream to print to |
startingMemId | Don't print Citizens with lower IDs |
Definition at line 290 of file Citizen.cc.
|
staticinherited |
Return a (newly allocated) std::vector of active Citizens sorted by ID.
You are responsible for deleting it; or you can say std::unique_ptr<std::vector<Citizen const*> const> leaks(Citizen::census()); and not bother (that becomes std::unique_ptr in C++11)
Definition at line 322 of file Citizen.cc.
|
virtual |
The following methods are needed to devirtualize the XYTransform parent class.
Implements lsst::afw::geom::XYTransform.
|
virtual |
virtuals for forward and reverse transforms
These routines are responsible for throwing exceptions if the 'point' arg is outside the domain of the transform.
Implements lsst::afw::geom::XYTransform.
|
inherited |
|
staticinherited |
Return the memId of the next object to be allocated.
Definition at line 229 of file Citizen.cc.
|
staticinherited |
Check all allocated blocks for corruption.
Definition at line 353 of file Citizen.cc.
|
staticinherited |
Called once when the memory system is being initialised.
Definition at line 214 of file Citizen.cc.
|
virtual |
returns a "deep inverse" in this sense that the forward+inverse transforms do not share state default implementation; subclass may override
Reimplemented from lsst::afw::geom::XYTransform.
|
virtualinherited |
linearized forward and reversed transforms
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.
|
virtualinherited |
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.
|
inherited |
Mark a Citizen as persistent and not destroyed until process end.
Definition at line 254 of file Citizen.cc.
|
inherited |
Return a string representation of a Citizen.
Definition at line 245 of file Citizen.cc.
|
virtual |
|
staticinherited |
Set the CorruptionCallback function.
func | function be called when block is found to be corrupted |
Definition at line 432 of file Citizen.cc.
|
staticinherited |
Set the DeleteCallback function.
func | function be called when desired block is deleted |
Definition at line 422 of file Citizen.cc.
|
staticinherited |
Call the current DeleteCallback when block is deleted.
id | Desired ID |
Definition at line 387 of file Citizen.cc.
|
staticinherited |
Set the NewCallback function.
func | The new function to be called when a designated block is allocated |
Definition at line 412 of file Citizen.cc.
|
staticinherited |
Call the NewCallback when block is allocated.
id | Desired ID |
Definition at line 376 of file Citizen.cc.
|
protected |
|
protected |
|
protected |