An endpoint for lsst::geom::Point2D.
More...
#include <Endpoint.h>
An endpoint for lsst::geom::Point2D.
Definition at line 261 of file Endpoint.h.
◆ Array
◆ Point
◆ Point2Endpoint() [1/4]
lsst::afw::geom::Point2Endpoint::Point2Endpoint |
( |
Point2Endpoint const & |
| ) |
|
|
default |
◆ Point2Endpoint() [2/4]
◆ Point2Endpoint() [3/4]
lsst::afw::geom::Point2Endpoint::Point2Endpoint |
( |
| ) |
|
|
inlineexplicit |
◆ Point2Endpoint() [4/4]
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
-
Definition at line 107 of file Endpoint.cc.
◆ ~Point2Endpoint()
lsst::afw::geom::Point2Endpoint::~Point2Endpoint |
( |
| ) |
|
|
overridedefault |
◆ _assertNAxes()
template<typename Point , typename Array >
◆ _getNAxes() [1/3]
template<typename PointT , typename ArrayT >
◆ _getNAxes() [2/3]
template<typename PointT , typename ArrayT >
◆ _getNAxes() [3/3]
template<typename PointT , typename ArrayT >
◆ _getNPoints()
template<typename PointT , typename ArrayT >
◆ arrayFromData()
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
-
Implements lsst::afw::geom::BaseEndpoint< PointT, ArrayT >.
Definition at line 148 of file Endpoint.cc.
◆ dataFromArray()
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
-
Implements lsst::afw::geom::BaseEndpoint< PointT, ArrayT >.
Definition at line 124 of file Endpoint.cc.
◆ dataFromPoint()
std::vector< double > lsst::afw::geom::Point2Endpoint::dataFromPoint |
( |
Point const & |
point | ) |
const |
|
overridevirtual |
◆ getClassPrefix()
static std::string lsst::afw::geom::Point2Endpoint::getClassPrefix |
( |
| ) |
|
|
inlinestatic |
Get the class name prefix, e.g. "Point2" for "Point2Endpoint".
Definition at line 307 of file Endpoint.h.
◆ getNAxes()
template<typename PointT , typename ArrayT >
◆ getNPoints() [1/2]
template<typename PointT , typename ArrayT >
◆ getNPoints() [2/2]
Return the number of points in an array.
Definition at line 207 of file Endpoint.cc.
◆ makeFrame()
template<typename Point , typename Array >
◆ normalizeFrame()
Check that framePtr points to a Frame, not a subclass.
Subclasses are forbidden because lsst::geom::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< PointT, ArrayT >.
Definition at line 160 of file Endpoint.cc.
◆ operator!=()
template<typename PointT , typename ArrayT >
Determine whether two endpoints do not represent the same conversion.
- Returns
- the inverse of operator==. See that operator's documentation for important caveats.
Definition at line 109 of file Endpoint.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
template<typename Point , typename Array >
Determine whether two endpoints represent the same conversion.
- Parameters
-
other | the endpoint to compare |
- Returns
true
iff this object and other
are of exactly the same class and all visible properties are identical. This implementation requires that the objects have the same number of axes.
- Warning
- Two endpoints with different implementation classes will never compare equal, even if one class is conceptually equivalent to the other (e.g., a decorator). This may cause unexpected behavior when mixing related concrete endpoint classes.
Definition at line 64 of file Endpoint.cc.
◆ pointFromData()
The documentation for this class was generated from the following files: