USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::LineScanCameraSkyMap Class Reference

Convert between undistorted focal plane and ra/dec coordinates. More...

#include <LineScanCameraSkyMap.h>

Inheritance diagram for Isis::LineScanCameraSkyMap:
Inheritance graph
Collaboration diagram for Isis::LineScanCameraSkyMap:
Collaboration graph

Public Member Functions

 LineScanCameraSkyMap (Camera *parent)
 Constructor.
virtual ~LineScanCameraSkyMap ()
 Destructor.
virtual bool SetSky (const double ra, const double dec)
 Compute undistorted focal plane coordinate from ra/dec.
virtual bool SetFocalPlane (const double ux, const double uy, const double uz)
 Compute ra/dec from focal plane coordinate.
double FocalPlaneX () const
 Return undistorted focal plane x.
double FocalPlaneY () const
 Return undistorted focal plane y.

Protected Attributes

Camerap_camera
double p_focalPlaneX
double p_focalPlaneY

Detailed Description

Convert between undistorted focal plane and ra/dec coordinates.

This class is used to convert between undistorted focal plane coordinates (x/y) in millimeters and sky (ra/dec). This class handles the case of line scan cameras.

See Also
Camera
Author
2005-02-08 Jeff Anderson
History:
2005-10-13 Jeff Anderson - Fixed a bug. Removed failure comparsion test on Sensor::SetRightAscensionDeclination calls. A failure indicated we didn't hit the target but we don't care here since the target is the sky.
History:
2012-07-06 Debbie A. Cook, Updated Spice members to be more compliant with Isis coding standards. References #972.

Definition at line 52 of file LineScanCameraSkyMap.h.

Constructor & Destructor Documentation

Isis::LineScanCameraSkyMap::LineScanCameraSkyMap ( Camera parent)
inline

Constructor.

Definition at line 55 of file LineScanCameraSkyMap.h.

virtual Isis::LineScanCameraSkyMap::~LineScanCameraSkyMap ( )
inlinevirtual

Destructor.

Definition at line 58 of file LineScanCameraSkyMap.h.

Member Function Documentation

double Isis::CameraSkyMap::FocalPlaneX ( ) const
inlineinherited

Return undistorted focal plane x.

Definition at line 60 of file CameraSkyMap.h.

Referenced by Isis::Camera::SetRightAscensionDeclination().

double Isis::CameraSkyMap::FocalPlaneY ( ) const
inlineinherited

Return undistorted focal plane y.

Definition at line 65 of file CameraSkyMap.h.

Referenced by Isis::Camera::SetRightAscensionDeclination().

bool Isis::CameraSkyMap::SetFocalPlane ( const double  ux,
const double  uy,
const double  uz 
)
virtualinherited

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.

Parameters
uxdistorted focal plane x in millimeters
uydistorted focal plane y in millimeters
uzdistorted focal plane z in millimeters
Returns
conversion was successful

Reimplemented in Isis::VimsSkyMap, and Isis::RadarSkyMap.

Definition at line 50 of file CameraSkyMap.cpp.

References Isis::NaifStatus::CheckErrors(), and Isis::Sensor::SetLookDirection().

bool Isis::LineScanCameraSkyMap::SetSky ( const double  ra,
const double  dec 
)
virtual

Compute undistorted focal plane coordinate from ra/dec.

Parameters
raright ascension in degrees
decdeclination in degrees
Returns
conversion was successful
Todo:

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 from Isis::CameraSkyMap.

Definition at line 43 of file LineScanCameraSkyMap.cpp.

References Isis::CameraFocalPlaneMap::DetectorLine(), Isis::CameraFocalPlaneMap::DetectorLineOffset(), Isis::Camera::DetectorMap(), Isis::Camera::DistortionMap(), Isis::Camera::FocalLength(), Isis::Camera::FocalPlaneMap(), Isis::CameraDistortionMap::FocalPlaneX(), Isis::CameraDistortionMap::FocalPlaneY(), Isis::LineScanCameraDetectorMap::LineRate(), Isis::CameraFocalPlaneMap::SetFocalPlane(), and Isis::CameraDistortionMap::SetUndistortedFocalPlane().


The documentation for this class was generated from the following files: