|
lsst.afw
13.0-49-g6f23dda
|
An endpoint for Point2D. More...
#include <Endpoint.h>
Public Member Functions | |
| Point2Endpoint (Point2Endpoint const &)=default | |
| Point2Endpoint (Point2Endpoint &&)=default | |
| Point2Endpoint & | operator= (Point2Endpoint const &)=delete |
| Point2Endpoint & | operator= (Point2Endpoint &&)=delete |
| Point2Endpoint () | |
| Construct a Point2Endpoint. More... | |
| Point2Endpoint (int nAxes) | |
| Construct a Point2Endpoint with nAxes specified; nAxes must equal template parameter N. More... | |
| virtual | ~Point2Endpoint () |
| virtual Array | arrayFromData (ndarray::Array< double, 2, 2 > const &data) const override |
| Get an array of points from raw data. More... | |
| virtual void | normalizeFrame (std::shared_ptr< ast::Frame > framePtr) const override |
| Check that framePtr points to a Frame, not a subclass. More... | |
Public Member Functions inherited from lsst::afw::geom::BaseVectorEndpoint< Point2D > | |
| BaseVectorEndpoint (BaseVectorEndpoint const &)=default | |
| BaseVectorEndpoint (BaseVectorEndpoint &&)=default | |
| BaseVectorEndpoint & | operator= (BaseVectorEndpoint const &)=delete |
| BaseVectorEndpoint & | operator= (BaseVectorEndpoint &&)=delete |
| virtual | ~BaseVectorEndpoint () |
| virtual int | getNPoints (Array const &arr) const override |
| Return the number of points in an array. More... | |
| virtual std::vector< double > | dataFromPoint (Point const &point) const override |
| Get raw data from a single point. More... | |
| virtual ndarray::Array< double, 2, 2 > | dataFromArray (Array const &arr) const override |
| Get raw data from an array of points. More... | |
| virtual Point | pointFromData (std::vector< double > const &data) const override |
| Get a single point from raw data. More... | |
Public Member Functions inherited from lsst::afw::geom::BaseEndpoint< Point2D, std::vector< Point2D > > | |
| BaseEndpoint (BaseEndpoint const &)=default | |
| BaseEndpoint (BaseEndpoint &&)=default | |
| BaseEndpoint & | operator= (BaseEndpoint const &)=delete |
| BaseEndpoint & | operator= (BaseEndpoint &&)=delete |
| virtual | ~BaseEndpoint () |
| int | getNAxes () const |
| virtual std::shared_ptr < ast::Frame > | makeFrame () const |
| Create a Frame that can be used with this end point in a Transform. More... | |
Additional Inherited Members | |
Public Types inherited from lsst::afw::geom::BaseVectorEndpoint< Point2D > | |
| using | Array = std::vector< Point2D > |
| using | Point = Point2D |
Public Types inherited from lsst::afw::geom::BaseEndpoint< Point2D, std::vector< Point2D > > | |
| using | Point = Point2D |
| using | Array = std::vector< Point2D > |
Protected Member Functions inherited from lsst::afw::geom::BaseVectorEndpoint< Point2D > | |
| BaseVectorEndpoint (int nAxes) | |
| Construct a BaseVectorEndpoint. More... | |
Protected Member Functions inherited from lsst::afw::geom::BaseEndpoint< Point2D, std::vector< Point2D > > | |
| BaseEndpoint (int nAxes) | |
| Construct a BaseEndpoint. More... | |
| void | _assertNAxes (int nAxes) const |
| int | _getNAxes (ndarray::Array< double, 2, 2 > const &data) const |
| int | _getNAxes (ndarray::Array< double, 1, 1 > const &data) const |
| int | _getNAxes (std::vector< double > const &data) const |
| int | _getNPoints (ndarray::Array< double, 2, 2 > const &data) const |
An endpoint for Point2D.
Definition at line 239 of file Endpoint.h.
|
default |
|
default |
|
inlineexplicit |
Construct a Point2Endpoint.
Definition at line 249 of file Endpoint.h.
|
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.
| [in] | nAxes | The number of axes in a point; must equal template parameter N |
| lsst.pex.exceptions.InvalidParameterError | if nAxes != N |
|
inlinevirtual |
Definition at line 263 of file Endpoint.h.
|
overridevirtual |
Get an array of points from raw data.
| [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, ... |
| lsst::pex::exceptions::InvalidParameterError | if the array has the wrong nAxes dimension |
Implements lsst::afw::geom::BaseEndpoint< Point2D, std::vector< Point2D > >.
|
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 > >.
|
delete |
|
delete |
1.8.5