Isis 3 Developer Reference
SpectralDefinition1D.h
Go to the documentation of this file.
1 #ifndef SpectralDefinition1D_h
2 #define SpectralDefinition1D_h
3 
28 #include <vector>
29 
30 #include "SpectralDefinition.h"
31 #include "Spectel.h"
32 #include "FileName.h"
33 
34 template<typename T> class QList;
35 
36 namespace Isis {
37 
55  public:
56  SpectralDefinition1D(FileName smileDefFilename);
58  virtual ~SpectralDefinition1D();
59 
60  Spectel findSpectel(const int sample, const int line, const int band) const;
61  Spectel findSpectel(const Spectel &inSpectel, const int sectionNumber) const;
62  Spectel findSpectelByWavelength(double wavelength, int sectionNumber) const;
63 
64  virtual int sectionCount() const;
65  int sectionNumber(int s, int l, int b) const;
66 
67  QString toString();
68 
69  private:
70  // the outer list is the section #, inside is the band
72  QList< QList<Spectel> *> *m_spectelList;
74  int m_numSections;
76  bool m_ascendingWavelengths;
77  };
78 }
79 
80 #endif
File name manipulation and expansion.
Definition: FileName.h:116
QString toString()
Returns the QString representation of the SpectralDefinition1D.
Definition: SpectralDefinition1D.cpp:115
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
Definition: SpectralDefinition.h:52
Spectel findSpectelByWavelength(double wavelength, int sectionNumber) const
Finds the Spectel with the closest center wavelength (in the given sectionNumber) to the input wavele...
Definition: SpectralDefinition1D.cpp:242
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual int sectionCount() const
Returns the number of sections in this Spectral Definition.
Definition: SpectralDefinition1D.cpp:139
virtual ~SpectralDefinition1D()
destructor
Definition: SpectralDefinition1D.cpp:170
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:43
int sectionNumber(int s, int l, int b) const
Returns the section number that a spectel is in.
Definition: SpectralDefinition1D.cpp:153
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate...
Definition: SpectralDefinition1D.h:54
SpectralDefinition1D()
construct an empty 1D SpectralDef
Definition: SpectralDefinition1D.cpp:165
Spectel findSpectel(const int sample, const int line, const int band) const
Get the Spectel from this SpectralDefinition at a (s,l,b).
Definition: SpectralDefinition1D.cpp:189