|  | Isis 3 Programmer Reference
    | 
Convert between undistorted focal plane and ra/dec coordinates. More...
#include <CameraSkyMap.h>


| Public Member Functions | |
| CameraSkyMap (Camera *parent) | |
| Constructor a map between focal plane x/y and right acension/declination. | |
| virtual | ~CameraSkyMap () | 
| Destructor. | |
| virtual bool | SetFocalPlane (const double ux, const double uy, const double uz) | 
| Compute ra/dec from focal plane coordinate. | |
| virtual bool | SetSky (const double ra, const double dec) | 
| Compute undistorted focal plane coordinate from ra/dec. | |
| double | FocalPlaneX () const | 
| double | FocalPlaneY () const | 
| Protected Attributes | |
| Camera * | p_camera | 
| The main camera to calculate distortions on. | |
| double | p_focalPlaneX | 
| Undistorted x value for the focal plane. | |
| double | p_focalPlaneY | 
| Undistorted y value for the focal plane. | |
Convert between undistorted focal plane and ra/dec coordinates.
This base class is used to convert between undistorted focal plane coordinates (x/y) in millimeters and sky (ra/dec). This class handles the case of framing cameras.
2005-02-08 Jeff Anderson Original version
2008-07-14 Steven Lambright Added NaifStatus calls
2017-08-30 Summer Stapleton - Updated documentation. References #4807.
Definition at line 31 of file CameraSkyMap.h.
| Isis::CameraSkyMap::CameraSkyMap | ( | Camera * | parent | ) | 
Constructor a map between focal plane x/y and right acension/declination.
| parent | parent camera which will use this map | 
Definition at line 17 of file CameraSkyMap.cpp.
References p_camera, and Isis::Camera::SetSkyMap().
| 
 | inlinevirtual | 
Destructor.
Definition at line 37 of file CameraSkyMap.h.
| 
 | inline | 
Definition at line 47 of file CameraSkyMap.h.
References p_focalPlaneX.
Referenced by Isis::Camera::SetRightAscensionDeclination().
| 
 | inline | 
Definition at line 54 of file CameraSkyMap.h.
References p_focalPlaneY.
Referenced by Isis::Camera::SetRightAscensionDeclination().
| 
 | virtual | 
Compute ra/dec from focal plane coordinate.
This method will compute the right ascension and declination given an undistorted focal plane coordinate. Note that the ra/dec values can be obtained from the parent camera class passed into the constructor.
| ux | distorted focal plane x in millimeters | 
| uy | distorted focal plane y in millimeters | 
| uz | distorted focal plane z in millimeters | 
Reimplemented in Isis::RadarSkyMap, and Isis::VimsSkyMap.
Definition at line 34 of file CameraSkyMap.cpp.
References Isis::NaifStatus::CheckErrors(), p_camera, and Isis::Sensor::SetLookDirection().
| 
 | virtual | 
Compute undistorted focal plane coordinate from ra/dec.
| ra | The right ascension angle | 
| dec | The declination | 
what happens if we are looking behind the focal plane?????
what happens if we are looking parallel to the focal plane??
can lookC[2] == zero imply parallel
can this all be solved by restricting the physical size of the focal plane?
Reimplemented in Isis::CSMSkyMap, Isis::LineScanCameraSkyMap, Isis::RadarSkyMap, and Isis::VimsSkyMap.
Definition at line 65 of file CameraSkyMap.cpp.
References Isis::Camera::FocalLength(), p_camera, p_focalPlaneX, and p_focalPlaneY.
Referenced by Isis::Camera::SetRightAscensionDeclination().
| 
 | protected | 
The main camera to calculate distortions on.
Definition at line 59 of file CameraSkyMap.h.
Referenced by CameraSkyMap(), Isis::CSMSkyMap::CSMSkyMap(), Isis::VimsSkyMap::Init(), SetFocalPlane(), Isis::VimsSkyMap::SetFocalPlane(), SetSky(), Isis::CSMSkyMap::SetSky(), Isis::LineScanCameraSkyMap::SetSky(), and Isis::VimsSkyMap::SetSky().
| 
 | protected | 
Undistorted x value for the focal plane.
Definition at line 60 of file CameraSkyMap.h.
Referenced by FocalPlaneX(), SetSky(), Isis::CSMSkyMap::SetSky(), Isis::LineScanCameraSkyMap::SetSky(), and Isis::VimsSkyMap::SetSky().
| 
 | protected | 
Undistorted y value for the focal plane.
Definition at line 61 of file CameraSkyMap.h.
Referenced by FocalPlaneY(), SetSky(), Isis::CSMSkyMap::SetSky(), Isis::LineScanCameraSkyMap::SetSky(), and Isis::VimsSkyMap::SetSky().