16#include "PushFrameCameraCcdLayout.h" 
   17#include "NaifStatus.h" 
   58    if ( kern.isVersioned()) {
 
   59      kern = kern.highestVersion();
 
 
  102                                             const QString &name)
 const {
 
  104    finfo.m_filterName = name;
 
  106    QString base = 
"INS" + 
toString(frameId);
 
  108      finfo.m_samples = 
getSpiceInt(base + 
"_FILTER_SAMPLES");
 
  109      finfo.m_lines = 
getSpiceInt(base + 
"_FILTER_LINES");
 
  110      finfo.m_startLine = 
getSpiceInt(base + 
"_FILTER_OFFSET");
 
  113      QString msg = 
"Could not find layout information for framelet [" 
  117    finfo.m_startSample = 1;
 
  119    if ( finfo.m_filterName.isEmpty()) {
 
 
  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.
 
@ Io
A type of error that occurred when performing an actual I/O operation.
 
bool Add(const QString &kfile)
Add a new kernel to the list.
 
int Load(const QString &ktype)
Load all kernels with one more types.
 
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.