|
lsst.afw
15.0-24-g02ed2a30c+2
|
A FunctorKey used to get or set celestial coordinates from a pair of Angle keys. More...
#include <aggregates.h>
Public Types | |
| using | Value = SpherePoint |
| The data type for get and set. More... | |
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... | |
| CoordKey (CoordKey const &)=default | |
| CoordKey (CoordKey &&)=default | |
| CoordKey & | operator= (CoordKey const &)=default |
| CoordKey & | operator= (CoordKey &&)=default |
| virtual | ~CoordKey ()=default |
| virtual SpherePoint | get (BaseRecord const &record) const |
| Get an SpherePoint from the given record. More... | |
| virtual void | set (BaseRecord &record, SpherePoint const &value) const |
| Set an SpherePoint in the given record. More... | |
| bool | isValid () const |
| bool | operator== (CoordKey const &other) const |
Compare CoordKeys for equality using the constituent ra and dec Keys. More... | |
| bool | operator!= (CoordKey const &other) const |
Compare CoordKeys for equality using the constituent ra and dec Keys. More... | |
| Key< geom::Angle > | getRa () const |
| Return a constituent Key. More... | |
| Key< geom::Angle > | getDec () const |
| Return a constituent Key. More... | |
Static Public Member Functions | |
| static CoordKey | addFields (afw::table::Schema &schema, std::string const &name, std::string const &doc) |
| Add a pair of _ra, _dec fields to a Schema, and return a CoordKey that points to them. More... | |
A FunctorKey used to get or set celestial coordinates 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 205 of file aggregates.h.
|
inherited |
The data type for get and set.
Definition at line 77 of file FunctorKey.h.
|
inline |
Default constructor; instance will not be usable unless subsequently assigned to.
Definition at line 218 of file aggregates.h.
|
inline |
Construct from a pair of Keys.
Definition at line 221 of file aggregates.h.
|
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:
CoordKey k(schema["a"]);
Definition at line 231 of file aggregates.h.
|
default |
|
default |
|
virtualdefault |
|
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. |
Definition at line 83 of file aggregates.cc.
|
virtual |
Get an SpherePoint from the given record.
Implements lsst::afw::table::OutputFunctorKey< SpherePoint >.
Definition at line 89 of file aggregates.cc.
|
inline |
Return a constituent Key.
Definition at line 256 of file aggregates.h.
|
inline |
Return a constituent Key.
Definition at line 255 of file aggregates.h.
|
inline |
Definition at line 251 of file aggregates.h.
|
inline |
Compare CoordKeys for equality using the constituent ra and dec Keys.
Definition at line 248 of file aggregates.h.
|
inline |
Compare CoordKeys for equality using the constituent ra and dec Keys.
Definition at line 247 of file aggregates.h.
|
virtual |
Set an SpherePoint in the given record.
Implements lsst::afw::table::InputFunctorKey< SpherePoint >.
Definition at line 93 of file aggregates.cc.
1.8.13