23#ifndef AFW_DETECTION_Peak_h_INCLUDED
24#define AFW_DETECTION_Peak_h_INCLUDED
59 BaseRecord(token,
std::move(
data))
201 struct MinimalSchema {
214 static MinimalSchema& getMinimalSchema();
220 int flags)
const override;
Record class that represents a peak in a Footprint.
lsst::geom::Point2I getI() const
lsst::geom::Point2I getCentroid(bool) const
PeakRecord(ConstructionToken const &token, table::detail::RecordData &&data)
Constructor used by PeakTable.
lsst::geom::Point2D getCentroid() const
std::shared_ptr< PeakTable const > getTable() const
PeakRecord & operator=(PeakRecord &&)=delete
lsst::geom::Point2D getF() const
PeakRecord(PeakRecord const &)=delete
void setPeakValue(float peakValue)
PeakRecord(PeakRecord &&)=delete
PeakRecord & operator=(PeakRecord const &)=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.
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(afw::table::Schema const &schema, std::shared_ptr< afw::table::IdFactory > const &idFactory)
static afw::table::Key< afw::table::RecordId > getIdKey()
Get keys for standard fields shared by all peaks.
static afw::table::Schema makeMinimalSchema()
Return a minimal schema for Peak tables and records.
PeakTable & operator=(PeakTable &&)=delete
static afw::table::Key< float > getPeakValueKey()
static afw::table::Key< float > getFyKey()
std::shared_ptr< afw::table::BaseRecord > _makeRecord() override
Default-construct an associated record (protected implementation).
std::shared_ptr< PeakRecord > makeRecord()
Default-construct an associated record.
std::shared_ptr< PeakTable > clone() const
Return a polymorphic deep copy of the table.
PeakTable & operator=(PeakTable const &)=delete
std::shared_ptr< afw::table::IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
std::shared_ptr< afw::table::io::FitsWriter > makeFitsWriter(fits::Fits *fitsfile, int flags) const override
std::shared_ptr< afw::table::IdFactory const > getIdFactory() const
Return the object that generates IDs for the table (may be null).
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.
static afw::table::Key< int > getIxKey()
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< float > getFxKey()
static afw::table::Key< int > getIyKey()
static bool checkSchema(afw::table::Schema const &other)
Return true if the given schema is a valid PeakTable schema.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Tag types used to declare specialized field types.
Base class for all records.
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.
Defines the fields and offsets for a table.
int contains(Schema const &other, int flags=EQUAL_KEYS) const
Test whether the given schema is a subset of this.
A mapping between the keys of two Schemas, used to copy data between them.
Writer object for FITS binary tables.
daf::base::PropertySet * set
std::ostream & operator<<(std::ostream &os, Footprint const &rhs)
Print a Footprint to the stream.
Point< double, 2 > Point2D
Helper struct that contains the information passed from BaseTable to BaseRecord at construction.