ParaView
|
Superclass for image compressor/decompressor used by Composite Managers. More...
#include <vtkImageCompressor.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | Compress ()=0 |
Call this method to compress the input and generate the compressed data. More... | |
virtual int | Decompress ()=0 |
Decompresses and geenartes the decompressed data as output. More... | |
virtual void | SaveConfiguration (vtkMultiProcessStream *stream) |
Serialize compressor configuration (but not the data) into the stream. More... | |
virtual bool | RestoreConfiguration (vtkMultiProcessStream *stream) |
Restore state from the stream. More... | |
virtual const char * | SaveConfiguration () |
Serialize compressor configuration (but not the data) into the stream. More... | |
virtual const char * | RestoreConfiguration (const char *stream) |
Restore state from the stream, The stream format for all image compressor is: [ClassName, LossLessMode, [Derived Class Stream]]. More... | |
void | SetInput (vtkUnsignedCharArray *input) |
Get/Set the input to this compressor. More... | |
virtual vtkUnsignedCharArray * | GetInput () |
Get/Set the input to this compressor. More... | |
virtual vtkUnsignedCharArray * | GetOutput () |
Get/Set the output of the compressor. More... | |
void | SetOutput (vtkUnsignedCharArray *) |
Get/Set the output of the compressor. More... | |
virtual void | SetLossLessMode (int) |
When set the implementation must use loss-less compression, otherwise implemnetation should user provided settings. More... | |
virtual int | GetLossLessMode () |
When set the implementation must use loss-less compression, otherwise implemnetation should user provided settings. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkImageCompressor * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
virtual void | SetConfiguration (const char *) |
vtkImageCompressor () | |
Construct with NULL input array and empty but allocated output array. More... | |
virtual | ~vtkImageCompressor () |
Construct with NULL input array and empty but allocated output array. More... | |
Protected Attributes | |
vtkUnsignedCharArray * | Output |
vtkUnsignedCharArray * | Input |
int | LossLessMode |
char * | Configuration |
Superclass for image compressor/decompressor used by Composite Managers.
vtkImageCompressor is an abstract superclass for the helper object used to compress images by the vtkParallelManager subclasses. Compressors must implement Compress,Decomperss methods, which respect the LossLessMode ivar, which is used by the composite manager to force loss less compression during a still render. Additionally compressors must be able to seriealize and restore their setting from a stream.
Definition at line 38 of file vtkImageCompressor.h.
typedef vtkObject vtkImageCompressor::Superclass |
Definition at line 41 of file vtkImageCompressor.h.
|
protected |
Construct with NULL input array and empty but allocated output array.
|
protectedvirtual |
Construct with NULL input array and empty but allocated output array.
|
virtual |
Reimplemented in vtkSquirtCompressor, vtkZlibImageCompressor, and vtkLZ4Compressor.
|
static |
|
virtual |
Reimplemented in vtkSquirtCompressor, vtkZlibImageCompressor, and vtkLZ4Compressor.
|
static |
void vtkImageCompressor::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkImageCompressor::SetInput | ( | vtkUnsignedCharArray * | input | ) |
Get/Set the input to this compressor.
|
virtual |
Get/Set the input to this compressor.
|
virtual |
Get/Set the output of the compressor.
void vtkImageCompressor::SetOutput | ( | vtkUnsignedCharArray * | ) |
Get/Set the output of the compressor.
|
virtual |
When set the implementation must use loss-less compression, otherwise implemnetation should user provided settings.
Reimplemented in vtkZlibImageCompressor.
|
virtual |
When set the implementation must use loss-less compression, otherwise implemnetation should user provided settings.
|
pure virtual |
Call this method to compress the input and generate the compressed data.
Implemented in vtkSquirtCompressor, vtkLZ4Compressor, and vtkZlibImageCompressor.
|
pure virtual |
Decompresses and geenartes the decompressed data as output.
Input must be compressed data.
Implemented in vtkSquirtCompressor, vtkLZ4Compressor, and vtkZlibImageCompressor.
|
virtual |
Serialize compressor configuration (but not the data) into the stream.
Reimplemented in vtkSquirtCompressor, vtkLZ4Compressor, and vtkZlibImageCompressor.
|
virtual |
Restore state from the stream.
The stream format for all image compressor is: [ClassName, LossLessMode, [Derived Class Stream]].
Reimplemented in vtkSquirtCompressor, vtkLZ4Compressor, and vtkZlibImageCompressor.
|
virtual |
Serialize compressor configuration (but not the data) into the stream.
A pointer to the internally managed stream is returned (ie do not free it!).
Reimplemented in vtkSquirtCompressor, vtkLZ4Compressor, and vtkZlibImageCompressor.
|
virtual |
Restore state from the stream, The stream format for all image compressor is: [ClassName, LossLessMode, [Derived Class Stream]].
Upon success the stream is returned otherwise 0 is returned indicating an error.
Reimplemented in vtkSquirtCompressor, vtkLZ4Compressor, and vtkZlibImageCompressor.
|
protectedvirtual |
|
protected |
Definition at line 116 of file vtkImageCompressor.h.
|
protected |
Definition at line 117 of file vtkImageCompressor.h.
|
protected |
Definition at line 119 of file vtkImageCompressor.h.
|
protected |
Definition at line 121 of file vtkImageCompressor.h.