Isis 3 Programmer Reference
PushFrameCameraCcdLayout.h
1 #ifndef PushFrameCameraCcdLayout_h
2 #define PushFrameCameraCcdLayout_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <QString>
11 #include "Kernels.h"
12 
13 
14 namespace Isis {
29  public:
44  struct FrameletInfo {
47  m_samples(0), m_lines(0) { }
48  FrameletInfo(const int frameid) : m_frameId(frameid), m_filterName(),
50  m_samples(0), m_lines(0) { }
51  FrameletInfo(const int frameid, QString filterName, int startSample,
52  int startLine, int samples, int lines) :
53  m_frameId(frameid), m_filterName(filterName), m_startSample(startSample),
54  m_startLine(startLine), m_samples(samples), m_lines(lines) { }
55  int m_frameId;
56  QString m_filterName;
59  int m_samples;
60  int m_lines;
61  };
62 
63  public:
65  PushFrameCameraCcdLayout( const int ccdId );
66 
67  virtual ~PushFrameCameraCcdLayout();
68 
69  bool addKernel(const QString &kernel);
70 
71  int ccdSamples() const;
72  int ccdLines() const;
73 
74  FrameletInfo getFrameInfo(const int &frameId,
75  const QString &name = "") const;
76 
77 
78  private:
79  int m_ccdId;
81 
82  int getSpiceInt(const QString &var, const int index = 0) const;
83  double getSpiceDouble(const QString &var, const int index = 0) const;
84  QString getSpiceString(const QString &var, const int index = 0) const;
85 
86  };
87 };
88 #endif
Isis::PushFrameCameraCcdLayout::getSpiceInt
int getSpiceInt(const QString &var, const int index=0) const
Query the loaded kernels for an integer valued keyword.
Definition: PushFrameCameraCcdLayout.cpp:141
Isis::PushFrameCameraCcdLayout::getSpiceDouble
double getSpiceDouble(const QString &var, const int index=0) const
Query the loaded kernels for a double valued keyword.
Definition: PushFrameCameraCcdLayout.cpp:170
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_frameId
int m_frameId
The NAIF ID of the framelet.
Definition: PushFrameCameraCcdLayout.h:55
Isis::Kernels
Determine SPICE kernels defined in an ISIS file.
Definition: Kernels.h:94
Isis::PushFrameCameraCcdLayout::FrameletInfo
Container for the layout of a specific framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:44
Isis::PushFrameCameraCcdLayout::getFrameInfo
FrameletInfo getFrameInfo(const int &frameId, const QString &name="") const
Get the layout information for a framelet.
Definition: PushFrameCameraCcdLayout.cpp:100
Isis::PushFrameCameraCcdLayout::m_kernels
Kernels m_kernels
NAIF kernel manager.
Definition: PushFrameCameraCcdLayout.h:80
Isis::PushFrameCameraCcdLayout::PushFrameCameraCcdLayout
PushFrameCameraCcdLayout()
Push frame full CCD layout class.
Definition: PushFrameCameraCcdLayout.cpp:24
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_samples
int m_samples
The number of samples in the framelet.
Definition: PushFrameCameraCcdLayout.h:59
Isis::PushFrameCameraCcdLayout::~PushFrameCameraCcdLayout
virtual ~PushFrameCameraCcdLayout()
Destructor.
Definition: PushFrameCameraCcdLayout.cpp:42
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_filterName
QString m_filterName
The name of the framelet.
Definition: PushFrameCameraCcdLayout.h:56
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_startLine
int m_startLine
The first line of the framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:58
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_startSample
int m_startSample
The first sample of the framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:57
Isis::PushFrameCameraCcdLayout::m_ccdId
int m_ccdId
NAIF ID of the CCD.
Definition: PushFrameCameraCcdLayout.h:79
Isis::PushFrameCameraCcdLayout
Provide image coordinates that map to the push frame detector.
Definition: PushFrameCameraCcdLayout.h:28
Isis::PushFrameCameraCcdLayout::getSpiceString
QString getSpiceString(const QString &var, const int index=0) const
Query the loaded kernels for a string valued keyword.
Definition: PushFrameCameraCcdLayout.cpp:199
Isis::PushFrameCameraCcdLayout::ccdSamples
int ccdSamples() const
Return the number of samples in the CCD.
Definition: PushFrameCameraCcdLayout.cpp:73
Isis::PushFrameCameraCcdLayout::ccdLines
int ccdLines() const
Return the number of lines in the CCD.
Definition: PushFrameCameraCcdLayout.cpp:85
Isis::PushFrameCameraCcdLayout::addKernel
bool addKernel(const QString &kernel)
Add a NAIF kernel to the set of kernels that values will be pulled from.
Definition: PushFrameCameraCcdLayout.cpp:56
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_lines
int m_lines
The number of lines in the framelet.
Definition: PushFrameCameraCcdLayout.h:60
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16