16#include "PushFrameCameraCcdLayout.h"
17#include "NaifStatus.h"
57 FileName kern(kernel);
58 if ( kern.isVersioned()) {
59 kern = kern.highestVersion();
102 const QString &name)
const {
106 QString base =
"INS" +
toString(frameId);
112 catch (IException &e) {
113 QString msg =
"Could not find layout information for framelet ["
115 throw IException(e, IException::Io, msg, _FILEINFO_);
122 }
catch (IException &ie) {
142 const int index)
const {
143 SpiceBoolean found =
false;
144 SpiceInt numValuesRead;
145 SpiceInt kernelValue;
146 gipool_c(var.toLatin1().data(), (SpiceInt) index, 1, &numValuesRead,
147 &kernelValue, &found);
152 QString msg =
"Can not find [" + var +
"] in text kernels";
153 throw IException(IException::Io, msg, _FILEINFO_);
156 return ( (
int) kernelValue );
171 const int index)
const {
172 SpiceBoolean found =
false;
173 SpiceInt numValuesRead;
174 SpiceDouble kernelValue;
175 gdpool_c(var.toLatin1().data(), (SpiceInt) index, 1, &numValuesRead,
176 &kernelValue, &found);
181 QString msg =
"Can not find [" + var +
"] in text kernels";
182 throw IException(IException::Io, msg, _FILEINFO_);
185 return ( (
double) kernelValue );
200 const int index)
const {
201 SpiceBoolean found =
false;
202 SpiceInt numValuesRead;
203 char kernelValue[512];
204 gcpool_c(var.toLatin1().data(), (SpiceInt) index, 1,
sizeof(kernelValue),
205 &numValuesRead, kernelValue, &found);
210 QString msg =
"Can not find [" + var +
"] in text kernels";
211 throw IException(IException::Io, msg, _FILEINFO_);
214 return ( QString(kernelValue) );
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
FrameletInfo getFrameInfo(const int &frameId, const QString &name="") const
Get the layout information for a framelet.
virtual ~PushFrameCameraCcdLayout()
Destructor.
PushFrameCameraCcdLayout()
Push frame full CCD layout class.
int getSpiceInt(const QString &var, const int index=0) const
Query the loaded kernels for an integer valued keyword.
Kernels m_kernels
NAIF kernel manager.
QString getSpiceString(const QString &var, const int index=0) const
Query the loaded kernels for a string valued keyword.
double getSpiceDouble(const QString &var, const int index=0) const
Query the loaded kernels for a double valued keyword.
int ccdSamples() const
Return the number of samples in the CCD.
int ccdLines() const
Return the number of lines in the CCD.
int m_ccdId
NAIF ID of the CCD.
bool addKernel(const QString &kernel)
Add a NAIF kernel to the set of kernels that values will be pulled from.
This is free and unencumbered software released into the public domain.
QString toString(const LinearAlgebra::Vector &vector, int precision)
A global function to format LinearAlgebra::Vector as a QString with the given precision.
Container for the layout of a specific framelet on the detector.
int m_lines
The number of lines in the framelet.
int m_startLine
The first line of the framelet on the detector.
QString m_filterName
The name of the framelet.
int m_samples
The number of samples in the framelet.
int m_startSample
The first sample of the framelet on the detector.