Isis 3 Programmer Reference
RadarPulseMap.cpp
Go to the documentation of this file.
1 
24 #include "RadarPulseMap.h"
25 #include "CameraFocalPlaneMap.h"
26 #include "iTime.h"
27 
28 namespace Isis {
40  bool RadarPulseMap::SetDetector(const double sample,
41  const double line) {
42  if(!CameraDetectorMap::SetDetector(sample, line)) return false;
43  double etDiff = p_camera->time().Et() - p_etStart;
44  p_parentLine = etDiff / p_lineRate + 1.0;
45  return true;
46  }
47 
59  bool RadarPulseMap::SetParent(const double sample,
60  const double line) {
61  // Apply base class summing/first sample corrections
62  if(!CameraDetectorMap::SetParent(sample, line)) return false;
63 
64  // line is really a function of time so set detector line to zero
65  p_detectorLine = 0;
66  double etLine = p_etStart + p_lineRate * (line - 1.0);
67  p_camera->setTime(etLine);
68  return true;
69  }
70 }
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
double p_detectorLine
Detector coordinate line value.
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:112
double p_etStart
Starting time at the top of the 1st alpha line.
double p_lineRate
iTime between lines in parent cube
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
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_parentLine
The parent line calculated from the detector.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
Definition: iTime.h:139
virtual bool SetDetector(const double sample, const double line)
Compute alpha position from a detector coordinate.
virtual bool SetParent(const double sample, const double line)
Compute radar (sample/time)from a alpha image coordinate.
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions...
Definition: Spice.cpp:809