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 "vtkRenderPass.h"
47 
50 class vtkCamera;
51 class vtkLight;
53 class vtkShadowMapPassTextures; // internal
54 class vtkShadowMapPassLightCameras; // internal
55 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 
128 // vtkImageGaussianSource *IntensitySource;
132 
134 
135 private:
136  vtkShadowMapPass(const vtkShadowMapPass&); // Not implemented.
137  void operator=(const vtkShadowMapPass&); // Not implemented.
138 };
139 
140 #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:33
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:35
vtkSampleFunction * IntensitySource
Context in which a vtkRenderPass will render.
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:37
a virtual camera for 3D rendering
Definition: vtkCamera.h:47
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:59
vtkShadowMapPassTextures * ShadowMaps
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
#define VTK_RENDERING_EXPORT
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
virtual void ReleaseGraphicsResources(vtkWindow *w)
Create an image with Gaussian pixel values.
Implement a shadow mapping render pass.
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:53
vtkTextureObject * IntensityMap
vtkShaderProgram2 * Program
Implement a builder of shadow map pass.