An endpoint for Point2D.
More...
#include <Endpoint.h>
An endpoint for Point2D.
Definition at line 233 of file Endpoint.h.
| lsst::afw::geom::Point2Endpoint::Point2Endpoint |
( |
Point2Endpoint const & |
| ) |
|
|
default |
| lsst::afw::geom::Point2Endpoint::Point2Endpoint |
( |
| ) |
|
|
inlineexplicit |
| lsst::afw::geom::Point2Endpoint::Point2Endpoint |
( |
int |
nAxes | ) |
|
|
explicit |
Construct a Point2Endpoint with nAxes specified; nAxes must equal template parameter N.
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 template parameter N |
- Exceptions
-
| lsst.pex.exceptions.InvalidParameterError | if nAxes != N |
| virtual lsst::afw::geom::Point2Endpoint::~Point2Endpoint |
( |
| ) |
|
|
inlinevirtual |
| virtual Array lsst::afw::geom::Point2Endpoint::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< Point2D, std::vector< Point2D > >.
| virtual ndarray::Array<double, 2, 2> lsst::afw::geom::Point2Endpoint::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< Point2D, std::vector< Point2D > >.
| virtual std::vector<double> lsst::afw::geom::Point2Endpoint::dataFromPoint |
( |
Point const & |
point | ) |
const |
|
overridevirtual |
| virtual void lsst::afw::geom::Point2Endpoint::normalizeFrame |
( |
std::shared_ptr< ast::Frame > |
framePtr | ) |
const |
|
overridevirtual |
Check that framePtr points to a Frame, not a subclass.
Subclasses are forbidden because Point2D is assumed to be cartesian and subclasses of Frame are not (e.g. SkyFrame, SpecFrame and TimeFrame). Note that SpecFrame and TimeFrame are 1-dimensional so they cannot be used in any case. A CmpFrame could be cartesian, but we play it safe and reject these (however, a cartesian CmpFrame ought to simplify to a Frame).
Reimplemented from lsst::afw::geom::BaseEndpoint< Point2D, std::vector< Point2D > >.
| virtual Point lsst::afw::geom::Point2Endpoint::pointFromData |
( |
std::vector< double > const & |
data | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: