VTK
vtkCompositeZPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeZPass.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
31 #ifndef vtkCompositeZPass_h
32 #define vtkCompositeZPass_h
33 
34 #include "vtkRenderingParallelModule.h" // For export macro
35 #include "vtkRenderPass.h"
36 
38 
40 class vtkTextureObject;
42 class vtkOpenGLHelper;
43 
44 class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
45 {
46 public:
47  static vtkCompositeZPass *New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
55  void Render(const vtkRenderState *s) override;
56 
62  void ReleaseGraphicsResources(vtkWindow *w) override;
63 
65 
70  vtkGetObjectMacro(Controller,vtkMultiProcessController);
71  virtual void SetController(vtkMultiProcessController *controller);
73 
77  bool IsSupported(vtkOpenGLRenderWindow *context);
78 
79  protected:
84 
88  ~vtkCompositeZPass() override;
89 
96  void CreateProgram(vtkOpenGLRenderWindow *context);
97 
99 
103  float *RawZBuffer;
105 
106  private:
107  vtkCompositeZPass(const vtkCompositeZPass&) = delete;
108  void operator=(const vtkCompositeZPass&) = delete;
109 };
110 
111 #endif
vtkRenderPass::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkCompositeZPass::Program
vtkOpenGLHelper * Program
Definition: vtkCompositeZPass.h:102
vtkRenderPass.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkCompositeZPass::RawZBuffer
float * RawZBuffer
Definition: vtkCompositeZPass.h:103
vtkCompositeZPass::Controller
vtkMultiProcessController * Controller
Definition: vtkCompositeZPass.h:98
vtkRenderPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCompositeZPass::PBO
vtkPixelBufferObject * PBO
Definition: vtkCompositeZPass.h:100
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:30
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:41
vtkCompositeZPass::RawZBufferSize
size_t RawZBufferSize
Definition: vtkCompositeZPass.h:104
vtkCompositeZPass::ZTexture
vtkTextureObject * ZTexture
Definition: vtkCompositeZPass.h:101
vtkCompositeZPass
Merge depth buffers of processes.
Definition: vtkCompositeZPass.h:44
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:50
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkPixelBufferObject
abstracts an OpenGL pixel buffer object.
Definition: vtkPixelBufferObject.h:43
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:55