An endpoint for IcrsCoord.
More...
#include <Endpoint.h>
|
| static std::string | getClassPrefix () |
| | Get the class name prefix, e.g. "Point2" for "Point2Endpoint". More...
|
| |
An endpoint for IcrsCoord.
A IcrsCoordEndpoint always has 2 axes: RA, Dec
Definition at line 290 of file Endpoint.h.
◆ IcrsCoordEndpoint() [1/4]
◆ IcrsCoordEndpoint() [2/4]
◆ IcrsCoordEndpoint() [3/4]
| lsst::afw::geom::IcrsCoordEndpoint::IcrsCoordEndpoint |
( |
| ) |
|
|
inlineexplicit |
◆ IcrsCoordEndpoint() [4/4]
| lsst::afw::geom::IcrsCoordEndpoint::IcrsCoordEndpoint |
( |
int |
nAxes | ) |
|
|
explicit |
Construct a IcrsCoordEndpoint with nAxes specified; nAxes must equal 2.
This constructor is primarily used by Transform; other users are encouraged to use the default constructor.
- Parameters
-
| [in] | nAxes | The number of axes in a point; must equal 2 |
- Exceptions
-
| lsst.pex.exceptions.InvalidParameterError | if nAxes != 2 |
◆ ~IcrsCoordEndpoint()
| virtual lsst::afw::geom::IcrsCoordEndpoint::~IcrsCoordEndpoint |
( |
| ) |
|
|
inlinevirtual |
◆ arrayFromData()
| virtual Array lsst::afw::geom::IcrsCoordEndpoint::arrayFromData |
( |
ndarray::Array< double, 2, 2 > const & |
data | ) |
const |
|
overridevirtual |
Get an array of points from raw data.
- Parameters
-
| [in] | data | Raw data for an array of points, as a 2-D ndarray array [nPoints, nAxes] in C order, so the in-memory view is, for example, x0, y0, x1, y1, x2, y2, ... |
- Returns
- an array of points
- Exceptions
-
| lsst::pex::exceptions::InvalidParameterError | if the array has the wrong nAxes dimension |
Implements lsst::afw::geom::BaseEndpoint< coord::IcrsCoord, std::vector< coord::IcrsCoord > >.
◆ dataFromArray()
| virtual ndarray::Array<double, 2, 2> lsst::afw::geom::IcrsCoordEndpoint::dataFromArray |
( |
Array const & |
arr | ) |
const |
|
overridevirtual |
Get raw data from an array of points.
- Parameters
-
- Returns
- the data as a 2-D ndarray array [nAxes, nPoints] in C order, so the in-memory view is, for example, x0, x1, x2, ..., y0, y1, y2, ...
- Exceptions
-
| lsst::pex::exceptions::InvalidParameterError | if the array has the wrong nAxes dimension |
Implements lsst::afw::geom::BaseEndpoint< coord::IcrsCoord, std::vector< coord::IcrsCoord > >.
◆ dataFromPoint()
| virtual std::vector<double> lsst::afw::geom::IcrsCoordEndpoint::dataFromPoint |
( |
Point const & |
point | ) |
const |
|
overridevirtual |
◆ getClassPrefix()
| static std::string lsst::afw::geom::IcrsCoordEndpoint::getClassPrefix |
( |
| ) |
|
|
inlinestatic |
Get the class name prefix, e.g. "Point2" for "Point2Endpoint".
Definition at line 335 of file Endpoint.h.
◆ makeFrame()
| virtual std::shared_ptr<ast::Frame> lsst::afw::geom::IcrsCoordEndpoint::makeFrame |
( |
| ) |
const |
|
overridevirtual |
◆ normalizeFrame()
| virtual void lsst::afw::geom::IcrsCoordEndpoint::normalizeFrame |
( |
std::shared_ptr< ast::Frame > |
framePtr | ) |
const |
|
overridevirtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pointFromData()
| virtual Point lsst::afw::geom::IcrsCoordEndpoint::pointFromData |
( |
std::vector< double > const & |
data | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: