Isis 3 Programmer Reference
VariableLineScanCameraDetectorMap.h
1#ifndef VariableLineScanCameraDetectorMap_h
2#define VariableLineScanCameraDetectorMap_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include "LineScanCameraDetectorMap.h"
11
12namespace Isis {
13 class LineRateChange;
14
50 public:
51 VariableLineScanCameraDetectorMap(Camera *parent, std::vector< LineRateChange > &lineRates);
52
54
55 virtual bool SetParent(const double sample,
56 const double line);
57 virtual bool SetParent(const double sample,
58 const double line,
59 const double deltaT);
60
61 virtual bool SetDetector(const double sample,
62 const double line);
63
64 virtual double exposureDuration(const double sample,
65 const double line,
66 const int band) const;
67 LineRateChange &lineRate(const double line) const;
68
69 private:
70 std::vector< LineRateChange > &p_lineRates;
72 };
73
74
84 public:
85 LineRateChange(int line, double stime, double rate) {
86 p_line = line;
87 p_stime = stime;
88 p_rate = rate;
89 };
90
91 int GetStartLine() {
92 return p_line;
93 }
94 double GetStartEt() {
95 return p_stime;
96 }
97 double GetLineScanRate() {
98 return p_rate;
99 }
100
101 private:
102 int p_line;
103 double p_stime;
104 double p_rate;
105 };
106};
107#endif
Container class for storing timing information for a section of an image.
double p_rate
The time between lines in the section.
double p_stime
The time at the beginning of exposure of the first line.
int p_line
The first line in the section.
Convert between parent image coordinates and detector coordinates.
Convert between parent image coordinates and detector coordinates.
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
LineRateChange & lineRate(const double line) const
Get the line rate information for a given 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.
VariableLineScanCameraDetectorMap(Camera *parent, std::vector< LineRateChange > &lineRates)
Constructs a VariableLineScanCameraDetectorMap.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16