VTK
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 
84  virtual void ReleaseGraphicsResources(vtkWindow *w);
85 
86  protected:
90  vtkRenderPass();
91 
95  ~vtkRenderPass() override;
96 
102  void UpdateCamera(vtkRenderer *renderer);
103 
108  void ClearLights(vtkRenderer *renderer);
109 
114  void UpdateLightGeometry(vtkRenderer *renderer);
115 
120  void UpdateLights(vtkRenderer *renderer);
121 
126  void UpdateGeometry(vtkRenderer *renderer, vtkFrameBufferObjectBase* fbo = nullptr);
127 
134  void SetLastRenderingUsedDepthPeeling(vtkRenderer *renderer,
135  bool value);
136 
138 
139  private:
140  vtkRenderPass(const vtkRenderPass&) = delete;
141  void operator=(const vtkRenderPass&) = delete;
142 };
143 
144 #endif
vtkX3D::value
Definition: vtkX3D.h:220
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkFrameBufferObjectBase
abstract interface to OpenGL FBOs
Definition: vtkFrameBufferObjectBase.h:32
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
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:137
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:59