mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Mark pixel destructors as virtual to fix build error.
This commit is contained in:
parent
cd1f6393c9
commit
6fba7347a9
@ -111,6 +111,8 @@ public:
|
|||||||
///
|
///
|
||||||
void FillImageAtIndexWithPixel(unsigned char* imageData, const vtkm::Id index);
|
void FillImageAtIndexWithPixel(unsigned char* imageData, const vtkm::Id index);
|
||||||
|
|
||||||
|
virtual ~BasePixel() = default;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Takes an input imageData pointer and an index to a location in that dataset
|
/// 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
|
/// and fills in this->Components correctly using the provided BIT_DEPTH and
|
||||||
@ -144,6 +146,8 @@ public:
|
|||||||
ComponentType Diff(const Superclass& pixel) const override;
|
ComponentType Diff(const Superclass& pixel) const override;
|
||||||
vtkm::Vec4f_32 ToVec4f() const override;
|
vtkm::Vec4f_32 ToVec4f() const override;
|
||||||
|
|
||||||
|
virtual ~RGBPixel() = default;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void print(std::ostream& os) const override
|
void print(std::ostream& os) const override
|
||||||
{
|
{
|
||||||
@ -179,6 +183,8 @@ public:
|
|||||||
ComponentType Diff(const Superclass& pixel) const override;
|
ComponentType Diff(const Superclass& pixel) const override;
|
||||||
vtkm::Vec4f_32 ToVec4f() const override;
|
vtkm::Vec4f_32 ToVec4f() const override;
|
||||||
|
|
||||||
|
virtual ~GreyPixel() = default;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void print(std::ostream& os) const override { os << "(" << (int)this->Components[0] << ")"; }
|
void print(std::ostream& os) const override { os << "(" << (int)this->Components[0] << ")"; }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user