Mark pixel destructors as virtual to fix build error.

This commit is contained in:
Nick 2020-05-14 14:29:34 -04:00
parent cd1f6393c9
commit 6fba7347a9

@ -111,6 +111,8 @@ 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
@ -144,6 +146,8 @@ public:
ComponentType Diff(const Superclass& pixel) const override;
vtkm::Vec4f_32 ToVec4f() const override;
virtual ~RGBPixel() = default;
protected:
void print(std::ostream& os) const override
{
@ -179,6 +183,8 @@ public:
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] << ")"; }
};