|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
A collection of SpatialCells covering an entire image. More...
#include <SpatialCell.h>
Public Types | |
| typedef boost::shared_ptr < SpatialCellSet > | Ptr |
| typedef boost::shared_ptr < const SpatialCellSet > | ConstPtr |
| typedef std::vector < boost::shared_ptr < SpatialCell > > | CellList |
Public Member Functions | |
| SpatialCellSet (lsst::afw::geom::Box2I const ®ion, int xSize, int ySize=0) | |
| virtual | ~SpatialCellSet () |
| CellList & | getCellList () |
| lsst::afw::geom::Box2I | getBBox () const |
| void | insertCandidate (boost::shared_ptr< SpatialCellCandidate > candidate) |
| void | sortCandidates () |
| void | visitCandidates (CandidateVisitor *visitor, int const nMaxPerCell=-1, bool const ignoreExceptions=false) |
| void | visitCandidates (CandidateVisitor *visitor, int const nMaxPerCell=-1, bool const ignoreExceptions=false) const |
| void | visitAllCandidates (CandidateVisitor *visitor, bool const ignoreExceptions=false) |
| void | visitAllCandidates (CandidateVisitor *visitor, bool const ignoreExceptions=false) const |
| boost::shared_ptr < SpatialCellCandidate > | getCandidateById (int id, bool noThrow=false) |
| void | setIgnoreBad (bool ignoreBad) |
| Set whether we should omit BAD candidates from candidate list when traversing. More... | |
Private Attributes | |
| lsst::afw::geom::Box2I | _region |
| CellList | _cellList |
A collection of SpatialCells covering an entire image.
Definition at line 378 of file SpatialCell.h.
| typedef std::vector<boost::shared_ptr< SpatialCell > > lsst::afw::math::SpatialCellSet::CellList |
Definition at line 383 of file SpatialCell.h.
| typedef boost::shared_ptr<const SpatialCellSet> lsst::afw::math::SpatialCellSet::ConstPtr |
Definition at line 381 of file SpatialCell.h.
| typedef boost::shared_ptr<SpatialCellSet> lsst::afw::math::SpatialCellSet::Ptr |
Definition at line 380 of file SpatialCell.h.
| lsst::afw::math::SpatialCellSet::SpatialCellSet | ( | lsst::afw::geom::Box2I const & | region, |
| int | xSize, | ||
| int | ySize = 0 |
||
| ) |
Constructor
| lsst::pex::exceptions::LengthError | if nx or ny is non-positive |
| region | Bounding box for image |
| xSize | size of cells in the column direction |
| ySize | size of cells in the row direction (0: == xSize) |
Definition at line 413 of file SpatialCell.cc.
|
inlinevirtual |
|
inline |
| SpatialCellCandidate::Ptr lsst::afw::math::SpatialCellSet::getCandidateById | ( | int | id, |
| bool | noThrow = false |
||
| ) |
Return the SpatialCellCandidate with the specified id
| lsst::pex::exceptions::NotFoundError | if no candidate matches the id (unless noThrow is true, in which case a Ptr(NULL) is returned |
| id | The desired ID |
| noThrow | Return NULL in case of error |
Definition at line 581 of file SpatialCell.cc.
|
inline |
| void lsst::afw::math::SpatialCellSet::insertCandidate | ( | boost::shared_ptr< SpatialCellCandidate > | candidate | ) |
Insert a candidate into the correct cell
Definition at line 478 of file SpatialCell.cc.
| void lsst::afw::math::SpatialCellSet::setIgnoreBad | ( | bool | ignoreBad | ) |
Set whether we should omit BAD candidates from candidate list when traversing.
Definition at line 601 of file SpatialCell.cc.
| void lsst::afw::math::SpatialCellSet::sortCandidates | ( | ) |
Rearrange the Candidates in all SpatialCells to reflect their current ratings
Definition at line 495 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 546 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 562 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 510 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 527 of file SpatialCell.cc.
|
private |
Definition at line 419 of file SpatialCell.h.
|
private |
Definition at line 418 of file SpatialCell.h.
1.8.5