LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
Helper class used to incrementally construct TransformMap instances. More...
#include <TransformMap.h>
Public Member Functions | |
Builder (CameraSys const &reference) | |
Construct an empty builder with no transforms and only the given coordinate system. More... | |
~Builder () noexcept | |
Builder & | connect (CameraSys const &fromSys, CameraSys const &toSys, std::shared_ptr< geom::TransformPoint2ToPoint2 const > transform) |
Add a new coordinate system to the builder. More... | |
Builder & | connect (CameraSys const &fromSys, Transforms const &transforms) |
Add multiple connections relative to a single reference CameraSys. More... | |
Builder & | connect (Transforms const &transforms) |
Add multiple connections relative to a single reference CameraSys. More... | |
std::shared_ptr< TransformMap const > | build () const |
Construct a TransformMap from the connections in the builder. More... | |
Builder (Builder const &) | |
Builder (Builder &&) | |
Builder & | operator= (Builder const &) |
Builder & | operator= (Builder &&) |
Helper class used to incrementally construct TransformMap instances.
Definition at line 239 of file TransformMap.h.
|
explicit |
Construct an empty builder with no transforms and only the given coordinate system.
Definition at line 252 of file TransformMap.cc.
|
default |
Builders are copyable, movable, and assignable.
|
default |
Builders are copyable, movable, and assignable.
|
defaultnoexcept |
std::shared_ptr< TransformMap const > lsst::afw::cameraGeom::TransformMap::Builder::build | ( | ) | const |
Construct a TransformMap from the connections in the builder.
pex::exceptions::InvalidParameterError | Thrown if there is no direct or indirect connection between FOCAL_PLANE and one or more coordinate systems, or there are duplicate connections between any two systems. |
Definition at line 330 of file TransformMap.cc.
TransformMap::Builder & lsst::afw::cameraGeom::TransformMap::Builder::connect | ( | CameraSys const & | fromSys, |
CameraSys const & | toSys, | ||
std::shared_ptr< geom::TransformPoint2ToPoint2 const > | transform | ||
) |
Add a new coordinate system to the builder.
fromSys | Coordinate system for the arguments to transform->applyForward . |
toSys | Coordinate system for the return values of transform->applyForward . |
transform | Mapping from fromSys to toSys . |
*this
to enable chained calls.pex::exceptions::InvalidParameterError | Thrown if the transform does not have forward or inverse mapping, or if fromSys and toSys are the same. |
Definition at line 262 of file TransformMap.cc.
TransformMap::Builder & lsst::afw::cameraGeom::TransformMap::Builder::connect | ( | CameraSys const & | fromSys, |
Transforms const & | transforms | ||
) |
Add multiple connections relative to a single reference CameraSys.
fromSys | Coordinate system of the arguments to Transform::applyForward for each transform in the given map. |
transforms | A map whose keys are camera coordinate systems, and whose values point to Transforms that convert from fromSys coordinate system to the corresponding key. All Transforms must be invertible. |
*this
to enable chained calls.lsst::pex::exceptions::InvalidParameterError | Thrown if transforms contains fromSys camera system as a key, or if any Transform is not invertible. |
Definition at line 289 of file TransformMap.cc.
|
inline |
Add multiple connections relative to a single reference CameraSys.
transforms | A map whose keys are camera coordinate systems, and whose values point to Transforms that convert from the reference coordinate system (i.e. the one the Builder was originally constructed with) to the corresponding key. All Transforms must be invertible. |
*this
to enable chained calls.lsst::pex::exceptions::InvalidParameterError | Thrown if transforms contains the reference camera system as a key, or if any Transform is not invertible. |
Definition at line 317 of file TransformMap.h.
|
default |
Builders are copyable, movable, and assignable.
|
default |
Builders are copyable, movable, and assignable.