Isis 3 Programmer Reference
Spectel.cpp
Go to the documentation of this file.
1 
24 #include "Spectel.h"
25 
26 namespace Isis{
27 
35  Pixel(0, 0, 0, Isis::Null) {
38  }
39 
40 
54  Spectel::Spectel(int sample, int line, int band, double DN, double center, double width):
55  Pixel(sample, line, band, DN) {
56  m_center = center;
57  m_width = width;
58  }
59 
70  Spectel::Spectel(Pixel pixel, double center, double width) : Pixel(pixel) {
71  m_center = center;
72  m_width = width;
73  }
74 
75 
83  Spectel::Spectel(const Spectel& spectel) : Pixel(spectel.sample(),
84  spectel.line(), spectel.band(), spectel.DN()) {
85  m_center = spectel.centerWavelength();
86  m_width = spectel.filterWidth();
87  }
88 
89 
92  }
93 
94 
97  Pixel::operator=(other);
98  m_center = other.centerWavelength();
99  m_width = other.filterWidth();
100  return *this;
101  }
102 
103 
111  double Spectel::centerWavelength() const {
112  return m_center;
113  }
114 
115 
123  double Spectel::filterWidth() const {
124  return m_width;
125  }
126 }
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:110
double centerWavelength() const
Gets central wavelength of spectel.
Definition: Spectel.cpp:111
double filterWidth() const
Gets wavelength width associated with spectel.
Definition: Spectel.cpp:123
double m_center
Center wavelength associated with pixel.
Definition: Spectel.h:58
Store and/or manipulate pixel values.
Definition: Pixel.h:63
Spectel()
Constructs an empty Spectel.
Definition: Spectel.cpp:34
Spectel & operator=(const Spectel &other)
Copy assignment operator.
Definition: Spectel.cpp:96
virtual ~Spectel()
Default destructor.
Definition: Spectel.cpp:91
double m_width
Wavelength width (FWHM) associated with pixel.
Definition: Spectel.h:60
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:43
Pixel & operator=(const Pixel &other)
Copy assignment operator.
Definition: Pixel.cpp:82