23 #ifndef AFW_DETECTION_Peak_h_INCLUDED
24 #define AFW_DETECTION_Peak_h_INCLUDED
32 namespace lsst {
namespace afw {
namespace detection {
165 afw::
table::SchemaMapper const & mapper
230 #endif // !AFW_DETECTION_Peak_h_INCLUDED
Defines the fields and offsets for a table.
afw::table::ColumnViewT< PeakRecord > ColumnView
Writer object for FITS binary tables.
std::ostream & operator<<(std::ostream &os, PeakRecord const &record)
boost::shared_ptr< PeakRecord > makeRecord()
void setFy(float fy)
Convenience accessors for the keys in the minimal schema.
afw::table::Key< afw::table::RecordId > id
float getFx() const
Convenience accessors for the keys in the minimal schema.
void setFx(float fx)
Convenience accessors for the keys in the minimal schema.
void setPeakValue(float peakValue)
Convenience accessors for the keys in the minimal schema.
afw::geom::Point2I getI() const
Convenience accessors for the keys in the minimal schema.
boost::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
Table class for Peaks in Footprints.
void setIy(int iy)
Convenience accessors for the keys in the minimal schema.
boost::shared_ptr< PeakTable const > getTable() const
afw::table::CatalogT< PeakRecord > PeakCatalog
static afw::table::Schema makeMinimalSchema()
Return a minimal schema for Peak tables and records.
virtual boost::shared_ptr< BaseTable > _clone() const =0
Clone implementation with noncovariant return types.
static bool checkSchema(afw::table::Schema const &other)
Return true if the given schema is a valid PeakTable schema.
afw::table::Key< int > ix
virtual boost::shared_ptr< BaseRecord > _makeRecord()=0
Default-construct an associated record (protected implementation).
int getIy() const
Convenience accessors for the keys in the minimal schema.
static afw::table::Key< int > getIxKey()
static afw::table::Key< int > getIyKey()
afw::table::CatalogT< PeakRecord const > ConstCatalog
std::map< Citizen const *, CitizenInfo > table
afw::table::CatalogT< PeakRecord const > ConstPeakCatalog
static boost::shared_ptr< PeakTable > make(afw::table::Schema const &schema, bool forceNew=false)
Obtain a table that can be used to create records with given schema.
boost::shared_ptr< afw::table::IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
afw::table::Schema schema
afw::table::Key< float > fx
int contains(Schema const &other, int flags=EQUAL_KEYS) const
Test whether the given schema is a subset of this.
static afw::table::Key< float > getFxKey()
static afw::table::Key< float > getFyKey()
afw::table::CatalogT< Record const > ConstCatalog
PeakRecord(boost::shared_ptr< PeakTable > const &table)
static MinimalSchema & getMinimalSchema()
afw::table::RecordId getId() const
Convenience accessors for the keys in the minimal schema.
float getPeakValue() const
Convenience accessors for the keys in the minimal schema.
afw::geom::Point2D getCentroid() const
Convenience accessors for the keys in the minimal schema.
void setIx(int ix)
Convenience accessors for the keys in the minimal schema.
void setIdFactory(boost::shared_ptr< afw::table::IdFactory > f)
Switch to a new IdFactory – object that generates IDs for the table (may be null).
afw::table::CatalogT< Record > Catalog
afw::table::ColumnViewT< PeakRecord > PeakColumnView
A polymorphic functor base class for generating record IDs for a table.
PeakTable(afw::table::Schema const &schema, boost::shared_ptr< afw::table::IdFactory > const &idFactory)
boost::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
afw::table::Key< float > fy
Base class for all records.
afw::table::ColumnViewT< PeakRecord > ColumnView
afw::table::Key< float > peakValue
afw::geom::Point2I getCentroid(bool) const
Convenience accessors for the keys in the minimal schema.
afw::table::Key< int > iy
static afw::table::Key< float > getPeakValueKey()
float getFy() const
Convenience accessors for the keys in the minimal schema.
void setId(afw::table::RecordId id)
Convenience accessors for the keys in the minimal schema.
Point< double, 2 > Point2D
virtual boost::shared_ptr< afw::table::io::FitsWriter > makeFitsWriter(fits::Fits *fitsfile, int flags) const
boost::shared_ptr< PeakRecord > copyRecord(afw::table::BaseRecord const &other)
boost::shared_ptr< PeakTable > clone() const
afw::table::CatalogT< PeakRecord > Catalog
Record class that represents a peak in a Footprint.
boost::int64_t RecordId
Type used for unique IDs for records.
static afw::table::Key< afw::table::RecordId > getIdKey()
afw::geom::Point2D getF() const
Convenience accessors for the keys in the minimal schema.
Base class for all tables.
int getIx() const
Convenience accessors for the keys in the minimal schema.
boost::shared_ptr< afw::table::IdFactory > _idFactory