23 #ifndef AFW_TABLE_aggregates_h_INCLUDED
24 #define AFW_TABLE_aggregates_h_INCLUDED
29 namespace lsst {
namespace afw {
33 template <
typename T,
int N>
class Point;
62 std::string
const & name,
63 std::string
const & doc,
64 std::string
const & unit
139 std::string
const & name,
140 std::string
const & doc,
141 std::string
const & unit
222 std::string
const & name,
223 std::string
const & doc,
224 std::string
const & unit
275 template <
typename T,
int N>
322 template <
typename U>
369 inline CovarianceMatrixKey<float,2>
374 inline CovarianceMatrixKey<float,3>
381 #endif // !AFW_TABLE_aggregates_h_INCLUDED
bool isValid() const
Return true if the key was initialized to valid offset.
Key< double > getIxy() const
Return a constituent Key.
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
PointKey< double > getCenter() const
Return constituent FunctorKeys.
A coordinate class intended to represent absolute positions (2-d specialization). ...
EllipseKey(QuadrupoleKey const &qKey, PointKey< double > const &pKey)
Construct from individual Keys.
A proxy type for name lookups in a Schema.
QuadrupoleKey(SubSchema const &s)
Construct from a subschema, assuming xx, yy, and xy subfields.
Key< T > getY() const
Return the underlying y Key.
static PointKey addFields(Schema &schema, std::string const &name, std::string const &doc, std::string const &unit)
std::vector< std::string > NameArray
QuadrupoleKey getCore() const
Return constituent FunctorKeys.
EllipseKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
Key< double > getIyy() const
Return a constituent Key.
QuadrupoleKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
virtual void set(BaseRecord &record, geom::Point< T, 2 > const &value) const
Set a Point in the given record.
static QuadrupoleKey addFields(Schema &schema, std::string const &name, std::string const &doc, std::string const &unit)
EllipseKey(SubSchema const &s)
Construct from a subschema, assuming (xx, yy, xy, x, y) subfields.
bool isValid() const
Return True if all the constituent Keys are valid.
Key< double > getIxx() const
Return a constituent Key.
PointKey< int > Point2IKey
bool operator!=(PointKey< T > const &other) const
Compare the FunctorKey for equality with another, using the underlying x and y Keys.
PointKey< double > Point2DKey
PointKey(Key< Point< T > > const &other)
Key< T > getX() const
Return the underlying x Key.
bool isValid() const
Return True if both the x and y Keys are valid.
afw::table::Key< double > sigma
A FunctorKey used to get or set a geom::Point from an (x,y) pair of int or double Keys...
std::vector< Key< T > > SigmaKeyArray
bool operator==(PointKey< T > const &other) const
Compare the FunctorKey for equality with another, using the underlying x and y Keys.
bool isValid() const
Return True if all the constituent Keys are valid.
An ellipse defined by an arbitrary BaseCore and a center point.
bool operator!=(QuadrupoleKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
std::vector< Key< T > > CovarianceKeyArray
bool operator==(CovarianceMatrixKey const &other) const
Compare the FunctorKey for equality with another, using its constituent Keys.
virtual void set(BaseRecord &record, geom::ellipses::Quadrupole const &value) const
Set a Quadrupole in the given record.
bool operator!=(EllipseKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
Base class for all records.
bool operator!=(CovarianceMatrixKey const &other) const
Compare the FunctorKey for equality with another, using its constituent Keys.
CovarianceMatrixKey< float, Eigen::Dynamic > makeCovarianceMatrixKey(Key< Covariance< float > > const &other)
A class used as a handle to a particular field in a table.
PointKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
bool operator==(EllipseKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
QuadrupoleKey(Key< Moments< double > > const &other)
virtual void set(BaseRecord &record, Eigen::Matrix< T, N, N > const &value) const
Set a covariance matrix in the given record (uses only the lower triangle of the given matrix) ...
PointKey(SubSchema const &s)
Construct from a subschema, assuming x and y subfields.
PointKey(Key< T > const &x, Key< T > const &y)
Construct from a pair of Keys.
virtual void set(BaseRecord &record, geom::ellipses::Ellipse const &value) const
Set an Ellipse in the given record.
bool isValid() const
Return True if all the constituent sigma Keys are valid.
A FunctorKey used to get or set a geom::ellipses::Ellipse from an (xx,yy,xy,x,y) tuple of Keys...
QuadrupoleKey(Key< double > const &ixx, Key< double > const &iyy, Key< double > const &ixy)
Construct from individual Keys.
Tag types used to declare specialized field types.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from an (xx,yy,xy) tuple of Keys...
static EllipseKey addFields(Schema &schema, std::string const &name, std::string const &doc, std::string const &unit)
bool operator==(QuadrupoleKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
afw::table::SourceRecord * record
CovarianceMatrixKey()
Construct an invalid instance; must assign before subsequent use.