VTK  9.2.6
vtkThreadedImageWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkThreadedImageWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkThreadedImageWriter_h
30 #define vtkThreadedImageWriter_h
31 
32 #include "vtkIOAsynchronousModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 class vtkImageData;
36 
37 class VTKIOASYNCHRONOUS_EXPORT vtkThreadedImageWriter : public vtkObject
38 {
39 public:
40  static vtkThreadedImageWriter* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
52  void Initialize();
53 
60  void EncodeAndWrite(vtkImageData* image, VTK_FILEPATH const char* fileName);
61 
66  void SetMaxThreads(vtkTypeUInt32);
67  vtkGetMacro(MaxThreads, vtkTypeUInt32);
68 
72  void Finalize();
73 
74 protected:
76  ~vtkThreadedImageWriter() override;
77 
78 private:
80  void operator=(const vtkThreadedImageWriter&) = delete;
81 
82  class vtkInternals;
83  vtkInternals* Internals;
84  vtkTypeUInt32 MaxThreads;
85 };
86 
87 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
class used to compress/write images using threads to prevent locking while encoding data...
#define VTK_FILEPATH
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...