VTK  9.1.20220522
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 =========================================================================*/
48 #ifndef vtkRenderPass_h
49 #define vtkRenderPass_h
50 
51 #include "vtkObject.h"
52 #include "vtkRenderingCoreModule.h" // For export macro
53 
55 class vtkRenderState;
56 class vtkWindow;
57 class vtkRenderer;
58 
59 class VTKRENDERINGCORE_EXPORT vtkRenderPass : public vtkObject
60 {
61 public:
62  vtkTypeMacro(vtkRenderPass, vtkObject);
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
70  virtual void Render(const vtkRenderState* s) = 0;
71 
73 
76  vtkGetMacro(NumberOfRenderedProps, int);
78 
85 
86 protected:
91 
95  ~vtkRenderPass() override;
96 
102  void UpdateCamera(vtkRenderer* renderer);
103 
108  void ClearLights(vtkRenderer* renderer);
109 
115 
120  void UpdateLights(vtkRenderer* renderer);
121 
126  void UpdateGeometry(vtkRenderer* renderer, vtkFrameBufferObjectBase* fbo = nullptr);
127 
135 
137 
138 private:
139  vtkRenderPass(const vtkRenderPass&) = delete;
140  void operator=(const vtkRenderPass&) = delete;
141 };
142 
143 #endif
abstract interface to OpenGL FBOs
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract base class for most VTK objects
Definition: vtkObject.h:82
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:60
void SetLastRenderingUsedDepthPeeling(vtkRenderer *renderer, bool value)
Modify protected member LastRenderingUsedDepthPeeling on Renderer.
void ClearLights(vtkRenderer *renderer)
Call ClearLights() on Renderer.
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void UpdateLights(vtkRenderer *renderer)
Call UpdateLights() on Renderer.
void UpdateCamera(vtkRenderer *renderer)
Call UpdateCamera() on Renderer.
vtkRenderPass()
Default constructor.
void UpdateLightGeometry(vtkRenderer *renderer)
Call UpdateLightGeometry() on Renderer.
int NumberOfRenderedProps
void UpdateGeometry(vtkRenderer *renderer, vtkFrameBufferObjectBase *fbo=nullptr)
Call UpdateGeometry() on Renderer.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
~vtkRenderPass() override
Destructor.
Context in which a vtkRenderPass will render.
abstract specification for renderers
Definition: vtkRenderer.h:182
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
@ value
Definition: vtkX3D.h:226