|
LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
A helper class for creating and modifying cameras. More...
#include <Camera.h>
Public Types | |
| using | NameMap |
| using | NameMap |
| using | IdMap |
| using | IdMap |
| using | List |
| using | List |
Public Member Functions | |
| virtual | ~Builder () noexcept |
| Builder (std::string const &name) | |
| Construct a Builder for a completely new Camera with the given name. | |
| Builder (Camera const &camera) | |
| Construct a Builder with the state of an existing Camera. | |
| std::shared_ptr< Camera const > | finish () const |
| Construct a new Camera from the state of the Builder. | |
| std::string | getName () const |
| Return the name of the camera. | |
| void | setName (std::string const &name) |
| Set the name of the camera. | |
| std::string | getPupilFactoryName () const |
| Return the fully-qualified name of the Python class that provides this Camera's PupilFactory. | |
| void | setPupilFactoryName (std::string const &pupilFactoryName) |
| Set the fully-qualified name of the Python class that provides this Camera's PupilFactory. | |
| bool | getFocalPlaneParity () const noexcept |
| Return True if there is an x-axis flip from FOCAL_PLANE to FIELD_ANGLE, False otherwise. | |
| void | setFocalPlaneParity (bool flipX) |
| Set whether an x-axis flip should be included in the FOCAL_PLANE to FIELD_ANGLE transform. | |
| void | setTransformFromFocalPlaneTo (CameraSys const &toSys, std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > transform) |
| Set the transformation from FOCAL_PLANE to the given coordinate system. | |
| bool | discardTransformFromFocalPlaneTo (CameraSys const &toSys) |
| Remove any transformation from FOCAL_PLANE to the given coordinate system. | |
| std::shared_ptr< Detector::InCameraBuilder > | add (std::string const &name, int id) |
| Add a new Detector with the given name and ID. | |
| void | remove (std::string const &name) |
| Remove the detector with the given name or ID. | |
| void | remove (int id) |
| NameMap const & | getNameMap () const noexcept |
| Get a map keyed and ordered by name. | |
| NameMap const & | getNameMap () const noexcept |
| Get a map keyed and ordered by name. | |
| IdMap const & | getIdMap () const noexcept |
| Get a map keyed and ordered by ID. | |
| IdMap const & | getIdMap () const noexcept |
| Get a map keyed and ordered by ID. | |
| std::size_t | size () const noexcept |
| Get the number of detectors. | |
| std::size_t | size () const noexcept |
| Get the number of detectors. | |
| bool | empty () const noexcept |
| Determine if the collection contains any detectors. | |
| bool | empty () const noexcept |
| Determine if the collection contains any detectors. | |
| std::shared_ptr< Detector::InCameraBuilder > | operator[] (std::string const &name) const |
| Implement the [name] operator. | |
| std::shared_ptr< Detector::InCameraBuilder > | operator[] (int id) const |
| Implement the [id] operator. | |
| std::shared_ptr< Detector::InCameraBuilder > | operator[] (std::string const &name) const |
| Implement the [name] operator. | |
| std::shared_ptr< Detector::InCameraBuilder > | operator[] (int id) const |
| Implement the [id] operator. | |
| std::shared_ptr< Detector::InCameraBuilder > | get (std::string const &name, std::shared_ptr< Detector::InCameraBuilder > def=nullptr) const |
| Retrieve a detector by name, or fall back to a default. | |
| std::shared_ptr< Detector::InCameraBuilder > | get (int id, std::shared_ptr< Detector::InCameraBuilder > def=nullptr) const |
| Retrieve a detector by ID, or fall back to a default. | |
| std::shared_ptr< Detector::InCameraBuilder > | get (std::string const &name, std::shared_ptr< Detector::InCameraBuilder > def=nullptr) const |
| Retrieve a detector by name, or fall back to a default. | |
| std::shared_ptr< Detector::InCameraBuilder > | get (int id, std::shared_ptr< Detector::InCameraBuilder > def=nullptr) const |
| Retrieve a detector by ID, or fall back to a default. | |
Protected Member Functions | |
| void | add (std::shared_ptr< Detector::InCameraBuilder > detector) |
| Add a detector to the collection. | |
A helper class for creating and modifying cameras.
Camera and Camera::Builder have no direct inheritance relationship, but both inherit from different specializations of DetectorCollectionBase, so their container-of-detectors interfaces can generally be used the same way in both Python and templated C++.
|
inherited |
Definition at line 53 of file DetectorCollection.h.
|
inherited |
Definition at line 53 of file DetectorCollection.h.
|
inherited |
Definition at line 54 of file DetectorCollection.h.
|
inherited |
Definition at line 54 of file DetectorCollection.h.
|
inherited |
Definition at line 52 of file DetectorCollection.h.
|
inherited |
Definition at line 52 of file DetectorCollection.h.
|
virtualdefaultnoexcept |
|
explicit |
|
explicit |
Construct a Builder with the state of an existing Camera.
Definition at line 196 of file Camera.cc.
| std::shared_ptr< Detector::InCameraBuilder > lsst::afw::cameraGeom::Camera::Builder::add | ( | std::string const & | name, |
| int | id ) |
Add a new Detector with the given name and ID.
This is the only way to create a completely new detector (as opposed to a copy of an existing one), and it permanently sets that Detector's name and ID.
| pex::exceptions::RuntimeError | Thrown if the ID and/or name conflict with those of detectors already in the collection. |
Definition at line 331 of file Camera.cc.
|
protectedinherited |
Add a detector to the collection.
| [in] | detector | New detector to add to the collection. |
| pex::exceptions::RuntimeError | Thrown if the ID and/or name conflict with those of detectors already in the collection. |
| bool lsst::afw::cameraGeom::Camera::Builder::discardTransformFromFocalPlaneTo | ( | CameraSys const & | toSys | ) |
Remove any transformation from FOCAL_PLANE to the given coordinate system.
| toSys | Coordinate system this transform returns points in. |
Definition at line 322 of file Camera.cc.
|
inlinenoexceptinherited |
Determine if the collection contains any detectors.
Definition at line 72 of file DetectorCollection.h.
|
inlinenoexceptinherited |
Determine if the collection contains any detectors.
Definition at line 72 of file DetectorCollection.h.
| std::shared_ptr< Camera const > lsst::afw::cameraGeom::Camera::Builder::finish | ( | ) | const |
Construct a new Camera from the state of the Builder.
Definition at line 236 of file Camera.cc.
|
inherited |
Retrieve a detector by ID, or fall back to a default.
| [in] | id | detector id |
| [in] | def | default detector to return. This defaults to nullptr. |
|
inherited |
Retrieve a detector by ID, or fall back to a default.
| [in] | id | detector id |
| [in] | def | default detector to return. This defaults to nullptr. |
Definition at line 110 of file DetectorCollection.cc.
|
inherited |
Retrieve a detector by name, or fall back to a default.
| [in] | name | detector name |
| [in] | def | default detector to return. This defaults to nullptr. |
|
inherited |
Retrieve a detector by name, or fall back to a default.
| [in] | name | detector name |
| [in] | def | default detector to return. This defaults to nullptr. |
Definition at line 99 of file DetectorCollection.cc.
|
inlinenoexcept |
Return True if there is an x-axis flip from FOCAL_PLANE to FIELD_ANGLE, False otherwise.
Cameras with an even number of reflective surfaces (e.g. LATISS) or a particular choice for the PIXEL coordinates (e.g. DECam) require this x-axis flip between their FOCAL_PLANE and FIELD_ANGLE coordinate systems to match our conventions.
Definition at line 244 of file Camera.h.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inline |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inline |
Return the fully-qualified name of the Python class that provides this Camera's PupilFactory.
Definition at line 238 of file Camera.h.
|
inherited |
Implement the [id] operator.
| [in] | id | detector name |
|
inherited |
Implement the [id] operator.
| [in] | id | detector name |
Definition at line 88 of file DetectorCollection.cc.
|
inherited |
Implement the [name] operator.
| [in] | name | detector name |
|
inherited |
Implement the [name] operator.
| [in] | name | detector name |
Definition at line 80 of file DetectorCollection.cc.
|
inline |
|
inline |
Remove the detector with the given name or ID.
Wrapped as __delitem__ in Python.
| pex::exceptions::NotFoundError | if no such detector exists. |
Definition at line 304 of file Camera.h.
| void lsst::afw::cameraGeom::Camera::Builder::setFocalPlaneParity | ( | bool | flipX | ) |
Set whether an x-axis flip should be included in the FOCAL_PLANE to FIELD_ANGLE transform.
When a Camera is constructed from this Builder via the finish, method, the current parity of the FOCAL_PLANE to FIELD_ANGLE transform is checked. If the set focal plane parity is true but the transform has a positive determinant, or if the set focal plane parity is false but the transform has a negative determinant, the built camera's transform will compose an x-coordinate flip to the builder's transform. Note that there is no other checking that these coordinate systems have aligned axes or that any existing parity flip is along the X axis (as should be the case).
Definition at line 234 of file Camera.cc.
|
inline |
|
inline |
Set the fully-qualified name of the Python class that provides this Camera's PupilFactory.
Definition at line 241 of file Camera.h.
| void lsst::afw::cameraGeom::Camera::Builder::setTransformFromFocalPlaneTo | ( | CameraSys const & | toSys, |
| std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | transform ) |
Set the transformation from FOCAL_PLANE to the given coordinate system.
| toSys | Coordinate system this transform returns points in. |
| transform | Transform from FOCAL_PLANE to toSys. |
If a transform already exists from FOCAL_PLANE to toSys, it is overwritten.
Definition at line 306 of file Camera.cc.
|
inlinenoexceptinherited |
Get the number of detectors.
Renamed to __len__ in Python.
Definition at line 67 of file DetectorCollection.h.
|
inlinenoexceptinherited |
Get the number of detectors.
Renamed to __len__ in Python.
Definition at line 67 of file DetectorCollection.h.