VTK  9.3.20240327
vtkClientServerCompositePass.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkClientServerCompositePass_h
15 #define vtkClientServerCompositePass_h
16 
17 #include "vtkRenderPass.h"
18 #include "vtkRenderingParallelModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
22 
23 class VTKRENDERINGPARALLEL_EXPORT vtkClientServerCompositePass : public vtkRenderPass
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
34  void Render(const vtkRenderState* s) override;
35 
42 
44 
51  vtkGetObjectMacro(Controller, vtkMultiProcessController);
52  virtual void SetController(vtkMultiProcessController* controller);
54 
56 
62  vtkGetObjectMacro(RenderPass, vtkRenderPass);
64 
66 
75  vtkGetObjectMacro(PostProcessingRenderPass, vtkRenderPass);
77 
79 
84  vtkSetMacro(ProcessIsServer, bool);
85  vtkBooleanMacro(ProcessIsServer, bool);
86  vtkGetMacro(ProcessIsServer, bool);
88 
90 
95  vtkSetMacro(ServerSideRendering, bool);
96  vtkBooleanMacro(ServerSideRendering, bool);
97  vtkGetMacro(ServerSideRendering, bool);
99 
100 protected:
103 
107 
110 
111 private:
113  void operator=(const vtkClientServerCompositePass&) = delete;
114 };
115 
116 VTK_ABI_NAMESPACE_END
117 #endif
vtkClientServerCompositePass is a render-pass that can handle client-server image delivery.
virtual void SetController(vtkMultiProcessController *controller)
Controller If it is NULL, nothing will be rendered and a warning will be emitted.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPostProcessingRenderPass(vtkRenderPass *)
Set/Get the optional post-fetch render pass.
static vtkClientServerCompositePass * New()
~vtkClientServerCompositePass() override
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
void SetRenderPass(vtkRenderPass *)
Get/Set the render pass used to do the actual rendering.
vtkMultiProcessController * Controller
a simple class to control print indentation
Definition: vtkIndent.h:108
Multiprocessing communication superclass.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
Context in which a vtkRenderPass will render.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:47