Loading [MathJax]/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
CameraSkyMap.cpp
Go to the documentation of this file.
1 
24 #include "CameraSkyMap.h"
25 #include "NaifStatus.h"
26 
27 namespace Isis {
34  p_camera = parent;
35  p_camera->SetSkyMap(this);
36  }
37 
50  bool CameraSkyMap::SetFocalPlane(const double ux, const double uy,
51  double uz) {
53 
54  SpiceDouble lookC[3];
55  lookC[0] = ux;
56  lookC[1] = uy;
57  lookC[2] = uz;
58 
59  SpiceDouble unitLookC[3];
60  vhat_c(lookC, unitLookC);
61  p_camera->SetLookDirection(unitLookC);
62 
64 
65  return true;
66  }
67 
81  bool CameraSkyMap::SetSky(const double ra, const double dec) {
82  p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
83  double lookC[3];
84  p_camera->Sensor::LookDirection(lookC);
85  double scale = p_camera->FocalLength() / lookC[2];
86  p_focalPlaneX = lookC[0] * scale;
87  p_focalPlaneY = lookC[1] * scale;
88  return true;
89  }
90 }
void SetSkyMap(CameraSkyMap *map)
Sets the Sky Map.
Definition: Camera.cpp:2413
double p_focalPlaneY
Undistorted y value for the focal plane.
Definition: CameraSkyMap.h:77
virtual bool SetFocalPlane(const double ux, const double uy, const double uz)
Compute ra/dec from focal plane coordinate.
bool SetLookDirection(const double v[3])
Sets the look direction of the spacecraft.
Definition: Sensor.cpp:156
virtual bool SetSky(const double ra, const double dec)
Compute undistorted focal plane coordinate from ra/dec.
double FocalLength() const
Returns the focal length.
Definition: Camera.cpp:2744
double p_focalPlaneX
Undistorted x value for the focal plane.
Definition: CameraSkyMap.h:76
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Definition: NaifStatus.cpp:43
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Camera * p_camera
The main camera to calculate distortions on.
Definition: CameraSkyMap.h:72
CameraSkyMap(Camera *parent)
Constructor a map between focal plane x/y and right acension/declination.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/12/2023 23:16:28