Isis Developer Reference
PushFrameCameraCcdLayout.h
Go to the documentation of this file.
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;
80  Kernels m_kernels;
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
FileName.h
Isis::IException::Io
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
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::FileName
File name manipulation and expansion.
Definition: FileName.h:100
NaifStatus.h
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::FrameletInfo::FrameletInfo
FrameletInfo(const int frameid, QString filterName, int startSample, int startLine, int samples, int lines)
Definition: PushFrameCameraCcdLayout.h:51
PushFrameCameraCcdLayout.h
Isis::NaifStatus::CheckErrors
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Definition: NaifStatus.cpp:28
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
IString.h
Isis::PushFrameCameraCcdLayout::PushFrameCameraCcdLayout
PushFrameCameraCcdLayout()
Push frame full CCD layout class.
Definition: PushFrameCameraCcdLayout.cpp:24
Isis::Kernels::Add
bool Add(const QString &kfile)
Add a new kernel to the list.
Definition: Kernels.cpp:178
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::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_startLine
int m_startLine
The first line of the framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:58
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::PushFrameCameraCcdLayout::FrameletInfo::m_startSample
int m_startSample
The first sample of the framelet on the detector.
Definition: PushFrameCameraCcdLayout.h:57
Isis::PushFrameCameraCcdLayout
Provide image coordinates that map to the push frame detector.
Definition: PushFrameCameraCcdLayout.h:28
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::Kernels::Load
int Load(const QString &ktype)
Load all kernels with one more types.
Definition: Kernels.cpp:364
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::FileName::isVersioned
bool isVersioned() const
Checks to see if a file name is versioned by date or numerically.
Definition: FileName.cpp:281
Isis::FileName::highestVersion
FileName highestVersion() const
Searches the directory specified in the file name for the highest version of the file name.
Definition: FileName.cpp:313
Isis::PushFrameCameraCcdLayout::FrameletInfo::FrameletInfo
FrameletInfo()
Definition: PushFrameCameraCcdLayout.h:45
Isis::PushFrameCameraCcdLayout::FrameletInfo::FrameletInfo
FrameletInfo(const int frameid)
Definition: PushFrameCameraCcdLayout.h:48
Kernels.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16