VTK-m
2.0
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
27
class
VTKM_IO_EXPORT
ImageWriterPNG
:
public
vtkm::io::ImageWriterBase
28
{
29
using
Superclass
=
vtkm::io::ImageWriterBase
;
30
31
public
:
32
using
Superclass::Superclass;
33
VTKM_CONT
~
ImageWriterPNG
() noexcept override;
34
ImageWriterPNG
(const
ImageWriterPNG
&) = delete;
35
ImageWriterPNG
& operator=(const
ImageWriterPNG
&) = delete;
36
37
protected:
38
VTKM_CONT
void
Write(
vtkm
::
Id
width,
vtkm
::
Id
height, const
ColorArrayType
& pixels) override;
39
40
template <typename PixelType>
41
VTKM_CONT
void
WriteToFile(
vtkm
::
Id
width,
vtkm
::
Id
height, const
ColorArrayType
& pixels);
42
};
43
}
44
}
// namespace vtkm::io
45
46
#endif //vtk_m_io_ImageWriterPNG_h
vtkm::cont::ArrayHandle< vtkm::Vec4f_32 >
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::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition:
Types.h:191
ImageWriterBase.h
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
vtkm::io::ImageWriterPNG
Manages writing images using the PNG format via lodepng.
Definition:
ImageWriterPNG.h:27
Generated by
1.8.17