VTK-m  2.1
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 
14 
15 namespace vtkm
16 {
17 namespace io
18 {
19 
30 {
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