VTK  9.0.20210227
vtkRenderPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderPass.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 =========================================================================*/
45 #ifndef vtkRenderPass_h
46 #define vtkRenderPass_h
47 
48 #include "vtkObject.h"
49 #include "vtkRenderingCoreModule.h" // For export macro
50 
52 class vtkRenderState;
53 class vtkWindow;
54 class vtkRenderer;
55 
56 class VTKRENDERINGCORE_EXPORT vtkRenderPass : public vtkObject
57 {
58 public:
59  vtkTypeMacro(vtkRenderPass, vtkObject);
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
67  virtual void Render(const vtkRenderState* s) = 0;
68 
70 
73  vtkGetMacro(NumberOfRenderedProps, int);
75 
81  virtual void ReleaseGraphicsResources(vtkWindow* w);
82 
83 protected:
87  vtkRenderPass();
88 
92  ~vtkRenderPass() override;
93 
99  void UpdateCamera(vtkRenderer* renderer);
100 
105  void ClearLights(vtkRenderer* renderer);
106 
111  void UpdateLightGeometry(vtkRenderer* renderer);
112 
117  void UpdateLights(vtkRenderer* renderer);
118 
123  void UpdateGeometry(vtkRenderer* renderer, vtkFrameBufferObjectBase* fbo = nullptr);
124 
131  void SetLastRenderingUsedDepthPeeling(vtkRenderer* renderer, bool value);
132 
134 
135 private:
136  vtkRenderPass(const vtkRenderPass&) = delete;
137  void operator=(const vtkRenderPass&) = delete;
138 };
139 
140 #endif
vtkX3D::value
Definition: vtkX3D.h:226
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkFrameBufferObjectBase
abstract interface to OpenGL FBOs
Definition: vtkFrameBufferObjectBase.h:32
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkRenderPass::NumberOfRenderedProps
int NumberOfRenderedProps
Definition: vtkRenderPass.h:133
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:56