Isis 3 Programmer Reference
RadarPulseMap.cpp
1
6/* SPDX-License-Identifier: CC0-1.0 */
7
8#include "RadarPulseMap.h"
9#include "CameraFocalPlaneMap.h"
10#include "iTime.h"
11
12namespace Isis {
24 bool RadarPulseMap::SetDetector(const double sample,
25 const double line) {
26 if(!CameraDetectorMap::SetDetector(sample, line)) return false;
27 double etDiff = p_camera->time().Et() - p_etStart;
28 p_parentLine = etDiff / p_lineRate + 1.0;
29 return true;
30 }
31
43 bool RadarPulseMap::SetParent(const double sample,
44 const double line) {
45 // Apply base class summing/first sample corrections
46 if(!CameraDetectorMap::SetParent(sample, line)) return false;
47
48 // line is really a function of time so set detector line to zero
50 double etLine = p_etStart + p_lineRate * (line - 1.0);
51 p_camera->setTime(etLine);
52 return true;
53 }
54}
double p_parentLine
The parent line calculated from the detector.
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
double p_detectorLine
Detector coordinate line value.
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
Camera * p_camera
Pointer to the camera.
double p_lineRate
iTime between lines in parent cube
double p_etStart
Starting time at the top of the 1st alpha line.
virtual bool SetParent(const double sample, const double line)
Compute radar (sample/time)from a alpha image coordinate.
virtual bool SetDetector(const double sample, const double line)
Compute alpha position from a detector coordinate.
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
Definition Sensor.cpp:99
virtual iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
Definition Spice.cpp:891
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16