Helper class used to incrementally construct TransformMap instances.
More...
#include <TransformMap.h>
Helper class used to incrementally construct TransformMap instances.
Definition at line 239 of file TransformMap.h.
◆ Builder() [1/3]
| lsst::afw::cameraGeom::TransformMap::Builder::Builder |
( |
CameraSys const & |
reference | ) |
|
|
explicit |
Construct an empty builder with no transforms and only the given coordinate system.
Definition at line 252 of file TransformMap.cc.
◆ Builder() [2/3]
| lsst::afw::cameraGeom::TransformMap::Builder::Builder |
( |
Builder const & |
| ) |
|
|
default |
Builders are copyable, movable, and assignable.
◆ Builder() [3/3]
| lsst::afw::cameraGeom::TransformMap::Builder::Builder |
( |
Builder && |
| ) |
|
|
default |
Builders are copyable, movable, and assignable.
◆ ~Builder()
| lsst::afw::cameraGeom::TransformMap::Builder::~Builder |
( |
| ) |
|
|
defaultnoexcept |
◆ build()
Construct a TransformMap from the connections in the builder.
- Exceptions
-
| 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. |
- Exception Safety
- strong
Definition at line 330 of file TransformMap.cc.
◆ connect() [1/3]
Add a new coordinate system to the builder.
- Parameters
-
| 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. |
- Returns
*this to enable chained calls.
- Exceptions
-
- Exception Safety
- strong
Definition at line 262 of file TransformMap.cc.
◆ connect() [2/3]
Add multiple connections relative to a single reference CameraSys.
- Parameters
-
| 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. |
- Returns
*this to enable chained calls.
- Exceptions
-
- Exception Safety
- strong
Definition at line 289 of file TransformMap.cc.
◆ connect() [3/3]
| Builder& lsst::afw::cameraGeom::TransformMap::Builder::connect |
( |
Transforms const & |
transforms | ) |
|
|
inline |
Add multiple connections relative to a single reference CameraSys.
- Parameters
-
| 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. |
- Returns
*this to enable chained calls.
- Exceptions
-
- Exception Safety
- strong
Definition at line 317 of file TransformMap.h.
◆ operator=() [1/2]
Builders are copyable, movable, and assignable.
◆ operator=() [2/2]
Builders are copyable, movable, and assignable.
The documentation for this class was generated from the following files: