LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
A FunctorKey used to get or set celestial coordiantes from a pair of Angle keys. More...
#include <aggregates.h>
Public Member Functions | |
CoordKey () | |
Default constructor; instance will not be usable unless subsequently assigned to. More... | |
CoordKey (Key< geom::Angle > const &ra, Key< geom::Angle > const &dec) | |
Construct from a pair of Keys. More... | |
CoordKey (SubSchema const &s) | |
Construct from a subschema, assuming ra and dec subfields. More... | |
virtual coord::IcrsCoord | get (BaseRecord const &record) const |
Get an IcrsCoord from the given record. More... | |
virtual void | set (BaseRecord &record, coord::IcrsCoord const &value) const |
Set an IcrsCoord in the given record. More... | |
virtual void | set (BaseRecord &record, coord::Coord const &value) const |
Set a Coord of another type in the given record; must be convertable to ICRS. More... | |
bool | isValid () const |
Key< geom::Angle > | getRa () const |
Return a constituent Key. More... | |
Key< geom::Angle > | getDec () const |
Return a constituent Key. More... | |
Public Member Functions inherited from lsst::afw::table::OutputFunctorKey< coord::IcrsCoord > | |
virtual | ~OutputFunctorKey () |
Public Member Functions inherited from lsst::afw::table::InputFunctorKey< coord::IcrsCoord > | |
virtual | ~InputFunctorKey () |
Static Public Member Functions | |
static CoordKey | addFields (afw::table::Schema &schema, std::string const &name, std::string const &doc) |
Private Attributes | |
Key< geom::Angle > | _ra |
Key< geom::Angle > | _dec |
A FunctorKey used to get or set celestial coordiantes from a pair of Angle keys.
Coords are always stored and returned in the ICRS system. Coords in other systems may be assigned, but this will result in a conversion to ICRS.
Definition at line 119 of file aggregates.h.
|
inline |
Default constructor; instance will not be usable unless subsequently assigned to.
Definition at line 136 of file aggregates.h.
|
inline |
|
inline |
Construct from a subschema, assuming ra and dec subfields.
If a schema has "a_ra" and "a_dec" fields, this constructor allows you to construct a CoordKey via:
Definition at line 155 of file aggregates.h.
|
static |
Add a pair of _ra, _dec fields to a Schema, and return a CoordKey that points to them.
[in,out] | schema | Schema to add fields to. |
[in] | name | Name prefix for all fields; "_ra", "_dec", will be appended to this to form the full field names. |
[in] | doc | String used as the documentation for the fields. |
|
virtual |
Get an IcrsCoord from the given record.
Implements lsst::afw::table::OutputFunctorKey< coord::IcrsCoord >.
|
inline |
|
inline |
|
inline |
Definition at line 166 of file aggregates.h.
|
virtual |
Set an IcrsCoord in the given record.
Implements lsst::afw::table::InputFunctorKey< coord::IcrsCoord >.
|
virtual |
Set a Coord of another type in the given record; must be convertable to ICRS.
|
private |
Definition at line 176 of file aggregates.h.
|
private |
Definition at line 175 of file aggregates.h.