35 p_detectorSampleSumming = 1.0;
36 p_detectorLineSumming = 1.0;
100 const double deltaT) {
101 p_parentSample = sample;
114 p_ss = (p_detectorSampleSumming / 2.0) + 0.5 +
117 p_sl = (p_detectorLineSumming / 2.0) + 0.5 +
136 return p_parentSample;
160 return p_detectorSampleSumming;
166 return p_detectorLineSumming;
192 const int band)
const {
193 QString msg =
"Exposure duration is only available for LineScan, VariableLineScan, "
194 "and PushFrame Cameras.";
virtual double SampleScaleFactor() const
Return scaling factor for computing sample resolution.
double ParentSample() const
Return parent sample.
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
CameraDetectorMap(Camera *parent=0)
Default constructor assumes no summing and starting detector offsets.
void SetDetectorMap(CameraDetectorMap *map)
Sets the Detector Map.
virtual double LineScaleFactor() const
Return scaling factor for computing line resolution.
double p_startingDetectorLine
Detector start coordinate line value.
virtual ~CameraDetectorMap()
Destructor.
virtual double LineRate() const
Return the line collection rate (0 for framing cameras)
double DetectorLine() const
Return detector line.
virtual double exposureDuration(const double sample, const double line, const int band) const
This virtual method is for returning the exposure duration of a given pixel.
double ParentLine() const
Return parent line.
This error is for when a programmer made an API call that was illegal.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
void Compute()
Compute new offsets whenenver summing or starting sample/lines change.
double p_startingDetectorSample
Detector start coordinate sample value.
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions...
double AdjustedStartingSample() const
Return the starting detector sample adjusted for summation.
#define _FILEINFO_
Macro for the filename and line number.
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...
double DetectorSample() const
Return detector sample.
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
bool isTimeSet()
Returns true if time has been initialized.
Camera * p_camera
Pointer to the camera.
double p_detectorSample
Detector coordinate sample value.
double AdjustedStartingLine() const
Return the starting detector line adjusted for summation.