VTK-m
2.0
|
Manages reading, and loading data from images. More...
#include <ImageReaderBase.h>
Public Types | |
using | ColorArrayType = vtkm::cont::ArrayHandle< vtkm::Vec4f_32 > |
Public Member Functions | |
VTKM_CONT | ImageReaderBase (const char *filename) |
VTKM_CONT | ImageReaderBase (const std::string &filename) |
virtual VTKM_CONT | ~ImageReaderBase () noexcept |
ImageReaderBase (const ImageReaderBase &)=delete | |
ImageReaderBase & | operator= (const ImageReaderBase &)=delete |
const VTKM_CONT vtkm::cont::DataSet & | ReadDataSet () |
const VTKM_CONT vtkm::cont::DataSet & | GetDataSet () const |
const VTKM_CONT std::string & | GetPointFieldName () const |
VTKM_CONT void | SetPointFieldName (const std::string &name) |
const VTKM_CONT std::string & | GetFileName () const |
VTKM_CONT void | SetFileName (const std::string &filename) |
Protected Member Functions | |
virtual VTKM_CONT void | Read ()=0 |
void | InitializeImageDataSet (const vtkm::Id &width, const vtkm::Id &height, const ColorArrayType &pixels) |
Resets the DataSet to hold the given pixels. More... | |
Protected Attributes | |
std::string | FileName |
std::string | PointFieldName = "color" |
vtkm::cont::DataSet | DataSet |
Manages reading, and loading data from images.
ImageReaderBase
implements methods for loading imaging data from a canvas or ArrayHandle and storing that data in a vtkm::cont::DataSet. Image rgb values are represented as a point field in a 2D uniform dataset.
ImageReaderBase
implements virtual methods for reading files. Ideally, these methods will be overriden in various subclasses to implement specific functionality for reading data to specific image file-types.
|
explicit |
|
explicit |
|
virtualnoexcept |
|
delete |
|
inline |
|
inline |
|
inline |
|
protected |
Resets the DataSet
to hold the given pixels.
|
delete |
|
protectedpure virtual |
Implemented in vtkm::io::ImageReaderPNG, vtkm::io::ImageReaderPNM, and vtkm::io::ImageReaderHDF5.
const VTKM_CONT vtkm::cont::DataSet& vtkm::io::ImageReaderBase::ReadDataSet | ( | ) |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |