lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
lsst::afw::table::CentroidSlotDefinition Class Reference

SlotDefinition specialization for centroids. More...

#include <slots.h>

Inheritance diagram for lsst::afw::table::CentroidSlotDefinition:
lsst::afw::table::SlotDefinition

Public Types

typedef geom::Point2D MeasValue
 Type returned by accessing the slot measurement. More...
 
typedef Eigen::Matrix< float, 2, 2 > ErrValue
 Type returned by accessing the slot uncertainty. More...
 
typedef Point2DKey MeasKey
 Key type used to access the slot measurement. More...
 
typedef CovarianceMatrixKey
< float, 2 > 
ErrKey
 Key type used to access the slot uncertainty. More...
 

Public Member Functions

 CentroidSlotDefinition (std::string const &name)
 Construct a SlotDefinition from the name of the slot (e.g. "Centroid") More...
 
bool isValid () const
 Return true if the key associated with the measurement is valid. More...
 
MeasKey getMeasKey () const
 Return the cached Key used to access the slot measurement. More...
 
ErrKey getErrKey () const
 Return the cached Key used to access the slot uncertainty. More...
 
Key< Flag > getFlagKey () const
 Return the cached Key used to access the slot failure flag. More...
 
void setKeys (std::string const &alias, Schema const &schema)
 Update the cached Keys following an change of aliases in the given Schema. More...
 
- Public Member Functions inherited from lsst::afw::table::SlotDefinition
 SlotDefinition (std::string const &name)
 Construct a SlotDefinition from the name of the slot (e.g. "Centroid" or "PsfFlux") More...
 
std::string getName () const
 Return the name of the slot (e.g. "Centroid" or "PsfFlux") More...
 
std::string getAlias () const
 Return the alias field prefix used to lookup Keys for the slot. More...
 

Additional Inherited Members

- Protected Attributes inherited from lsst::afw::table::SlotDefinition
std::string _name
 

Detailed Description

SlotDefinition specialization for centroids.

Definition at line 108 of file slots.h.

Member Typedef Documentation

Key type used to access the slot uncertainty.

Definition at line 113 of file slots.h.

typedef Eigen::Matrix<float, 2, 2> lsst::afw::table::CentroidSlotDefinition::ErrValue

Type returned by accessing the slot uncertainty.

Definition at line 111 of file slots.h.

Key type used to access the slot measurement.

Definition at line 112 of file slots.h.

Type returned by accessing the slot measurement.

Definition at line 110 of file slots.h.

Constructor & Destructor Documentation

lsst::afw::table::CentroidSlotDefinition::CentroidSlotDefinition ( std::string const &  name)
inlineexplicit

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

Definition at line 116 of file slots.h.

Member Function Documentation

ErrKey lsst::afw::table::CentroidSlotDefinition::getErrKey ( ) const
inline

Return the cached Key used to access the slot uncertainty.

Definition at line 125 of file slots.h.

Key<Flag> lsst::afw::table::CentroidSlotDefinition::getFlagKey ( ) const
inline

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

Definition at line 128 of file slots.h.

MeasKey lsst::afw::table::CentroidSlotDefinition::getMeasKey ( ) const
inline

Return the cached Key used to access the slot measurement.

Definition at line 122 of file slots.h.

bool lsst::afw::table::CentroidSlotDefinition::isValid ( ) const
inline

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

Definition at line 119 of file slots.h.

void lsst::afw::table::CentroidSlotDefinition::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]aliasIf 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]schemaSchema to search for Keys.

The documentation for this class was generated from the following file: