LSSTApplications
11.0-24-g0a022a1,14.0+64,15.0,15.0+1,15.0-1-g14e9bfd,15.0-1-g1eca518,15.0-1-g499c38d,15.0-1-g60afb23,15.0-1-g6668b0b,15.0-1-g788a293,15.0-1-g82223af,15.0-1-ga91101e,15.0-1-gae1598d,15.0-1-gc45031d,15.0-1-gd076f1f,15.0-1-gf4f1c34,15.0-1-gfe1617d,15.0-16-g953e39cab,15.0-2-g2010ef9,15.0-2-g33d94b3,15.0-2-g5218728,15.0-2-g947dc0d,15.0-3-g9103c06,15.0-3-ga03b4ca,15.0-3-ga659d1f3,15.0-3-ga695220+2,15.0-3-gaec6799,15.0-3-gb7a597c,15.0-3-gd5b9ff95,15.0-4-g0478fed+2,15.0-4-g45f767a,15.0-4-gff20472+2,15.0-6-ge2d9597
LSSTDataManagementBasePackage
|
Wrap an AffineTransform. More...
#include <XYTransform.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 | |
AffineXYTransform (AffineTransform const &affineTransform) | |
AffineXYTransform (AffineXYTransform const &) | |
AffineXYTransform (AffineXYTransform &&) | |
AffineXYTransform & | operator= (AffineXYTransform const &) |
AffineXYTransform & | operator= (AffineXYTransform &&) |
~AffineXYTransform () | |
virtual std::shared_ptr< XYTransform > | clone () const |
returns a deep copy More... | |
virtual Point2D | forwardTransform (Point2D const &position) const |
virtuals for forward and reverse transforms More... | |
virtual Point2D | reverseTransform (Point2D const &position) const |
virtual AffineTransform | linearizeForwardTransform (Point2D const &position) const |
linearized forward and reversed transforms More... | |
virtual AffineTransform | linearizeReverseTransform (Point2D const &position) const |
default implementation; subclass may override More... | |
AffineTransform | getForwardTransform () const |
get underlying forward AffineTransform More... | |
AffineTransform | getReverseTransform () const |
get underlying reverse AffineTransform More... | |
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... | |
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 | |
AffineTransform | _forwardAffineTransform |
AffineTransform | _reverseAffineTransform |
Wrap an AffineTransform.
Definition at line 185 of file XYTransform.h.
|
inherited |
Definition at line 52 of file XYTransform.h.
|
inherited |
|
inherited |
Definition at line 51 of file XYTransform.h.
lsst::afw::geom::AffineXYTransform::AffineXYTransform | ( | AffineTransform const & | affineTransform | ) |
Definition at line 32 of file AffineXYTransform.cc.
|
default |
|
default |
|
default |
|
staticinherited |
How many active Citizens are there?
startingMemId | Don't print Citizens with lower IDs |
Definition at line 261 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 284 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 316 of file Citizen.cc.
|
virtual |
returns a deep copy
Implements lsst::afw::geom::XYTransform.
Definition at line 43 of file AffineXYTransform.cc.
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.
Definition at line 47 of file AffineXYTransform.cc.
AffineTransform lsst::afw::geom::AffineXYTransform::getForwardTransform | ( | ) | const |
get underlying forward AffineTransform
Definition at line 63 of file AffineXYTransform.cc.
|
inherited |
Return the Citizen's ID.
Definition at line 218 of file Citizen.cc.
|
staticinherited |
Return the memId of the next object to be allocated.
Definition at line 223 of file Citizen.cc.
AffineTransform lsst::afw::geom::AffineXYTransform::getReverseTransform | ( | ) | const |
get underlying reverse AffineTransform
Definition at line 65 of file AffineXYTransform.cc.
|
staticinherited |
Check all allocated blocks for corruption.
Definition at line 347 of file Citizen.cc.
|
staticinherited |
Called once when the memory system is being initialised.
Definition at line 208 of file Citizen.cc.
|
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.
Definition at line 55 of file XYTransform.cc.
|
virtual |
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 from lsst::afw::geom::XYTransform.
Definition at line 55 of file AffineXYTransform.cc.
|
virtual |
default implementation; subclass may override
Reimplemented from lsst::afw::geom::XYTransform.
Definition at line 59 of file AffineXYTransform.cc.
|
inherited |
Mark a Citizen as persistent and not destroyed until process end.
Definition at line 248 of file Citizen.cc.
|
default |
|
default |
|
inherited |
Return a string representation of a Citizen.
Definition at line 239 of file Citizen.cc.
|
virtual |
Implements lsst::afw::geom::XYTransform.
Definition at line 51 of file AffineXYTransform.cc.
|
staticinherited |
Set the CorruptionCallback function.
func | function be called when block is found to be corrupted |
Definition at line 426 of file Citizen.cc.
|
staticinherited |
Set the DeleteCallback function.
func | function be called when desired block is deleted |
Definition at line 416 of file Citizen.cc.
|
staticinherited |
Call the current DeleteCallback when block is deleted.
id | Desired ID |
Definition at line 381 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 406 of file Citizen.cc.
|
staticinherited |
Call the NewCallback when block is allocated.
id | Desired ID |
Definition at line 370 of file Citizen.cc.
|
protected |
Definition at line 205 of file XYTransform.h.
|
protected |
Definition at line 206 of file XYTransform.h.