USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::CameraSkyMap Class Reference

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

#include <CameraSkyMap.h>

Inherited by Isis::LineScanCameraSkyMap, Isis::RadarSkyMap, and Isis::VimsSkyMap.

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
 

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
Author
2005-02-08 Jeff Anderson

Constructor & Destructor Documentation

Isis::CameraSkyMap::CameraSkyMap ( Camera parent)

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

Parameters
parentparent camera which will use this map

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

virtual Isis::CameraSkyMap::~CameraSkyMap ( )
inlinevirtual

Destructor.

Member Function Documentation

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

Return undistorted focal plane x.

References p_focalPlaneX.

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

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

Return undistorted focal plane y.

References p_focalPlaneY.

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
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.

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
raThe right ascension angle
decThe declination
Returns
conversion was successful

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

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

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

Member Data Documentation

double Isis::CameraSkyMap::p_focalPlaneX
protected
double Isis::CameraSkyMap::p_focalPlaneY
protected

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