/usr/include/paraview/vtkPVSynchronizedRenderer.h is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | /*=========================================================================
Program: ParaView
Module: vtkPVSynchronizedRenderer.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkPVSynchronizedRenderer - synchronizes and composites renderers among
// processes in ParaView configurations.
// .SECTION Description
//
#ifndef vtkPVSynchronizedRenderer_h
#define vtkPVSynchronizedRenderer_h
#include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
#include "vtkObject.h"
class vtkIceTSynchronizedRenderers;
class vtkImageProcessingPass;
class vtkPKdTree;
class vtkPVSession;
class vtkRenderer;
class vtkRenderPass;
class vtkSynchronizedRenderers;
class vtkOpenGLRenderer;
class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVSynchronizedRenderer : public vtkObject
{
public:
static vtkPVSynchronizedRenderer* New();
vtkTypeMacro(vtkPVSynchronizedRenderer, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set this flag to true before calling Initialize() to disable using
// vtkIceTSynchronizedRenderers for parallel rendering.
vtkSetMacro(DisableIceT, bool);
vtkGetMacro(DisableIceT, bool);
// Must be called once to initialize the class. Id is uniquefier. It is
// typically same as the id passed to vtkPVView::Initialize(). This makes it
// possible to identify what view this instance corresponds to.
// vtkPVSynchronizedRenderer passes this id to vtkIceTSynchronizedRenderers.
// vtkIceTSynchronizedRenderers uses the id to ensure that the correct group
// of views is shown on a tile-display.
void Initialize(vtkPVSession* session, unsigned int id);
// Description:
// kd tree that gives processes ordering. Initial value is a NULL pointer.
// This is used only when UseOrderedCompositing is true.
void SetKdTree(vtkPKdTree *kdtree);
// Description:
// Set the renderer that is being synchronized.
void SetRenderer(vtkRenderer*);
// Description:
// Enable/Disable parallel rendering.
virtual void SetEnabled(bool enabled);
vtkGetMacro(Enabled, bool);
vtkBooleanMacro(Enabled, bool);
// Description:
// Get/Set the image reduction factor.
// This needs to be set on all processes and must match up.
void SetImageReductionFactor(int);
vtkGetMacro(ImageReductionFactor, int);
// Description:
// Set to true if data is replicated on all processes. This will enable IceT
// to minimize communications since data is available on all process. Off by
// default.
void SetDataReplicatedOnAllProcesses(bool);
vtkGetMacro(DataReplicatedOnAllProcesses, bool);
vtkBooleanMacro(DataReplicatedOnAllProcesses, bool);
// Description:
// Get/Set an image processing pass to process the rendered images.
void SetImageProcessingPass(vtkImageProcessingPass*);
vtkGetObjectMacro(ImageProcessingPass, vtkImageProcessingPass);
// Description:
// Get/Set geometry rendering pass. This pass is used to render the geometry.
// If none specified then default rendering pipeline is used. This is
// typically the render-pass pipeline after the CameraPass. The CameraPass is
// setup by ParaView specially since ParaView needs some customizations for
// multiviews/icet etc.
void SetRenderPass(vtkRenderPass*);
vtkGetObjectMacro(RenderPass, vtkRenderPass);
// Description:
// Passes the compressor configuration to the client-server synchronizer, if
// any. This affects the image compression used to relay images back to the
// client.
// See vtkPVClientServerSynchronizedRenderers::ConfigureCompressor() for
// details.
void ConfigureCompressor(const char* configuration);
void SetLossLessCompression(bool);
// Description:
// Activates or de-activated the use of Depth Buffer in an ImageProcessingPass
void SetUseDepthBuffer(bool);
// Description:
// Enable/Disable empty images optimization.
void SetRenderEmptyImages(bool);
//BTX
// Description:
// Not for the faint hearted. This internal vtkSynchronizedRenderers instances
// are exposed for advanced users that want to do advanced tricks with
// rendering. These will change without notice. Do not use them unless you
// know what you are doing.
// ParallelSynchronizer is the vtkSynchronizedRenderers used to synchronize
// rendering between processes in an MPI group -- typically
// vtkIceTSynchronizedRenderers when available.
// CSSynchronizer is the client-server vtkSynchronizedRenderers used in
// client-server configurations.
vtkGetObjectMacro(ParallelSynchronizer, vtkSynchronizedRenderers);
vtkGetObjectMacro(CSSynchronizer, vtkSynchronizedRenderers);
protected:
vtkPVSynchronizedRenderer();
~vtkPVSynchronizedRenderer();
// Description:
// Sets up the render passes on the renderer. This won't get called on
// processes where vtkIceTSynchronizedRenderers is used. In that case the
// passes are forwarded to the vtkIceTSynchronizedRenderers instance.
virtual void SetupPasses();
vtkSynchronizedRenderers* CSSynchronizer;
vtkSynchronizedRenderers* ParallelSynchronizer;
vtkImageProcessingPass *ImageProcessingPass;
vtkRenderPass* RenderPass;
enum ModeEnum
{
INVALID,
BUILTIN,
CLIENT,
SERVER,
BATCH
};
ModeEnum Mode;
bool Enabled;
bool DisableIceT;
int ImageReductionFactor;
vtkOpenGLRenderer* Renderer;
bool UseDepthBuffer;
bool RenderEmptyImages;
bool DataReplicatedOnAllProcesses;
private:
vtkPVSynchronizedRenderer(const vtkPVSynchronizedRenderer&); // Not implemented
void operator=(const vtkPVSynchronizedRenderer&); // Not implemented
//ETX
};
#endif
|