Isis 3 Programmer Reference
Isis::SpectralDefinition2D Class Reference

A Spectral definition that includes wavelength and center values for each (line, sample) coordinate. More...

#include <SpectralDefinition2D.h>

Inheritance diagram for Isis::SpectralDefinition2D:
Inheritance graph
Collaboration diagram for Isis::SpectralDefinition2D:
Collaboration graph

Public Member Functions

 SpectralDefinition2D (FileName smileDefFilename)
 Construct a SpectralDefinition2D object using a filename.
 
 ~SpectralDefinition2D ()
 destructor
 
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)
 
Spectel findSpectelByWavelength (const double wavelength, const int sectionNumber) const
 
Spectel findSpectel (const Spectel &inSpectel, const int sectionNumber) const
 
virtual int sectionCount () const
 Returns the number of sections in the calibration image.
 
int sectionNumber (int s, int l, int b) const
 returns section number given (s,l,b)
 
QString toString ()
 Returns QString representation of SpectralDefinition2D.
 
void operator() (Buffer &in) const
 Internal function used to help read-in a calibration cube.
 
virtual int sampleCount () const
 Returns the number of samples in the calibration image.
 
virtual int lineCount () const
 Returns the number of line in the calibration image.
 
virtual int bandCount () const
 Returns the number of bands in the calibration image.
 

Protected Attributes

int m_ns
 Number of samples in input Cube.
 
int m_nl
 Number of lines in input Cube.
 
int m_nb
 Number of bands in input Cube.
 

Private Member Functions

void init ()
 Constructor initializer.
 

Private Attributes

QList< QList< Spectel > * > * m_spectelList
 Internally represent the samples x 2 lines x n bands calibration file Outside list is the sample index, inside list is the band.
 
int m_numSections
 The number of sections of this Spectral Definition.
 
QList< int > * m_sectionList
 The list of sections.
 

Detailed Description

A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.

Author
2015-05-21 Kristin Berry
History

2015-06-09 Stuart Sides - Removed WavelengthsAndWidths storage class and used Spectel

2015-06-12 Stuart Sides - Added getSpectel(spectel) and constness

2015-06-13 Kristin Berry - Added sections (wavelengths are not all contiguous)

2015-06-14 Stuart Sides - Removed global varaiables

2015-08-09 Kristin Berry - Updated to get closer to Isis Coding Standards.

Definition at line 35 of file SpectralDefinition2D.h.

Constructor & Destructor Documentation

◆ SpectralDefinition2D()

Isis::SpectralDefinition2D::SpectralDefinition2D ( FileName smileDefFilename)

Construct a SpectralDefinition2D object using a filename.

Isis Cubes are the only supported format.

Author
2015-05021 Kristin Berry
Parameters
smileDefFilenamethe filename of the spectral definition

Definition at line 26 of file SpectralDefinition2D.cpp.

References Isis::SpectralDefinition::m_nb, Isis::SpectralDefinition::m_nl, Isis::SpectralDefinition::m_ns, m_numSections, m_sectionList, m_spectelList, Isis::IException::Unknown, and Isis::IException::User.

◆ ~SpectralDefinition2D()

Isis::SpectralDefinition2D::~SpectralDefinition2D ( )

destructor

Definition at line 96 of file SpectralDefinition2D.cpp.

References m_sectionList, and m_spectelList.

Member Function Documentation

◆ bandCount()

int Isis::SpectralDefinition::bandCount ( ) const
virtualinherited

Returns the number of bands in the calibration image.

Definition at line 50 of file SpectralDefinition.cpp.

References Isis::SpectralDefinition::m_nb.

◆ findSpectel() [1/2]

Spectel Isis::SpectralDefinition2D::findSpectel ( const int sample,
const int line,
const int band ) const
virtual

Get the Spectel at some sample, line, band (associated with your input/calibration file)

Author
2015-05-21 Kristin Berry
Parameters
sampleinput sample
lineinput line. Not used for a 2D definition
bandinput band
Returns
Spectel

Implements Isis::SpectralDefinition.

Definition at line 113 of file SpectralDefinition2D.cpp.

References m_spectelList.

◆ findSpectel() [2/2]

Spectel Isis::SpectralDefinition2D::findSpectel ( const Spectel & inSpectel,
const int sectionNumber ) const
virtual

Implements Isis::SpectralDefinition.

Definition at line 135 of file SpectralDefinition2D.cpp.

◆ findSpectelByWavelength()

Spectel Isis::SpectralDefinition2D::findSpectelByWavelength ( const double wavelength,
const int sectionNumber ) const
virtual

Implements Isis::SpectralDefinition.

Definition at line 124 of file SpectralDefinition2D.cpp.

◆ init()

void Isis::SpectralDefinition::init ( )
privateinherited

◆ lineCount()

int Isis::SpectralDefinition::lineCount ( ) const
virtualinherited

Returns the number of line in the calibration image.

Definition at line 42 of file SpectralDefinition.cpp.

References Isis::SpectralDefinition::m_nl.

◆ operator()()

void Isis::SpectralDefinition2D::operator() ( Buffer & in) const

Internal function used to help read-in a calibration cube.

pull information out of the input cube and store it. Each buffer contains two pixels, one center and one width

Definition at line 195 of file SpectralDefinition2D.cpp.

References m_sectionList, and m_spectelList.

◆ sampleCount()

int Isis::SpectralDefinition::sampleCount ( ) const
virtualinherited

Returns the number of samples in the calibration image.

Definition at line 34 of file SpectralDefinition.cpp.

References Isis::SpectralDefinition::m_ns.

◆ sectionCount()

int Isis::SpectralDefinition2D::sectionCount ( ) const
virtual

Returns the number of sections in the calibration image.

Reimplemented from Isis::SpectralDefinition.

Definition at line 71 of file SpectralDefinition2D.cpp.

References m_numSections.

◆ sectionNumber()

int Isis::SpectralDefinition2D::sectionNumber ( int s,
int l,
int b ) const
virtual

returns section number given (s,l,b)

Implements Isis::SpectralDefinition.

Definition at line 77 of file SpectralDefinition2D.cpp.

References m_sectionList.

◆ toString()

QString Isis::SpectralDefinition2D::toString ( )

Returns QString representation of SpectralDefinition2D.

Author
Kristin L Berry
Returns
QString String representation of SpectralDefinition2D

Definition at line 172 of file SpectralDefinition2D.cpp.

References m_spectelList.

Member Data Documentation

◆ m_nb

int Isis::SpectralDefinition::m_nb
protectedinherited

◆ m_nl

int Isis::SpectralDefinition::m_nl
protectedinherited

◆ m_ns

int Isis::SpectralDefinition::m_ns
protectedinherited

◆ m_numSections

int Isis::SpectralDefinition2D::m_numSections
private

The number of sections of this Spectral Definition.

Definition at line 57 of file SpectralDefinition2D.h.

Referenced by sectionCount(), and SpectralDefinition2D().

◆ m_sectionList

QList<int>* Isis::SpectralDefinition2D::m_sectionList
private

The list of sections.

Definition at line 59 of file SpectralDefinition2D.h.

Referenced by operator()(), sectionNumber(), SpectralDefinition2D(), and ~SpectralDefinition2D().

◆ m_spectelList

QList<QList<Spectel> *>* Isis::SpectralDefinition2D::m_spectelList
private

Internally represent the samples x 2 lines x n bands calibration file Outside list is the sample index, inside list is the band.

Definition at line 55 of file SpectralDefinition2D.h.

Referenced by findSpectel(), operator()(), SpectralDefinition2D(), toString(), and ~SpectralDefinition2D().


The documentation for this class was generated from the following files: