ParaView
vtkPVClientServerSynchronizedRenderers.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVClientServerSynchronizedRenderers.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
23 #ifndef vtkPVClientServerSynchronizedRenderers_h
24 #define vtkPVClientServerSynchronizedRenderers_h
25 
26 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
27 #include "vtkSynchronizedRenderers.h"
28 
29 class vtkImageCompressor;
30 class vtkUnsignedCharArray;
31 
32 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVClientServerSynchronizedRenderers
33  : public vtkSynchronizedRenderers
34 {
35 public:
37  vtkTypeMacro(vtkPVClientServerSynchronizedRenderers, vtkSynchronizedRenderers);
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
40  // Descritpion:
41  // This flag is set by the renderer during still renderers. When set
42  // compressor must use loss-less compression. When unset compressor
43  // can (if it's enabled) use lossy compression.
44  vtkSetMacro(LossLessCompression, bool);
45  vtkGetMacro(LossLessCompression, bool);
46 
52  virtual void ConfigureCompressor(const char* stream);
53 
54 protected:
57 
63  virtual void PushImageToScreen();
64 
66 
69  void SetCompressor(vtkImageCompressor* comp);
70  vtkGetObjectMacro(Compressor, vtkImageCompressor);
72 
73  vtkUnsignedCharArray* Compress(vtkUnsignedCharArray*);
74  void Decompress(vtkUnsignedCharArray* input, vtkUnsignedCharArray* outputBuffer);
75 
76  virtual void MasterEndRender();
77  virtual void SlaveStartRender();
78  virtual void SlaveEndRender();
79 
82 
83 private:
85  const vtkPVClientServerSynchronizedRenderers&) VTK_DELETE_FUNCTION;
86  void operator=(const vtkPVClientServerSynchronizedRenderers&) VTK_DELETE_FUNCTION;
87 };
88 
89 #endif
Superclass for image compressor/decompressor used by Composite Managers.
vtkPVClientServerSynchronizedRenderers is similar to vtkClientServerSynchronizedRenderers except that...