Isis 3 Programmer Reference
PushFrameCameraCcdLayout.h
Go to the documentation of this file.
1 #ifndef PushFrameCameraCcdLayout_h
2 #define PushFrameCameraCcdLayout_h
3 
26 #include <QString>
27 #include "Kernels.h"
28 
29 
30 namespace Isis {
45  public:
60  struct FrameletInfo {
63  m_samples(0), m_lines(0) { }
64  FrameletInfo(const int frameid) : m_frameId(frameid), m_filterName(),
66  m_samples(0), m_lines(0) { }
67  FrameletInfo(const int frameid, QString filterName, int startSample,
68  int startLine, int samples, int lines) :
69  m_frameId(frameid), m_filterName(filterName), m_startSample(startSample),
70  m_startLine(startLine), m_samples(samples), m_lines(lines) { }
71  int m_frameId;
72  QString m_filterName;
75  int m_samples;
76  int m_lines;
77  };
78 
79  public:
81  PushFrameCameraCcdLayout( const int ccdId );
82 
83  virtual ~PushFrameCameraCcdLayout();
84 
85  bool addKernel(const QString &kernel);
86 
87  int ccdSamples() const;
88  int ccdLines() const;
89 
90  FrameletInfo getFrameInfo(const int &frameId,
91  const QString &name = "") const;
92 
93 
94  private:
95  int m_ccdId;
97 
98  int getSpiceInt(const QString &var, const int index = 0) const;
99  double getSpiceDouble(const QString &var, const int index = 0) const;
100  QString getSpiceString(const QString &var, const int index = 0) const;
101 
102  };
103 };
104 #endif
FrameletInfo getFrameInfo(const int &frameId, const QString &name="") const
Get the layout information for a framelet.
int ccdLines() const
Return the number of lines in the CCD.
bool addKernel(const QString &kernel)
Add a NAIF kernel to the set of kernels that values will be pulled from.
Determine SPICE kernels defined in an ISIS file.
Definition: Kernels.h:111
QString m_filterName
The name of the framelet.
QString getSpiceString(const QString &var, const int index=0) const
Query the loaded kernels for a string valued keyword.
int ccdSamples() const
Return the number of samples in the CCD.
int getSpiceInt(const QString &var, const int index=0) const
Query the loaded kernels for an integer valued keyword.
Container for the layout of a specific framelet on the detector.
int m_lines
The number of lines in the framelet.
int m_startSample
The first sample of the framelet on the detector.
double getSpiceDouble(const QString &var, const int index=0) const
Query the loaded kernels for a double valued keyword.
int m_samples
The number of samples in the framelet.
int m_startLine
The first line of the framelet on the detector.
virtual ~PushFrameCameraCcdLayout()
Destructor.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Provide image coordinates that map to the push frame detector.
PushFrameCameraCcdLayout()
Push frame full CCD layout class.
Kernels m_kernels
NAIF kernel manager.