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 =========================================================================*/
47 #ifndef vtkRenderPass_h
48 #define vtkRenderPass_h
49 
50 #include "vtkRenderingOpenGL2Module.h" // For export macro
51 #include "vtkObject.h"
52 
53 class vtkRenderState;
54 class vtkWindow;
55 class vtkRenderer;
56 
57 class VTKRENDERINGOPENGL2_EXPORT vtkRenderPass : public vtkObject
58 {
59  public:
60  vtkTypeMacro(vtkRenderPass,vtkObject);
61  void PrintSelf(ostream& os, vtkIndent indent);
62 
65  virtual void Render(const vtkRenderState *s)=0;
66 
68 
69  vtkGetMacro(NumberOfRenderedProps,int);
71 
74  virtual void ReleaseGraphicsResources(vtkWindow *w);
75 
76  protected:
78  vtkRenderPass();
79 
81  virtual ~vtkRenderPass();
82 
86  void UpdateCamera(vtkRenderer *renderer);
87 
90  void ClearLights(vtkRenderer *renderer);
91 
94  void UpdateLightGeometry(vtkRenderer *renderer);
95 
98  void UpdateLights(vtkRenderer *renderer);
99 
102  void UpdateGeometry(vtkRenderer *renderer);
103 
105 
107  void SetLastRenderingUsedDepthPeeling(vtkRenderer *renderer,
108  bool value);
110 
111  int NumberOfRenderedProps;
112 
113  private:
114  vtkRenderPass(const vtkRenderPass&); // Not implemented.
115  void operator=(const vtkRenderPass&); // Not implemented.
116 };
117 
118 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
abstract specification for renderers
Definition: vtkRenderer.h:63
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
Context in which a vtkRenderPass will render.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:54