Loading isis/src/base/objs/Pixel/Pixel.cpp +45 −39 Original line number Diff line number Diff line Loading @@ -72,7 +72,13 @@ namespace Isis { } //! Copy assignment operator /** * Copy assignment operator * * @param other Pixel the Pixel to be copied * * @return Pixel Pointer to self */ Pixel &Pixel::operator=(const Pixel& other) { m_line = other.line(); m_sample = other.sample(); Loading @@ -86,25 +92,25 @@ namespace Isis { Pixel::~Pixel() {} //! Returns the line coordinate of the Pixel //! @return int The line coordinate of the Pixel int Pixel::line() const { return m_line; } //! Returns the sample coordinate of the Pixel //! @return int The sample coordinate of the Pixel int Pixel::sample() const { return m_sample; } //! Returns the band coordinate of the Pixel //! @return int The band coordinate of the Pixel int Pixel::band() const { return m_band; } //! Returns the DN of the Pixel //! @return double The DN value of the Pixel double Pixel::DN() const { return m_DN; } Loading isis/src/base/objs/Pixel/Pixel.h +22 −23 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ namespace Isis { Pixel(const Pixel& pixel); virtual ~Pixel(); Pixel &operator=(const Pixel& other); int line() const; Loading Loading @@ -209,8 +210,6 @@ namespace Isis { /** * Returns true if the input pixel is one of the low saturation types * * @param d Pixel value to test * * @return bool */ bool IsLow() { Loading Loading
isis/src/base/objs/Pixel/Pixel.cpp +45 −39 Original line number Diff line number Diff line Loading @@ -72,7 +72,13 @@ namespace Isis { } //! Copy assignment operator /** * Copy assignment operator * * @param other Pixel the Pixel to be copied * * @return Pixel Pointer to self */ Pixel &Pixel::operator=(const Pixel& other) { m_line = other.line(); m_sample = other.sample(); Loading @@ -86,25 +92,25 @@ namespace Isis { Pixel::~Pixel() {} //! Returns the line coordinate of the Pixel //! @return int The line coordinate of the Pixel int Pixel::line() const { return m_line; } //! Returns the sample coordinate of the Pixel //! @return int The sample coordinate of the Pixel int Pixel::sample() const { return m_sample; } //! Returns the band coordinate of the Pixel //! @return int The band coordinate of the Pixel int Pixel::band() const { return m_band; } //! Returns the DN of the Pixel //! @return double The DN value of the Pixel double Pixel::DN() const { return m_DN; } Loading
isis/src/base/objs/Pixel/Pixel.h +22 −23 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ namespace Isis { Pixel(const Pixel& pixel); virtual ~Pixel(); Pixel &operator=(const Pixel& other); int line() const; Loading Loading @@ -209,8 +210,6 @@ namespace Isis { /** * Returns true if the input pixel is one of the low saturation types * * @param d Pixel value to test * * @return bool */ bool IsLow() { Loading