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 =========================================================================*/
44 #ifndef vtkRenderPass_h
45 #define vtkRenderPass_h
46 
47 #include "vtkRenderingOpenGLModule.h" // For export macro
48 #include "vtkObject.h"
49 
50 class vtkRenderState;
51 class vtkWindow;
52 class vtkRenderer;
53 
55 {
56  public:
57  vtkTypeMacro(vtkRenderPass,vtkObject);
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
60  //BTX
62 
64  virtual void Render(const vtkRenderState *s)=0;
65  //ETX
67 
69 
70  vtkGetMacro(NumberOfRenderedProps,int);
72 
75  virtual void ReleaseGraphicsResources(vtkWindow *w);
76 
77  protected:
79  vtkRenderPass();
80 
82  virtual ~vtkRenderPass();
83 
87  void UpdateCamera(vtkRenderer *renderer);
88 
91  void ClearLights(vtkRenderer *renderer);
92 
95  void UpdateLightGeometry(vtkRenderer *renderer);
96 
99  void UpdateLights(vtkRenderer *renderer);
100 
103  void UpdateGeometry(vtkRenderer *renderer);
104 
106 
108  void SetLastRenderingUsedDepthPeeling(vtkRenderer *renderer,
109  bool value);
111 
113 
114  private:
115  vtkRenderPass(const vtkRenderPass&); // Not implemented.
116  void operator=(const vtkRenderPass&); // Not implemented.
117 };
118 
119 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
abstract specification for renderers
Definition: vtkRenderer.h:63
int NumberOfRenderedProps
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
#define VTKRENDERINGOPENGL_EXPORT
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:54