Isis 3 Developer 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;
96  Kernels m_kernels;
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.
Definition: PushFrameCameraCcdLayout.cpp:116
int ccdLines() const
Return the number of lines in the CCD.
Definition: PushFrameCameraCcdLayout.cpp:101
FrameletInfo(const int frameid)
Definition: PushFrameCameraCcdLayout.h:64
bool addKernel(const QString &kernel)
Add a NAIF kernel to the set of kernels that values will be pulled from.
Definition: PushFrameCameraCcdLayout.cpp:72
Determine SPICE kernels defined in an ISIS file.
Definition: Kernels.h:111
QString m_filterName
The name of the framelet.
Definition: PushFrameCameraCcdLayout.h:72
int ccdSamples() const
Return the number of samples in the CCD.
Definition: PushFrameCameraCcdLayout.cpp:89
int m_frameId
The NAIF ID of the framelet.
Definition: PushFrameCameraCcdLayout.h:71
Container for the layout of a specific framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:60
int m_lines
The number of lines in the framelet.
Definition: PushFrameCameraCcdLayout.h:76
int m_startSample
The first sample of the framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:73
int m_samples
The number of samples in the framelet.
Definition: PushFrameCameraCcdLayout.h:75
int m_startLine
The first line of the framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:74
FrameletInfo(const int frameid, QString filterName, int startSample, int startLine, int samples, int lines)
Definition: PushFrameCameraCcdLayout.h:67
virtual ~PushFrameCameraCcdLayout()
Destructor.
Definition: PushFrameCameraCcdLayout.cpp:58
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Provide image coordinates that map to the push frame detector.
Definition: PushFrameCameraCcdLayout.h:44
FrameletInfo()
Definition: PushFrameCameraCcdLayout.h:61
PushFrameCameraCcdLayout()
Push frame full CCD layout class.
Definition: PushFrameCameraCcdLayout.cpp:40