mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Add get/set filename methods for image reader/writer
This commit is contained in:
parent
e8c5ee5e69
commit
1949cad400
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user