diff --git a/vtkm/io/PixelTypes.h b/vtkm/io/PixelTypes.h index 4b7ee0ab5..c6a7b9034 100644 --- a/vtkm/io/PixelTypes.h +++ b/vtkm/io/PixelTypes.h @@ -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; @@ -141,6 +143,8 @@ public: { } + virtual ~RGBPixel() = default; + ComponentType Diff(const Superclass& pixel) const override; vtkm::Vec4f_32 ToVec4f() const override; @@ -176,6 +180,8 @@ public: { } + virtual ~GreyPixel() = default; + ComponentType Diff(const Superclass& pixel) const override; vtkm::Vec4f_32 ToVec4f() const override;