VTK
vtkOpenGLRenderPass.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLRenderPass.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=========================================================================*/
15
24#ifndef vtkOpenGLRenderPass_h
25#define vtkOpenGLRenderPass_h
26
27#include "vtkRenderingOpenGL2Module.h" // For export macro
28#include "vtkRenderPass.h"
29
30#include <string> // For std::string
31
34class vtkProp;
36
37class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLRenderPass: public vtkRenderPass
38{
39public:
41 virtual void PrintSelf(ostream &os, vtkIndent indent);
42
48 virtual bool ReplaceShaderValues(std::string &vertexShader,
49 std::string &geometryShader,
50 std::string &fragmentShader,
51 vtkAbstractMapper *mapper, vtkProp *prop);
52
57 virtual bool SetShaderParameters(vtkShaderProgram *program,
58 vtkAbstractMapper *mapper, vtkProp *prop);
59
67 virtual vtkMTimeType GetShaderStageMTime();
68
72 static vtkInformationObjectBaseVectorKey *RenderPasses();
73
74protected:
77
81 void PreRender(const vtkRenderState *s);
82
86 void PostRender(const vtkRenderState *s);
87
88private:
89 vtkOpenGLRenderPass(const vtkOpenGLRenderPass&) VTK_DELETE_FUNCTION;
90 void operator=(const vtkOpenGLRenderPass&) VTK_DELETE_FUNCTION;
91};
92
93#endif // vtkOpenGLRenderPass_h
abstract class specifies interface to map data
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for vtkObjectBase vector values.
Abstract render pass with shader modifications.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:59
Context in which a vtkRenderPass will render.
The ShaderProgram uses one or more Shader objects.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248