23 #ifndef AFW_DETECTION_Peak_h_INCLUDED 24 #define AFW_DETECTION_Peak_h_INCLUDED 191 struct MinimalSchema {
204 static MinimalSchema& getMinimalSchema();
210 int flags)
const override;
240 #endif // !AFW_DETECTION_Peak_h_INCLUDED Defines the fields and offsets for a table.
static afw::table::Key< float > getFxKey()
Get keys for standard fields shared by all peaks.
int getIy() const
Convenience accessors for the keys in the minimal schema.
Writer object for FITS binary tables.
friend std::ostream & operator<<(std::ostream &os, BaseRecord const &record)
Write the record's content out, one field on each line.
std::shared_ptr< afw::table::IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
std::shared_ptr< PeakRecord > makeRecord()
Default-construct an associated record.
static afw::table::Schema makeMinimalSchema()
Return a minimal schema for Peak tables and records.
std::shared_ptr< PeakTable > clone() const
Return a polymorphic deep copy of the table.
A mapping between the keys of two Schemas, used to copy data between them.
afw::table::CatalogT< PeakRecord > Catalog
afw::table::CatalogT< Record const > ConstCatalog
PeakRecord(PeakRecord const &)=delete
Table class for Peaks in Footprints.
lsst::geom::Point2I getI() const
Convenience accessors for the keys in the minimal schema.
PeakRecord & operator=(PeakRecord const &)=delete
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
std::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
static afw::table::Key< float > getPeakValueKey()
Get keys for standard fields shared by all peaks.
float getPeakValue() const
Convenience accessors for the keys in the minimal schema.
std::shared_ptr< PeakTable const > getTable() const
Point< double, 2 > Point2D
void setId(afw::table::RecordId id)
Convenience accessors for the keys in the minimal schema.
afw::table::RecordId getId() const
Convenience accessors for the keys in the minimal schema.
static afw::table::Key< float > getFyKey()
Get keys for standard fields shared by all peaks.
void setIy(int iy)
Convenience accessors for the keys in the minimal schema.
afw::table::CatalogT< PeakRecord const > ConstCatalog
std::shared_ptr< PeakRecord > copyRecord(afw::table::BaseRecord const &other)
Deep-copy a record, requiring that it have the same schema as this table.
afw::table::CatalogT< PeakRecord const > ConstPeakCatalog
void setFy(float fy)
Convenience accessors for the keys in the minimal schema.
A base class for image defects.
afw::table::CatalogT< PeakRecord > PeakCatalog
afw::table::CatalogT< Record > Catalog
int contains(Schema const &other, int flags=EQUAL_KEYS) const
Test whether the given schema is a subset of this.
afw::table::ColumnViewT< PeakRecord > PeakColumnView
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< afw::table::RecordId > getIdKey()
Get keys for standard fields shared by all peaks.
T static_pointer_cast(T... args)
int getIx() const
Convenience accessors for the keys in the minimal schema.
std::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
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.
A class used as a handle to a particular field in a table.
~PeakRecord() override=default
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()
Get keys for standard fields shared by all peaks.
lsst::geom::Point2I getCentroid(bool) const
Convenience accessors for the keys in the minimal schema.
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.
ItemVariant const * other
lsst::geom::Point2D getF() 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.
lsst::geom::Point2D getCentroid() const
Convenience accessors for the keys in the minimal schema.
afw::table::ColumnViewT< PeakRecord > ColumnView
float getFy() const
Convenience accessors for the keys in the minimal schema.
Base class for all tables.
std::shared_ptr< afw::table::IdFactory const > getIdFactory() const
Return the object that generates IDs for the table (may be null).
static afw::table::Key< int > getIxKey()
Get keys for standard fields shared by all peaks.
float getFx() const
Convenience accessors for the keys in the minimal schema.