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 =========================================================================*/
41 #ifndef vtkShadowMapPass_h
42 #define vtkShadowMapPass_h
43 
44 #include "vtkRenderingOpenGLModule.h" // For export macro
45 #include "vtkRenderPass.h"
46 
49 class vtkCamera;
50 class vtkLight;
52 class vtkShadowMapPassTextures; // internal
53 class vtkShadowMapPassLightCameras; // internal
54 class vtkShaderProgram2;
55 class vtkImageExport;
56 class vtkTextureObject;
57 class vtkImplicitHalo;
58 class vtkSampleFunction;
60 
61 class VTKRENDERINGOPENGL_EXPORT vtkShadowMapPass : public vtkRenderPass
62 {
63 public:
64  static vtkShadowMapPass *New();
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
72  virtual void Render(const vtkRenderState *s);
73 
80 
82 
88  vtkGetObjectMacro(ShadowMapBakerPass,vtkShadowMapBakerPass);
89  virtual void SetShadowMapBakerPass(
90  vtkShadowMapBakerPass *shadowMapBakerPass);
92 
94 
102  vtkGetObjectMacro(OpaquePass,vtkRenderPass);
103  virtual void SetOpaquePass(vtkRenderPass *opaquePass);
105 
106  protected:
111 
115  virtual ~vtkShadowMapPass();
116 
120  void BuildSpotLightIntensityMap();
121 
126  void CheckSupport(vtkOpenGLRenderWindow *w);
127 
130 
132 
137 
138  vtkShadowMapPassTextures *ShadowMaps;
139  vtkShadowMapPassLightCameras *LightCameras;
141 
143 
147 
149 
150 private:
151  vtkShadowMapPass(const vtkShadowMapPass&) VTK_DELETE_FUNCTION;
152  void operator=(const vtkShadowMapPass&) VTK_DELETE_FUNCTION;
153 };
154 
155 #endif
OpenGL rendering window.
sample an implicit function over a structured point set
vtkTimeStamp LastRenderTime
vtkShadowMapPassTextures * ShadowMaps
vtkImplicitHalo * Halo
vtkRenderPass * OpaquePass
vtkShadowMapPassLightCameras * LightCameras
vtkRenderPass * CompositeRGBAPass
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkImageExport * IntensityExporter
implicit function for an halo
Export VTK images to third-party systems.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkSampleFunction * IntensitySource
Context in which a vtkRenderPass will render.
vtkShadowMapBakerPass * ShadowMapBakerPass
GLSL Program.
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:61
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
internal class which encapsulates OpenGL frame buffer object.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
Implement a shadow mapping render pass.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:58
vtkTextureObject * IntensityMap
vtkShaderProgram2 * Program
Implement a builder of shadow map pass.