Reorder member functions.

This commit is contained in:
Nick 2020-05-14 16:10:33 -04:00
parent 6fba7347a9
commit a55596b38c

@ -88,6 +88,8 @@ public:
ConstructPixelFromImage(imageData, index);
}
virtual ~BasePixel() = default;
/// Calculates this difference between two pixels as a single value.
///
virtual ComponentType Diff(const BaseType& pixel) const = 0;
@ -111,8 +113,6 @@ public:
///
void FillImageAtIndexWithPixel(unsigned char* imageData, const vtkm::Id index);
virtual ~BasePixel() = default;
protected:
/// Takes an input imageData pointer and an index to a location in that dataset
/// and fills in this->Components correctly using the provided BIT_DEPTH and
@ -143,11 +143,11 @@ public:
{
}
virtual ~RGBPixel() = default;
ComponentType Diff(const Superclass& pixel) const override;
vtkm::Vec4f_32 ToVec4f() const override;
virtual ~RGBPixel() = default;
protected:
void print(std::ostream& os) const override
{
@ -180,11 +180,11 @@ public:
{
}
virtual ~GreyPixel() = default;
ComponentType Diff(const Superclass& pixel) const override;
vtkm::Vec4f_32 ToVec4f() const override;
virtual ~GreyPixel() = default;
protected:
void print(std::ostream& os) const override { os << "(" << (int)this->Components[0] << ")"; }
};