|
Isis 3.0 Programmer Reference
| Home |
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. More... | |
| virtual | ~CameraSkyMap () |
| Destructor. More... | |
| virtual bool | SetFocalPlane (const double ux, const double uy, const double uz) |
| Compute ra/dec from focal plane coordinate. More... | |
| virtual bool | SetSky (const double ra, const double dec) |
| Compute undistorted focal plane coordinate from ra/dec. More... | |
| double | FocalPlaneX () const |
| Return undistorted focal plane x. More... | |
| double | FocalPlaneY () const |
| Return undistorted focal plane y. More... | |
Protected Attributes | |
| Camera * | p_camera |
| double | p_focalPlaneX |
| double | p_focalPlaneY |
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
Definition at line 47 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 33 of file CameraSkyMap.cpp.
References Isis::Camera::SetSkyMap().
|
inlinevirtual |
Destructor.
Definition at line 52 of file CameraSkyMap.h.
|
inline |
Return undistorted focal plane x.
Definition at line 60 of file CameraSkyMap.h.
Referenced by Isis::Camera::SetRightAscensionDeclination().
|
inline |
Return undistorted focal plane y.
Definition at line 65 of file CameraSkyMap.h.
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::VimsSkyMap, and Isis::RadarSkyMap.
Definition at line 50 of file CameraSkyMap.cpp.
References Isis::NaifStatus::CheckErrors(), 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::VimsSkyMap, Isis::LineScanCameraSkyMap, and Isis::RadarSkyMap.
Definition at line 81 of file CameraSkyMap.cpp.
References Isis::Camera::FocalLength().
Referenced by Isis::Camera::SetRightAscensionDeclination().