VTK-m
2.2
vtkm
io
ImageReaderPNM.h
Go to the documentation of this file.
1
//============================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//============================================================================
10
#ifndef vtk_m_io_ImageReaderPNM_h
11
#define vtk_m_io_ImageReaderPNM_h
12
13
#include <
vtkm/io/ImageReaderBase.h
>
14
15
namespace
vtkm
16
{
17
namespace
io
18
{
19
34
class
VTKM_IO_EXPORT
ImageReaderPNM
:
public
ImageReaderBase
35
{
36
using
Superclass
=
ImageReaderBase
;
37
38
public
:
39
using
Superclass::Superclass;
40
VTKM_CONT
~
ImageReaderPNM
() noexcept override;
41
ImageReaderPNM
(const
ImageReaderPNM
&) = delete;
42
ImageReaderPNM
& operator=(const
ImageReaderPNM
&) = delete;
43
44
protected:
45
VTKM_CONT
void
Read() override;
46
50
template <typename PixelType>
51
void
DecodeFile(std::ifstream& inStream, const
vtkm
::
Id
& width, const
vtkm
::
Id
& height);
52
};
53
}
54
}
// namespace vtkm::io
55
56
#endif //vtk_m_io_ImageReaderPNM_h
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
VTKM_IO_EXPORT
#define VTKM_IO_EXPORT
Definition:
vtkm_io_export.h:44
vtkm::io::ImageReaderBase
Manages reading, and loading data from images.
Definition:
ImageReaderBase.h:32
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition:
Types.h:227
vtkm::io::ImageReaderPNM
Reads images using the PNM format.
Definition:
ImageReaderPNM.h:34
ImageReaderBase.h
Generated by
1.8.17