VTK-m
2.3
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
c
d
e
f
h
i
k
m
o
p
q
r
s
t
u
v
w
x
y
Variables
Typedefs
Macros
e
k
m
q
s
t
u
v
vtkm
io
ImageWriterPNG.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_ImageWriterPNG_h
11
#define vtk_m_io_ImageWriterPNG_h
12
13
#include <
vtkm/io/ImageWriterBase.h
>
14
15
namespace
vtkm
16
{
17
namespace
io
18
{
19
29
class
VTKM_IO_EXPORT
ImageWriterPNG
:
public
vtkm::io::ImageWriterBase
30
{
31
using
Superclass
=
vtkm::io::ImageWriterBase
;
32
33
public
:
34
using
Superclass::Superclass;
35
VTKM_CONT
~
ImageWriterPNG
() noexcept override;
36
ImageWriterPNG
(const
ImageWriterPNG
&) = delete;
37
ImageWriterPNG
& operator=(const
ImageWriterPNG
&) = delete;
38
39
protected:
40
VTKM_CONT
void
Write(
vtkm
::
Id
width,
vtkm
::
Id
height, const
ColorArrayType
& pixels) override;
41
42
template <typename PixelType>
43
VTKM_CONT
void
WriteToFile(
vtkm
::
Id
width,
vtkm
::
Id
height, const
ColorArrayType
& pixels);
44
};
45
}
46
}
// namespace vtkm::io
47
48
#endif //vtk_m_io_ImageWriterPNG_h
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition:
ArrayHandle.h:300
vtkm::io::ImageWriterBase
Manages writing, and loading data from images.
Definition:
ImageWriterBase.h:35
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
ImageWriterBase.h
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::ImageWriterPNG
Writes images using the PNG format.
Definition:
ImageWriterPNG.h:29
Generated by
1.8.17