|
LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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