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.
static afw::table::Key< float > getFxKey()
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 > peakValue
boost::shared_ptr< afw::table::IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
Writer object for FITS binary tables.
PeakTable(afw::table::Schema const &schema, boost::shared_ptr< afw::table::IdFactory > const &idFactory)
std::ostream & operator<<(std::ostream &os, PeakRecord const &record)
afw::table::Key< int > ix
afw::table::Key< float > fy
static afw::table::Schema makeMinimalSchema()
Return a minimal schema for Peak tables and records.
afw::geom::Point2D getF() const
Convenience accessors for the keys in the minimal schema.
virtual boost::shared_ptr< afw::table::io::FitsWriter > makeFitsWriter(fits::Fits *fitsfile, int flags) const
boost::shared_ptr< PeakTable > clone() const
afw::table::Schema schema
afw::table::CatalogT< PeakRecord > Catalog
boost::shared_ptr< PeakRecord > makeRecord()
afw::table::CatalogT< Record const > ConstCatalog
Table class for Peaks in Footprints.
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.
Point< double, 2 > Point2D
PeakRecord(boost::shared_ptr< PeakTable > const &table)
static afw::table::Key< float > getPeakValueKey()
std::map< Citizen const *, CitizenInfo > table
void setId(afw::table::RecordId id)
Convenience accessors for the keys in the minimal schema.
static afw::table::Key< float > getFyKey()
void setIy(int iy)
Convenience accessors for the keys in the minimal schema.
afw::table::CatalogT< PeakRecord const > ConstCatalog
afw::table::Key< float > fx
int getIy() const
Convenience accessors for the keys in the minimal schema.
afw::table::CatalogT< PeakRecord const > ConstPeakCatalog
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::geom::Point2I getCentroid(bool) const
Convenience accessors for the keys in the minimal schema.
void setFy(float fy)
Convenience accessors for the keys in the minimal schema.
boost::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
afw::table::CatalogT< PeakRecord > PeakCatalog
afw::table::CatalogT< Record > Catalog
afw::table::Schema schema
boost::shared_ptr< PeakRecord > copyRecord(afw::table::BaseRecord const &other)
afw::table::ColumnViewT< PeakRecord > PeakColumnView
int getIx() const
Convenience accessors for the keys in the minimal schema.
afw::table::Key< int > iy
static afw::table::Key< afw::table::RecordId > getIdKey()
A polymorphic functor base class for generating record IDs for a table.
afw::table::Key< afw::table::RecordId > id
static bool checkSchema(afw::table::Schema const &other)
Return true if the given schema is a valid PeakTable schema.
afw::table::ColumnViewT< PeakRecord > ColumnView
Base class for all records.
int contains(Schema const &other, int flags=EQUAL_KEYS) const
Test whether the given schema is a subset of this.
virtual boost::shared_ptr< BaseTable > _clone() const =0
Clone implementation with noncovariant return types.
afw::geom::Point2D getCentroid() const
Convenience accessors for the keys in the minimal schema.
virtual boost::shared_ptr< BaseRecord > _makeRecord()=0
Default-construct an associated record (protected implementation).
float getFy() const
Convenience accessors for the keys in the minimal schema.
boost::shared_ptr< PeakTable const > getTable() const
boost::shared_ptr< afw::table::IdFactory > _idFactory
static afw::table::Key< int > getIyKey()
void setPeakValue(float peakValue)
Convenience accessors for the keys in the minimal schema.
void setIx(int ix)
Convenience accessors for the keys in the minimal schema.
float getPeakValue() const
Convenience accessors for the keys in the minimal schema.
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.
Record class that represents a peak in a Footprint.
static MinimalSchema & getMinimalSchema()
afw::table::ColumnViewT< PeakRecord > ColumnView
boost::int64_t RecordId
Type used for unique IDs for records.
Base class for all tables.
afw::table::RecordId getId() const
Convenience accessors for the keys in the minimal schema.
afw::geom::Point2I getI() const
Convenience accessors for the keys in the minimal schema.
static afw::table::Key< int > getIxKey()