LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
#include <simpleShape.h>
Definition at line 52 of file simpleShape.h.
◆ Value
The data type for get and set.
Definition at line 77 of file FunctorKey.h.
◆ SimpleShapeResultKey() [1/2]
lsst::meas::extensions::simpleShape::SimpleShapeResultKey::SimpleShapeResultKey |
( |
| ) |
|
|
inline |
◆ SimpleShapeResultKey() [2/2]
Construct from a subschema, assuming _xx, _yy, etc.
subfields
If a schema has "a_xx", "a_yy", etc. fields, this constructor allows you to construct a SimpleShapeResultKey via:
Definition at line 336 of file simpleShape.cc.
◆ addFields()
Definition at line 319 of file simpleShape.cc.
325 name,
"elliptical Gaussian moments");
327 name,
"elliptical Gaussian moments",
"pixel");
330 "Ix",
"Iy"}),
"pixel");
◆ get()
◆ getFlagHandler()
◆ isValid()
bool lsst::meas::extensions::simpleShape::SimpleShapeResultKey::isValid |
( |
| ) |
const |
◆ operator!=()
bool lsst::meas::extensions::simpleShape::SimpleShapeResultKey::operator!= |
( |
SimpleShapeResultKey const & |
other | ) |
const |
|
inline |
◆ operator==()
bool lsst::meas::extensions::simpleShape::SimpleShapeResultKey::operator== |
( |
SimpleShapeResultKey const & |
other | ) |
const |
Compare the FunctorKey for equality with another, using the underlying Keys.
Definition at line 363 of file simpleShape.cc.
364 return _shapeResult ==
other._shapeResult &&
365 _centroidResult ==
other._centroidResult &&
366 _uncertantyResult ==
other._uncertantyResult;
◆ set() [1/2]
Definition at line 354 of file simpleShape.cc.
355 record.set(_shapeResult, value.ellipse);
356 record.set(_centroidResult, value.center);
357 record.set(_uncertantyResult, value.covariance);
359 _flagHandler.
setValue(record, n, value.flags[n]);
◆ set() [2/2]
The documentation for this class was generated from the following files:
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/meas_extensions_simpleShape/20.0.0/include/lsst/meas/extensions/simpleShape.h
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/meas_extensions_simpleShape/20.0.0/src/simpleShape.cc
static PointKey addFields(Schema &schema, std::string const &name, std::string const &doc, std::string const &unit)
Add a pair of _x, _y fields to a Schema, and return a PointKey that points to them.
bool getValue(afw::table::BaseRecord const &record, std::size_t i) const
Return the value of the flag field corresponding to the given flag index.
bool isValid() const noexcept
Return True if all the constituent error Keys are valid.
bool isValid() const noexcept
Return True if both the x and y Keys are valid.
void setValue(afw::table::BaseRecord &record, std::size_t i, bool value) const
Set the flag field corresponding to the given flag index.
static unsigned int const N_FLAGS
static QuadrupoleKey addFields(Schema &schema, std::string const &name, std::string const &doc, CoordinateType coordType=CoordinateType::PIXEL)
Add a set of quadrupole subfields to a schema and return a QuadrupoleKey that points to them.
ItemVariant const * other
static CovarianceMatrixKey addFields(Schema &schema, std::string const &prefix, NameArray const &names, std::string const &unit, bool diagonalOnly=false)
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them.
static base::FlagDefinitionList const & getFlagDefinitions()
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinitionList const &flagDefs, FlagDefinitionList const &exclDefs=FlagDefinitionList::getEmptyList())
Add Flag fields to a schema, creating a FlagHandler object to manage them.
bool isValid() const noexcept
Return True if all the constituent Keys are valid.