VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRenderPass.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00044 #ifndef vtkRenderPass_h 00045 #define vtkRenderPass_h 00046 00047 #include "vtkRenderingOpenGL2Module.h" // For export macro 00048 #include "vtkObject.h" 00049 00050 class vtkRenderState; 00051 class vtkWindow; 00052 class vtkRenderer; 00053 00054 class VTKRENDERINGOPENGL2_EXPORT vtkRenderPass : public vtkObject 00055 { 00056 public: 00057 vtkTypeMacro(vtkRenderPass,vtkObject); 00058 void PrintSelf(ostream& os, vtkIndent indent); 00059 00062 virtual void Render(const vtkRenderState *s)=0; 00063 00065 00066 vtkGetMacro(NumberOfRenderedProps,int); 00068 00071 virtual void ReleaseGraphicsResources(vtkWindow *w); 00072 00073 protected: 00075 vtkRenderPass(); 00076 00078 virtual ~vtkRenderPass(); 00079 00083 void UpdateCamera(vtkRenderer *renderer); 00084 00087 void ClearLights(vtkRenderer *renderer); 00088 00091 void UpdateLightGeometry(vtkRenderer *renderer); 00092 00095 void UpdateLights(vtkRenderer *renderer); 00096 00099 void UpdateGeometry(vtkRenderer *renderer); 00100 00102 00104 void SetLastRenderingUsedDepthPeeling(vtkRenderer *renderer, 00105 bool value); 00107 00108 int NumberOfRenderedProps; 00109 00110 private: 00111 vtkRenderPass(const vtkRenderPass&); // Not implemented. 00112 void operator=(const vtkRenderPass&); // Not implemented. 00113 }; 00114 00115 #endif