Go to the documentation of this file.
36 #ifndef vtkDataEncoder_h
37 #define vtkDataEncoder_h
40 #include "vtkWebCoreModule.h"
58 vtkGetMacro(MaxThreads, vtkTypeUInt32);
120 vtkInternals* Internals;
const char * EncodeAsBase64Jpg(vtkImageData *img, int quality=50)
Take an image data and synchronously convert it to a base-64 encoded jpg.
void Flush(vtkTypeUInt32 key)
Flushes the encoding pipe and blocks till the most recently pushed image for the particular key has b...
dynamic, self-adjusting array of unsigned char
abstract base class for most VTK objects
class used to compress/encode images using threads.
void Initialize()
Re-initializes the encoder.
void Finalize()
This method will wait for any running thread to terminate.
void SetMaxThreads(vtkTypeUInt32)
Define the number of worker threads to use.
topologically and geometrically regular array of data
a simple class to control print indentation
static vtkDataEncoder * New()
const char * EncodeAsBase64Png(vtkImageData *img, int compressionLevel=5)
Take an image data and synchronously convert it to a base-64 encoded png.
void PushAndTakeReference(vtkTypeUInt32 key, vtkImageData *&data, int quality, int encoding=1)
Push an image into the encoder.
bool GetLatestOutput(vtkTypeUInt32 key, vtkSmartPointer< vtkUnsignedCharArray > &data)
Get access to the most-recent fully encoded result corresponding to the given key,...
~vtkDataEncoder() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.