LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
#include <Orientation.h>
Public Member Functions | |
Orientation (geom::Point2D const fpPosition=geom::Point2D(0, 0), geom::Point2D const refPoint=geom::Point2D(-0.5,-0.5), geom::Angle const yaw=geom::Angle(0), geom::Angle const pitch=geom::Angle(0), geom::Angle const roll=geom::Angle(0)) | |
geom::Point2D | getFpPosition () const |
Return focal plane position of detector reference point (mm) More... | |
geom::Point2D | getReferencePoint () const |
Return detector reference point (pixels) More... | |
geom::Angle | getYaw () const |
Return the yaw angle. More... | |
lsst::afw::geom::Angle | getPitch () const |
Return the pitch angle. More... | |
geom::Angle | getRoll () const |
Return the roll angle. More... | |
int | getNQuarter () const |
Return the number of quarter turns (rounded to the closest quarter) More... | |
geom::AffineXYTransform | makePixelFpTransform (geom::Extent2D const pixelSizeMm) const |
Generate an XYTransform from pixel to focal plane coordinates. More... | |
geom::AffineXYTransform | makeFpPixelTransform (geom::Extent2D const pixelSizeMm) const |
Generate an XYTransform from focal plane to pixel coordinates. More... | |
Private Attributes | |
geom::Point2D | _fpPosition |
focal plane position of reference point on detector More... | |
geom::Point2D | _refPoint |
reference point on detector More... | |
lsst::afw::geom::Angle | _yaw |
yaw More... | |
lsst::afw::geom::Angle | _pitch |
pitch More... | |
lsst::afw::geom::Angle | _roll |
roll More... | |
Eigen::Matrix< double, 2, 2, Eigen::DontAlign > | _rotMat |
Describe a detector's orientation in the focal plane
All rotations are about the reference point on the detector. Rotations are intrinsic, meaning each rotation is applied in the coordinates system produced by the previous rotation. Rotations are applied in this order: yaw (Z), pitch (Y'), and roll (X'').
Definition at line 53 of file Orientation.h.
|
explicit |
fpPosition | Focal plane position of detector reference point (mm) |
refPoint | Reference point on detector (pixels). Offset is measured to this point and all all rotations are about this point. The default value (-0.5, -0.5) is the lower left corner of the detector. |
yaw | yaw: rotation about Z (X to Y), 1st rotation |
pitch | pitch: rotation about Y' (Z'=Z to X'), 2nd rotation |
roll | roll: rotation about X'' (Y''=Y' to Z''), 3rd rotation |
Definition at line 29 of file Orientation.cc.
|
inline |
Return focal plane position of detector reference point (mm)
Definition at line 68 of file Orientation.h.
int lsst::afw::cameraGeom::Orientation::getNQuarter | ( | ) | const |
Return the number of quarter turns (rounded to the closest quarter)
Definition at line 61 of file Orientation.cc.
|
inline |
Return the pitch angle.
Definition at line 77 of file Orientation.h.
|
inline |
Return detector reference point (pixels)
Definition at line 71 of file Orientation.h.
|
inline |
Return the roll angle.
Definition at line 80 of file Orientation.h.
|
inline |
Return the yaw angle.
Definition at line 74 of file Orientation.h.
geom::AffineXYTransform lsst::afw::cameraGeom::Orientation::makeFpPixelTransform | ( | geom::Extent2D const | pixelSizeMm | ) | const |
Generate an XYTransform from focal plane to pixel coordinates.
pixelSizeMm | Size of the pixel in mm in X and Y |
Definition at line 84 of file Orientation.cc.
geom::AffineXYTransform lsst::afw::cameraGeom::Orientation::makePixelFpTransform | ( | geom::Extent2D const | pixelSizeMm | ) | const |
Generate an XYTransform from pixel to focal plane coordinates.
pixelSizeMm | Size of the pixel in mm in X and Y |
Definition at line 69 of file Orientation.cc.
|
private |
focal plane position of reference point on detector
Definition at line 104 of file Orientation.h.
|
private |
pitch
Definition at line 108 of file Orientation.h.
|
private |
reference point on detector
Definition at line 105 of file Orientation.h.
|
private |
roll
Definition at line 109 of file Orientation.h.
|
private |
Definition at line 113 of file Orientation.h.
|
private |
yaw
Definition at line 107 of file Orientation.h.