VTK  9.1.0
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
52class vtkRenderState;
53class vtkWindow;
54class vtkRenderer;
55
56class VTKRENDERINGCORE_EXPORT vtkRenderPass : public vtkObject
57{
58public:
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
82
83protected:
88
92 ~vtkRenderPass() override;
93
99 void UpdateCamera(vtkRenderer* renderer);
100
105 void ClearLights(vtkRenderer* renderer);
106
112
117 void UpdateLights(vtkRenderer* renderer);
118
123 void UpdateGeometry(vtkRenderer* renderer, vtkFrameBufferObjectBase* fbo = nullptr);
124
132
134
135private:
136 vtkRenderPass(const vtkRenderPass&) = delete;
137 void operator=(const vtkRenderPass&) = delete;
138};
139
140#endif
abstract interface to OpenGL FBOs
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
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:173
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
@ value
Definition: vtkX3D.h:226