Class CentroidSlotDefinition

Inheritance Relationships

Base Type

Class Documentation

class CentroidSlotDefinition : public lsst::afw::table::SlotDefinition

SlotDefinition specialization for centroids.

Public Types

typedef lsst::geom::Point2D MeasValue

Type returned by accessing the slot measurement.

typedef Eigen::Matrix<float, 2, 2> ErrValue

Type returned by accessing the slot uncertainty.

typedef Point2DKey MeasKey

Key type used to access the slot measurement.

typedef CovarianceMatrixKey<float, 2> ErrKey

Key type used to access the slot uncertainty.

Public Functions

CentroidSlotDefinition(std::string const &name)

Construct a SlotDefinition from the name of the slot (e.g. “Centroid”)

bool isValid() const

Return true if the key associated with the measurement is valid.

MeasKey getMeasKey() const

Return the cached Key used to access the slot measurement.

ErrKey getErrKey() const

Return the cached Key used to access the slot uncertainty.

Key<Flag> getFlagKey() const

Return the cached Key used to access the slot failure flag.

void setKeys(std::string const &alias, Schema const &schema)

Update the cached Keys following an change of aliases in the given Schema

This method is intended for internal use by SourceTable only.

Parameters
  • [in] alias: If non-empty, abort early if this string does not start with getAlias() (used to see if an alias change might have affected this slot, and avoid unnecessary work if not).

  • [in] schema: Schema to search for Keys.

CentroidSlotDefinition(CentroidSlotDefinition const&)
CentroidSlotDefinition(CentroidSlotDefinition&&)
CentroidSlotDefinition &operator=(CentroidSlotDefinition const&)
CentroidSlotDefinition &operator=(CentroidSlotDefinition&&)
~CentroidSlotDefinition()