#include <simpleShape.h>
Definition at line 51 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.
static base::FlagDefinitionList const & getFlagDefinitions()
◆ addFields()
Definition at line 319 of file simpleShape.cc.
325 name,
"elliptical Gaussian moments");
327 name,
"elliptical Gaussian moments",
"pixel");
330 "Ix",
"Iy"}),
"pixel");
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.
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 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...
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.
static base::FlagDefinitionList const & getFlagDefinitions()
◆ get()
Implements lsst::afw::table::OutputFunctorKey< SimpleShapeResult >.
Definition at line 343 of file simpleShape.cc.
345 result.ellipse = record.get(_shapeResult);
346 result.center = record.get(_centroidResult);
347 result.covariance = record.get(_uncertantyResult);
349 result.flags[n] = _flagHandler.
getValue(record, n);
static unsigned int const N_FLAGS
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.
◆ getFlagHandler()
◆ isValid()
bool lsst::meas::extensions::simpleShape::SimpleShapeResultKey::isValid |
( |
| ) |
const |
Return True if the key is valid.
Definition at line 370 of file simpleShape.cc.
371 return _shapeResult.
isValid() &&
bool isValid() const noexcept
Return True if both the x and y Keys are valid.
bool isValid() const noexcept
Return True if all the constituent Keys are valid.
bool isValid() const noexcept
Return True if all the constituent error Keys are valid.
◆ operator!=()
bool lsst::meas::extensions::simpleShape::SimpleShapeResultKey::operator!= |
( |
SimpleShapeResultKey const & |
other | ) |
const |
|
inline |
Compare the FunctorKey for equality with another, using the underlying Keys.
Definition at line 78 of file simpleShape.h.
78 {
return !(*
this ==
other); }
ItemVariant const * other
◆ 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;
ItemVariant const * other
◆ set() [1/2]
◆ set() [2/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]);
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
The documentation for this class was generated from the following files:
- /j/snowflake/release/lsstsw/stack/Linux64/meas_extensions_simpleShape/18.1.0/include/lsst/meas/extensions/simpleShape.h
- /j/snowflake/release/lsstsw/stack/Linux64/meas_extensions_simpleShape/18.1.0/src/simpleShape.cc