23 #ifndef AFW_DETECTION_Peak_h_INCLUDED
24 #define AFW_DETECTION_Peak_h_INCLUDED
201 struct MinimalSchema {
214 static MinimalSchema& getMinimalSchema();
220 int flags)
const override;
ItemVariant const * other
Record class that represents a peak in a Footprint.
lsst::geom::Point2I getI() const
std::shared_ptr< PeakTable const > getTable() const
lsst::geom::Point2I getCentroid(bool) const
PeakRecord(ConstructionToken const &token, table::detail::RecordData &&data)
Constructor used by PeakTable.
lsst::geom::Point2D getCentroid() const
PeakRecord & operator=(PeakRecord const &)=delete
afw::table::ColumnViewT< PeakRecord > ColumnView
lsst::geom::Point2D getF() const
PeakRecord(PeakRecord const &)=delete
PeakRecord & operator=(PeakRecord &&)=delete
afw::table::CatalogT< PeakRecord > Catalog
afw::table::CatalogT< PeakRecord const > ConstCatalog
void setPeakValue(float peakValue)
PeakRecord(PeakRecord &&)=delete
void setId(afw::table::RecordId id)
float getPeakValue() const
afw::table::RecordId getId() const
Convenience accessors for the keys in the minimal schema.
~PeakRecord() override=default
Table class for Peaks in Footprints.
std::shared_ptr< afw::table::BaseTable > _clone() const override
Clone implementation with noncovariant return types.
PeakTable & operator=(PeakTable &&)=delete
PeakTable(afw::table::Schema const &schema, std::shared_ptr< afw::table::IdFactory > const &idFactory)
static afw::table::Schema makeMinimalSchema()
Return a minimal schema for Peak tables and records.
static afw::table::Key< float > getFxKey()
static afw::table::Key< int > getIxKey()
std::shared_ptr< afw::table::BaseRecord > _makeRecord() override
Default-construct an associated record (protected implementation).
std::shared_ptr< PeakRecord > copyRecord(afw::table::BaseRecord const &other)
Deep-copy a record, requiring that it have the same schema as this table.
PeakTable & operator=(PeakTable const &)=delete
static std::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.
std::shared_ptr< PeakRecord > copyRecord(afw::table::BaseRecord const &other, afw::table::SchemaMapper const &mapper)
Deep-copy a record, requiring that it have the same schema as this table.
std::shared_ptr< afw::table::IdFactory const > getIdFactory() const
Return the object that generates IDs for the table (may be null).
afw::table::CatalogT< Record const > ConstCatalog
afw::table::CatalogT< Record > Catalog
static afw::table::Key< afw::table::RecordId > getIdKey()
Get keys for standard fields shared by all peaks.
void setIdFactory(std::shared_ptr< afw::table::IdFactory > f)
Switch to a new IdFactory – object that generates IDs for the table (may be null).
static afw::table::Key< int > getIyKey()
afw::table::ColumnViewT< PeakRecord > ColumnView
static afw::table::Key< float > getPeakValueKey()
static afw::table::Key< float > getFyKey()
std::shared_ptr< PeakRecord > makeRecord()
Default-construct an associated record.
std::shared_ptr< PeakTable > clone() const
Return a polymorphic deep copy of the table.
static bool checkSchema(afw::table::Schema const &other)
Return true if the given schema is a valid PeakTable schema.
std::shared_ptr< afw::table::IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Base class for all records.
BaseRecord(ConstructionToken const &, detail::RecordData &&data)
Construct a record with uninitialized data.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
std::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
Base class for all tables.
std::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
A class used as a handle to a particular field in a table.
Defines the fields and offsets for a table.
A mapping between the keys of two Schemas, used to copy data between them.
Writer object for FITS binary tables.
afw::table::CatalogT< PeakRecord > PeakCatalog
afw::table::ColumnViewT< PeakRecord > PeakColumnView
afw::table::CatalogT< PeakRecord const > ConstPeakCatalog
std::ostream & operator<<(std::ostream &os, PeakRecord const &record)
Point< double, 2 > Point2D
A base class for image defects.
Helper struct that contains the information passed from BaseTable to BaseRecord at construction.