Add get/set filename methods for image reader/writer

This commit is contained in:
Kenneth Moreland 2020-06-01 10:33:20 -06:00
parent e8c5ee5e69
commit 1949cad400
2 changed files with 6 additions and 0 deletions

@ -47,6 +47,9 @@ public:
VTKM_CONT const std::string& GetPointFieldName() const { return this->PointFieldName; }
VTKM_CONT void SetPointFieldName(const std::string& name) { this->PointFieldName = name; }
VTKM_CONT const std::string& GetFileName() const { return this->FileName; }
VTKM_CONT void SetFileName(const std::string& filename) { this->FileName = filename; }
protected:
VTKM_CONT virtual void Read() = 0;

@ -69,6 +69,9 @@ public:
VTKM_CONT void SetPixelDepth(PixelDepth depth) { this->Depth = depth; }
///@}
VTKM_CONT const std::string& GetFileName() const { return this->FileName; }
VTKM_CONT void SetFileName(const std::string& filename) { this->FileName = filename; }
protected:
std::string FileName;
PixelDepth Depth = PixelDepth::PIXEL_8;