LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Attributes | List of all members
lsst::afw::table::ShapeSlotDefinition Class Reference

SlotDefinition specialization for shapes. More...

#include <slots.h>

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

Public Types

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

Public Member Functions

 ShapeSlotDefinition (std::string const &name)
 Construct a SlotDefinition from the name of the slot (e.g. "Shape") 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)
 
- 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 (int version) const
 

Private Attributes

MeasKey _measKey
 
ErrKey _errKey
 
Key< Flag > _flagKey
 

Additional Inherited Members

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

Detailed Description

SlotDefinition specialization for shapes.

Definition at line 154 of file slots.h.

Member Typedef Documentation

Key type used to access the slot uncertainty.

Definition at line 160 of file slots.h.

typedef Eigen::Matrix<float,3,3> lsst::afw::table::ShapeSlotDefinition::ErrValue

Type returned by accessing the slot uncertainty.

Definition at line 158 of file slots.h.

Key type used to access the slot measurement.

Definition at line 159 of file slots.h.

Type returned by accessing the slot measurement.

Definition at line 157 of file slots.h.

Constructor & Destructor Documentation

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

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

Definition at line 163 of file slots.h.

163 : SlotDefinition(name) {}
SlotDefinition(std::string const &name)
Construct a SlotDefinition from the name of the slot (e.g. &quot;Centroid&quot; or &quot;PsfFlux&quot;) ...
Definition: slots.h:51

Member Function Documentation

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

Return the cached Key used to access the slot uncertainty.

Definition at line 172 of file slots.h.

172 { return _errKey; }
Key<Flag> lsst::afw::table::ShapeSlotDefinition::getFlagKey ( ) const
inline

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

Definition at line 175 of file slots.h.

175 { return _flagKey; }
MeasKey lsst::afw::table::ShapeSlotDefinition::getMeasKey ( ) const
inline

Return the cached Key used to access the slot measurement.

Definition at line 169 of file slots.h.

169 { return _measKey; }
bool lsst::afw::table::ShapeSlotDefinition::isValid ( ) const
inline

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

Definition at line 166 of file slots.h.

166 { return _measKey.isValid(); }
bool isValid() const
Return True if all the constituent Keys are valid.
Definition: aggregates.h:188
void lsst::afw::table::ShapeSlotDefinition::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.

Member Data Documentation

ErrKey lsst::afw::table::ShapeSlotDefinition::_errKey
private

Definition at line 191 of file slots.h.

Key<Flag> lsst::afw::table::ShapeSlotDefinition::_flagKey
private

Definition at line 192 of file slots.h.

MeasKey lsst::afw::table::ShapeSlotDefinition::_measKey
private

Definition at line 190 of file slots.h.


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