16#include "PushFrameCameraCcdLayout.h"
17#include "NaifStatus.h"
102 const QString &name)
const {
106 QString base =
"INS" +
toString(frameId);
113 QString msg =
"Could not find layout information for framelet ["
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";
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";
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";
214 return ( QString(kernelValue) );
File name manipulation and expansion.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
FileName highestVersion() const
Searches the directory specified in the file name for the highest version of the file name.
bool isVersioned() const
Checks to see if a file name is versioned by date or numerically.
@ Io
A type of error that occurred when performing an actual I/O operation.
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(bool boolToConvert)
Global function to convert a boolean to a string.
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.