USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::CameraSkyMap Class Reference

#include <CameraSkyMap.h>

Inheritance diagram for Isis::CameraSkyMap:

Inheritance graph
[legend]
Collaboration diagram for Isis::CameraSkyMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

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.

See also:
Camera

For internal use only.

History:
2005-02-08 Jeff Anderson Original version
History:
2008-07-14 Steven Lambright Added NaifStatus calls

Definition at line 45 of file 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
 Return undistorted focal plane x.
double FocalPlaneY () const
 Return undistorted focal plane y.

Protected Attributes

Camerap_camera
double p_focalPlaneX
double p_focalPlaneY


Constructor & Destructor Documentation

Isis::CameraSkyMap::CameraSkyMap ( Camera parent  ) 

Constructor a map between focal plane x/y and right acension/declination.

Parameters:
parent parent camera which will use this map

Definition at line 33 of file CameraSkyMap.cpp.

References p_camera, and Isis::Camera::SetSkyMap().

virtual Isis::CameraSkyMap::~CameraSkyMap (  )  [inline, virtual]

Destructor.

Definition at line 50 of file CameraSkyMap.h.


Member Function Documentation

double Isis::CameraSkyMap::FocalPlaneX (  )  const [inline]

Return undistorted focal plane x.

Definition at line 58 of file CameraSkyMap.h.

References p_focalPlaneX.

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

double Isis::CameraSkyMap::FocalPlaneY (  )  const [inline]

Return undistorted focal plane y.

Definition at line 61 of file CameraSkyMap.h.

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

bool Isis::CameraSkyMap::SetFocalPlane ( const double  ux,
const double  uy,
const double  uz 
) [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.

Parameters:
ux distorted focal plane x in millimeters
uy distorted focal plane y in millimeters
uz distorted focal plane z in millimeters
Returns:
conversion was successful

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

Definition at line 50 of file CameraSkyMap.cpp.

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

bool Isis::CameraSkyMap::SetSky ( const double  ra,
const double  dec 
) [virtual]

Compute undistorted focal plane coordinate from ra/dec.

Parameters:
ra The right ascension angle
dec The declination
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 in Isis::LineScanCameraSkyMap, Isis::RadarSkyMap, and Isis::Cassini::VimsSkyMap.

Definition at line 81 of file CameraSkyMap.cpp.

References Isis::Camera::FocalLength(), p_camera, p_focalPlaneX, and p_focalPlaneY.

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


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