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 "vtkRenderingCoreModule.h" // For export macro
52 #include "vtkObject.h"
53 
54 class vtkRenderState;
55 class vtkWindow;
56 class vtkRenderer;
57 
58 class VTKRENDERINGCORE_EXPORT vtkRenderPass : public vtkObject
59 {
60  public:
61  vtkTypeMacro(vtkRenderPass,vtkObject);
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
69  virtual void Render(const vtkRenderState *s)=0;
70 
72 
75  vtkGetMacro(NumberOfRenderedProps,int);
77 
83  virtual void ReleaseGraphicsResources(vtkWindow *w);
84 
85  protected:
89  vtkRenderPass();
90 
94  ~vtkRenderPass() override;
95 
101  void UpdateCamera(vtkRenderer *renderer);
102 
107  void ClearLights(vtkRenderer *renderer);
108 
113  void UpdateLightGeometry(vtkRenderer *renderer);
114 
119  void UpdateLights(vtkRenderer *renderer);
120 
125  void UpdateGeometry(vtkRenderer *renderer);
126 
133  void SetLastRenderingUsedDepthPeeling(vtkRenderer *renderer,
134  bool value);
135 
137 
138  private:
139  vtkRenderPass(const vtkRenderPass&) = delete;
140  void operator=(const vtkRenderPass&) = delete;
141 };
142 
143 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:63
int NumberOfRenderedProps
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:39
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:58