Isis 3 Programmer Reference
SpectralDefinition2D.h
1 #ifndef SpectralDefinition2D_h
2 #define SpectralDefinition2D_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 
11 #include "FileName.h"
12 #include "Spectel.h"
13 #include "SpectralDefinition.h"
14 
15 template<typename T> class QList;
16 
17 namespace Isis {
18 
19  class Spectel;
20 
36  public:
37  SpectralDefinition2D(FileName smileDefFilename);
39 
40  Spectel findSpectel(const int sample, const int line, const int band) const;
41  Spectel findSpectelByWavelength(const double wavelength, const int sectionNumber) const;
42  Spectel findSpectel(const Spectel &inSpectel, const int sectionNumber) const;
43 
44  virtual int sectionCount() const;
45  int sectionNumber(int s, int l, int b) const;
46 
47  QString toString();
48 
50  void operator()(Buffer &in) const;
51 
52  private:
60  };
61 }
62 
63 #endif
Isis::SpectralDefinition2D::m_sectionList
QList< int > * m_sectionList
The list of sections.
Definition: SpectralDefinition2D.h:59
Isis::SpectralDefinition2D::sectionNumber
int sectionNumber(int s, int l, int b) const
returns section number given (s,l,b)
Definition: SpectralDefinition2D.cpp:77
Isis::Spectel
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:26
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::SpectralDefinition2D::toString
QString toString()
Returns QString representation of SpectralDefinition2D.
Definition: SpectralDefinition2D.cpp:172
Isis::SpectralDefinition2D::m_spectelList
QList< QList< Spectel > * > * m_spectelList
Internally represent the samples x 2 lines x n bands calibration file Outside list is the sample inde...
Definition: SpectralDefinition2D.h:55
Isis::SpectralDefinition2D::operator()
void operator()(Buffer &in) const
Internal function used to help read-in a calibration cube.
Definition: SpectralDefinition2D.cpp:195
Isis::SpectralDefinition
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
Definition: SpectralDefinition.h:34
Isis::Buffer
Buffer for reading and writing cube data.
Definition: Buffer.h:53
Isis::SpectralDefinition2D::m_numSections
int m_numSections
The number of sections of this Spectral Definition.
Definition: SpectralDefinition2D.h:57
Isis::SpectralDefinition2D::~SpectralDefinition2D
~SpectralDefinition2D()
destructor
Definition: SpectralDefinition2D.cpp:96
Isis::SpectralDefinition2D::SpectralDefinition2D
SpectralDefinition2D(FileName smileDefFilename)
Construct a SpectralDefinition2D object using a filename.
Definition: SpectralDefinition2D.cpp:26
Isis::SpectralDefinition2D
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
Definition: SpectralDefinition2D.h:35
Isis::SpectralDefinition2D::sectionCount
virtual int sectionCount() const
Returns the number of sections in the calibration image.
Definition: SpectralDefinition2D.cpp:71
Isis::SpectralDefinition2D::findSpectel
Spectel findSpectel(const int sample, const int line, const int band) const
Get the Spectel at some sample, line, band (associated with your input/calibration file)
Definition: SpectralDefinition2D.cpp:113
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16