ParaView
vtkTileDisplayHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 =========================================================================*/
29 #ifndef vtkTileDisplayHelper_h
30 #define vtkTileDisplayHelper_h
31 
32 #include "vtkObject.h"
33 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
34 #include "vtkSynchronizedRenderers.h" // needed for vtkRawImage.
35 
36 class vtkRenderer;
37 
38 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkTileDisplayHelper : public vtkObject
39 {
40 public:
42 
48  static vtkTileDisplayHelper* New();
49  vtkTypeMacro(vtkTileDisplayHelper, vtkObject);
50  void PrintSelf(ostream& os, vtkIndent indent);
52 
56  static vtkTileDisplayHelper* GetInstance();
57 
61  void SetTile(unsigned int key, double viewport[4], vtkRenderer* renderer,
62  vtkSynchronizedRenderers::vtkRawImage& tile);
63 
67  void EraseTile(unsigned int key);
68 
72  void EraseTile(unsigned int key, int leftEye);
73 
77  void FlushTiles(unsigned int key, int leftEye);
78 
80 
83  void ResetEnabledKeys();
84  void EnableKey(unsigned int);
86 
94  void SetDumpImagePath(const char* newPath);
95 
96 protected:
99 
100 private:
101  vtkTileDisplayHelper(const vtkTileDisplayHelper&) VTK_DELETE_FUNCTION;
102  void operator=(const vtkTileDisplayHelper&) VTK_DELETE_FUNCTION;
103 
104  class vtkInternals;
105  vtkInternals* Internals;
106 };
107 
108 #endif
used on server side in tile display mode, to ensure that the tiles from multiple views are rendered c...