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=========================================================================*/
34#ifndef vtkCompositeZPass_h
35#define vtkCompositeZPass_h
36
37#include "vtkRenderingParallelModule.h" // For export macro
38#include "vtkRenderPass.h"
39
41
45#ifdef VTK_OPENGL2
46class vtkOpenGLHelper;
47#else
49#endif
50
51class VTKRENDERINGPARALLEL_EXPORT vtkCompositeZPass : public vtkRenderPass
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent);
57
62 virtual void Render(const vtkRenderState *s);
63
70
72
77 vtkGetObjectMacro(Controller,vtkMultiProcessController);
78 virtual void SetController(vtkMultiProcessController *controller);
80
85
86 protected:
91
96
104
106
109#ifdef VTK_OPENGL2
110 vtkOpenGLHelper *Program;
111#else
113#endif
116
117 private:
118 vtkCompositeZPass(const vtkCompositeZPass&) VTK_DELETE_FUNCTION;
119 void operator=(const vtkCompositeZPass&) VTK_DELETE_FUNCTION;
120};
121
122#endif
Merge depth buffers of processes.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
vtkMultiProcessController * Controller
vtkShaderProgram2 * Program
virtual void SetController(vtkMultiProcessController *controller)
vtkTextureObject * ZTexture
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
bool IsSupported(vtkOpenGLRenderWindow *context)
Is the pass supported by the OpenGL context?
vtkPixelBufferObject * PBO
static vtkCompositeZPass * New()
void CreateProgram(vtkOpenGLRenderWindow *context)
Create program for texture mapping.
vtkCompositeZPass()
Default constructor.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual ~vtkCompositeZPass()
Destructor.
a simple class to control print indentation
Definition: vtkIndent.h:40
Multiprocessing communication superclass.
OpenGL rendering window.
abstracts an OpenGL pixel buffer object.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:59
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35