VTK
vtkShadowMapPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShadowMapPass.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 =========================================================================*/
43 #ifndef vtkShadowMapPass_h
44 #define vtkShadowMapPass_h
45 
46 #include "vtkRenderingOpenGLModule.h" // For export macro
47 #include "vtkRenderPass.h"
48 
51 class vtkCamera;
52 class vtkLight;
54 class vtkShadowMapPassTextures; // internal
55 class vtkShadowMapPassLightCameras; // internal
56 class vtkShaderProgram2;
57 class vtkImageExport;
58 class vtkTextureObject;
59 class vtkImplicitHalo;
60 class vtkSampleFunction;
62 
64 {
65 public:
66  static vtkShadowMapPass *New();
68  void PrintSelf(ostream& os, vtkIndent indent);
69 
70  //BTX
72 
74  virtual void Render(const vtkRenderState *s);
75  //ETX
77 
81 
83 
85  vtkGetObjectMacro(ShadowMapBakerPass,vtkShadowMapBakerPass);
86  virtual void SetShadowMapBakerPass(
87  vtkShadowMapBakerPass *shadowMapBakerPass);
89 
91 
96  vtkGetObjectMacro(OpaquePass,vtkRenderPass);
97  virtual void SetOpaquePass(vtkRenderPass *opaquePass);
99 
100  protected:
103 
105  virtual ~vtkShadowMapPass();
106 
108  void BuildSpotLightIntensityMap();
109 
112  void CheckSupport(vtkOpenGLRenderWindow *w);
113 
116 
118 
121 
122  vtkShadowMapPassTextures *ShadowMaps;
123  vtkShadowMapPassLightCameras *LightCameras;
125 
127 
131 
133 
134 private:
135  vtkShadowMapPass(const vtkShadowMapPass&); // Not implemented.
136  void operator=(const vtkShadowMapPass&); // Not implemented.
137 };
138 
139 #endif
OpenGL rendering window.
sample an implicit function over a structured point set
vtkTimeStamp LastRenderTime
vtkShadowMapBakerPass * ShadowMapBakerPass
vtkRenderPass * CompositeRGBAPass
vtkImplicitHalo * Halo
vtkRenderPass * OpaquePass
record modification and/or execution time
Definition: vtkTimeStamp.h:34
vtkImageExport * IntensityExporter
vtkFrameBufferObject * FrameBufferObject
vtkShadowMapPassLightCameras * LightCameras
implicit function for an halo
Export VTK images to third-party systems.
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
vtkSampleFunction * IntensitySource
Context in which a vtkRenderPass will render.
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:38
a virtual camera for 3D rendering
Definition: vtkCamera.h:48
#define VTKRENDERINGOPENGL_EXPORT
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:60
vtkShadowMapPassTextures * ShadowMaps
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
virtual void ReleaseGraphicsResources(vtkWindow *w)
Implement a shadow mapping render pass.
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:54
vtkTextureObject * IntensityMap
vtkShaderProgram2 * Program
Implement a builder of shadow map pass.