Isis 3 Developer 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. More...
 
 ~SpectralDefinition2D ()
 destructor More...
 
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) More...
 
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. More...
 
int sectionNumber (int s, int l, int b) const
 returns section number given (s,l,b) More...
 
QString toString ()
 Returns QString representation of SpectralDefinition2D. More...
 
void operator() (Buffer &in) const
 Internal function used to help read-in a calibration cube. More...
 
virtual int sampleCount () const
 Returns the number of samples in the calibration image. More...
 
virtual int lineCount () const
 Returns the number of line in the calibration image. More...
 
virtual int bandCount () const
 Returns the number of bands in the calibration image. More...
 

Protected Attributes

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

Detailed Description

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

Author
2015-05-21 Kristin Berry

Constructor & Destructor Documentation

◆ SpectralDefinition2D()

◆ ~SpectralDefinition2D()

Isis::SpectralDefinition2D::~SpectralDefinition2D ( )

destructor

Member Function Documentation

◆ bandCount()

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

Returns the number of bands in the calibration image.

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.

◆ findSpectel() [2/2]

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

◆ findSpectelByWavelength()

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

◆ lineCount()

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

Returns the number of line in the calibration image.

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

References Isis::Buffer::Band(), Isis::NULL8, and Isis::Buffer::Sample().

◆ sampleCount()

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

Returns the number of samples in the calibration image.

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.

◆ sectionNumber()

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

returns section number given (s,l,b)

Implements Isis::SpectralDefinition.

Referenced by findSpectel().

◆ toString()

QString Isis::SpectralDefinition2D::toString ( )

Returns QString representation of SpectralDefinition2D.

Author
Kristin L Berry
Returns
QString String representation of SpectralDefinition2D

References Isis::Spectel::centerWavelength(), and Isis::Spectel::filterWidth().

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

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