Go to the documentation of this file.
26 #ifndef vtkThreadedImageWriter_h
27 #define vtkThreadedImageWriter_h
29 #include "vtkIOAsynchronousModule.h"
70 vtkGetMacro(MaxThreads, vtkTypeUInt32);
86 vtkInternals* Internals;
87 vtkTypeUInt32 MaxThreads;
void Finalize()
This method will wait for any running thread to terminate.
void Initialize()
Need to be called at least once before using the class.
~vtkThreadedImageWriter() override
abstract base class for most VTK objects
class used to compress/write images using threads to prevent locking while encoding data.
void PushImageToQueue(vtkImageData *&data, const char *fileName)
Push an image into the threaded writer.
topologically and geometrically regular array of data
a simple class to control print indentation
void SetMaxThreads(vtkTypeUInt32)
Define the number of worker thread to use.
void EncodeAndWrite(vtkImageData *image, const char *fileName)
Use vtkErrorMacro to check that image is valid then call PushImageToQueue() internally if image is pr...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkThreadedImageWriter * New()