LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
A collection of SpatialCells covering an entire image. More...
#include <SpatialCell.h>
Public Types | |
using | CellList = std::vector<std::shared_ptr<SpatialCell>> |
Public Member Functions | |
SpatialCellSet (lsst::geom::Box2I const ®ion, int xSize, int ySize=0) | |
Constructor. | |
SpatialCellSet (SpatialCellSet const &)=default | |
SpatialCellSet (SpatialCellSet &&)=default | |
SpatialCellSet & | operator= (SpatialCellSet const &)=default |
SpatialCellSet & | operator= (SpatialCellSet &&)=default |
virtual | ~SpatialCellSet ()=default |
Destructor. | |
CellList & | getCellList () |
Return our SpatialCells. | |
lsst::geom::Box2I | getBBox () const |
Return the bounding box of the image. | |
void | insertCandidate (std::shared_ptr< SpatialCellCandidate > candidate) |
Insert a candidate into the correct cell. | |
void | sortCandidates () |
Rearrange the Candidates in all SpatialCells to reflect their current ratings. | |
void | visitCandidates (CandidateVisitor *visitor, int const nMaxPerCell=-1, bool const ignoreExceptions=false) |
Call the visitor's processCandidate method for each Candidate in the SpatialCellSet. | |
void | visitCandidates (CandidateVisitor *visitor, int const nMaxPerCell=-1, bool const ignoreExceptions=false) const |
Call the visitor's processCandidate method for each Candidate in the SpatialCellSet (const version) | |
void | visitAllCandidates (CandidateVisitor *visitor, bool const ignoreExceptions=false) |
Call the visitor's processCandidate method for every Candidate in the SpatialCellSet. | |
void | visitAllCandidates (CandidateVisitor *visitor, bool const ignoreExceptions=false) const |
Call the visitor's processCandidate method for every Candidate in the SpatialCellSet (const version) | |
std::shared_ptr< SpatialCellCandidate > | getCandidateById (int id, bool noThrow=false) |
Return the SpatialCellCandidate with the specified id. | |
void | setIgnoreBad (bool ignoreBad) |
Set whether we should omit BAD candidates from candidate list when traversing. | |
A collection of SpatialCells covering an entire image.
Definition at line 383 of file SpatialCell.h.
Definition at line 385 of file SpatialCell.h.
lsst::afw::math::SpatialCellSet::SpatialCellSet | ( | lsst::geom::Box2I const & | region, |
int | xSize, | ||
int | ySize = 0 ) |
Constructor.
region | Bounding box for image |
xSize | size of cells in the column direction |
ySize | size of cells in the row direction (0: == xSize) |
lsst::pex::exceptions::LengthError | if nx or ny is non-positive |
Definition at line 301 of file SpatialCell.cc.
|
default |
|
default |
|
virtualdefault |
Destructor.
|
inline |
Return the bounding box of the image.
Definition at line 416 of file SpatialCell.h.
std::shared_ptr< SpatialCellCandidate > lsst::afw::math::SpatialCellSet::getCandidateById | ( | int | id, |
bool | noThrow = false ) |
Return the SpatialCellCandidate with the specified id.
id | The desired ID |
noThrow | Return NULL in case of error |
lsst::pex::exceptions::NotFoundError | if no candidate matches the id (unless noThrow is true, in which case a null pointer is returned |
Definition at line 414 of file SpatialCell.cc.
|
inline |
void lsst::afw::math::SpatialCellSet::insertCandidate | ( | std::shared_ptr< SpatialCellCandidate > | candidate | ) |
Insert a candidate into the correct cell.
Definition at line 359 of file SpatialCell.cc.
|
default |
|
default |
void lsst::afw::math::SpatialCellSet::setIgnoreBad | ( | bool | ignoreBad | ) |
Set whether we should omit BAD candidates from candidate list when traversing.
Definition at line 431 of file SpatialCell.cc.
void lsst::afw::math::SpatialCellSet::sortCandidates | ( | ) |
Rearrange the Candidates in all SpatialCells to reflect their current ratings.
Definition at line 372 of file SpatialCell.cc.
void lsst::afw::math::SpatialCellSet::visitAllCandidates | ( | CandidateVisitor * | visitor, |
bool const | ignoreExceptions = false ) |
Call the visitor's processCandidate method for every Candidate in the SpatialCellSet.
visitor | Pass this object to every Candidate |
ignoreExceptions | Ignore any exceptions thrown by the processing |
Definition at line 397 of file SpatialCell.cc.
void lsst::afw::math::SpatialCellSet::visitAllCandidates | ( | CandidateVisitor * | visitor, |
bool const | ignoreExceptions = false ) const |
Call the visitor's processCandidate method for every Candidate in the SpatialCellSet (const version)
This is the const version of SpatialCellSet::visitAllCandidates
visitor | Pass this object to every Candidate |
ignoreExceptions | Ignore any exceptions thrown by the processing |
Definition at line 405 of file SpatialCell.cc.
void lsst::afw::math::SpatialCellSet::visitCandidates | ( | CandidateVisitor * | visitor, |
int const | nMaxPerCell = -1, | ||
bool const | ignoreExceptions = false ) |
Call the visitor's processCandidate method for each Candidate in the SpatialCellSet.
visitor | Pass this object to every Candidate |
nMaxPerCell | Visit no more than this many Candidates (<= 0: all) |
ignoreExceptions | Ignore any exceptions thrown by the processing |
Definition at line 378 of file SpatialCell.cc.
void lsst::afw::math::SpatialCellSet::visitCandidates | ( | CandidateVisitor * | visitor, |
int const | nMaxPerCell = -1, | ||
bool const | ignoreExceptions = false ) const |
Call the visitor's processCandidate method for each Candidate in the SpatialCellSet (const version)
This is the const version of SpatialCellSet::visitCandidates
visitor | Pass this object to every Candidate |
nMaxPerCell | Visit no more than this many Candidates (-ve: all) |
ignoreExceptions | Ignore any exceptions thrown by the processing |
Definition at line 387 of file SpatialCell.cc.