Viskores
1.0
viskores
io
ImageReaderPNM.h
Go to the documentation of this file.
1
//============================================================================
2
// The contents of this file are covered by the Viskores license. See
3
// LICENSE.txt for details.
4
//
5
// By contributing to this file, all contributors agree to the Developer
6
// Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7
//============================================================================
8
9
//============================================================================
10
// Copyright (c) Kitware, Inc.
11
// All rights reserved.
12
// See LICENSE.txt for details.
13
//
14
// This software is distributed WITHOUT ANY WARRANTY; without even
15
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16
// PURPOSE. See the above copyright notice for more information.
17
//============================================================================
18
#ifndef viskores_io_ImageReaderPNM_h
19
#define viskores_io_ImageReaderPNM_h
20
21
#include <
viskores/io/ImageReaderBase.h
>
22
23
namespace
viskores
24
{
25
namespace
io
26
{
27
42
class
VISKORES_IO_EXPORT
ImageReaderPNM
:
public
ImageReaderBase
43
{
44
using
Superclass
=
ImageReaderBase
;
45
46
public
:
47
using
Superclass::Superclass;
48
VISKORES_CONT
~
ImageReaderPNM
() noexcept override;
49
ImageReaderPNM
(const
ImageReaderPNM
&) = delete;
50
ImageReaderPNM
& operator=(const
ImageReaderPNM
&) = delete;
51
52
protected:
53
VISKORES_CONT
void
Read() override;
54
58
template <typename PixelType>
59
void
DecodeFile(std::ifstream& inStream, const
viskores
::
Id
& width, const
viskores
::
Id
& height);
60
};
61
}
62
}
// namespace viskores::io
63
64
#endif //viskores_io_ImageReaderPNM_h
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition:
Types.h:235
VISKORES_CONT
#define VISKORES_CONT
Definition:
ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition:
Atomic.h:27
viskores::io::ImageReaderPNM
Reads images using the PNM format.
Definition:
ImageReaderPNM.h:42
ImageReaderBase.h
viskores::io::ImageReaderBase
Manages reading, and loading data from images.
Definition:
ImageReaderBase.h:40
Generated by
1.8.17