Viskores
1.0
viskores
io
ImageWriterPNG.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_ImageWriterPNG_h
19
#define viskores_io_ImageWriterPNG_h
20
21
#include <
viskores/io/ImageWriterBase.h
>
22
23
namespace
viskores
24
{
25
namespace
io
26
{
27
37
class
VISKORES_IO_EXPORT
ImageWriterPNG
:
public
viskores::io::ImageWriterBase
38
{
39
using
Superclass
=
viskores::io::ImageWriterBase
;
40
41
public
:
42
using
Superclass::Superclass;
43
VISKORES_CONT
~
ImageWriterPNG
() noexcept override;
44
ImageWriterPNG
(const
ImageWriterPNG
&) = delete;
45
ImageWriterPNG
& operator=(const
ImageWriterPNG
&) = delete;
46
47
protected:
48
VISKORES_CONT
void
Write(
viskores
::
Id
width,
49
viskores
::
Id
height,
50
const
ColorArrayType
& pixels) override;
51
52
template <typename PixelType>
53
VISKORES_CONT
void
WriteToFile(
viskores
::
Id
width,
54
viskores
::
Id
height,
55
const
ColorArrayType
& pixels);
56
};
57
}
58
}
// namespace viskores::io
59
60
#endif //viskores_io_ImageWriterPNG_h
viskores::cont::ArrayHandle
Manages an array-worth of data.
Definition:
ArrayHandle.h:313
viskores::io::ImageWriterBase
Manages writing, and loading data from images.
Definition:
ImageWriterBase.h:43
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
ImageWriterBase.h
viskores::io::ImageWriterPNG
Writes images using the PNG format.
Definition:
ImageWriterPNG.h:37
Generated by
1.8.17