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 =========================================================================*/
44 #ifndef vtkShadowMapPass_h
45 #define vtkShadowMapPass_h
46 
47 #include "vtkRenderingOpenGLModule.h" // For export macro
48 #include "vtkRenderPass.h"
49 
52 class vtkCamera;
53 class vtkLight;
55 class vtkShadowMapPassTextures; // internal
56 class vtkShadowMapPassLightCameras; // internal
57 class vtkShaderProgram2;
58 class vtkImageExport;
59 class vtkTextureObject;
60 class vtkImplicitHalo;
61 class vtkSampleFunction;
63 
64 class VTKRENDERINGOPENGL_EXPORT vtkShadowMapPass : public vtkRenderPass
65 {
66 public:
67  static vtkShadowMapPass *New();
69  void PrintSelf(ostream& os, vtkIndent indent);
70 
75  virtual void Render(const vtkRenderState *s);
76 
83 
85 
91  vtkGetObjectMacro(ShadowMapBakerPass,vtkShadowMapBakerPass);
92  virtual void SetShadowMapBakerPass(
93  vtkShadowMapBakerPass *shadowMapBakerPass);
95 
97 
105  vtkGetObjectMacro(OpaquePass,vtkRenderPass);
106  virtual void SetOpaquePass(vtkRenderPass *opaquePass);
108 
109  protected:
114 
118  virtual ~vtkShadowMapPass();
119 
124 
130 
133 
135 
140 
141  vtkShadowMapPassTextures *ShadowMaps;
142  vtkShadowMapPassLightCameras *LightCameras;
144 
146 
150 
152 
153 private:
154  vtkShadowMapPass(const vtkShadowMapPass&) VTK_DELETE_FUNCTION;
155  void operator=(const vtkShadowMapPass&) VTK_DELETE_FUNCTION;
156 };
157 
158 #endif
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
internal class which encapsulates OpenGL frame buffer object.
Export VTK images to third-party systems.
implicit function for an halo
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for integer values in vtkInformation.
a virtual light for 3D rendering
Definition: vtkLight.h:62
OpenGL rendering window.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:59
Context in which a vtkRenderPass will render.
sample an implicit function over a structured point set
Implement a builder of shadow map pass.
Implement a shadow mapping render pass.
vtkRenderPass * OpaquePass
vtkImageExport * IntensityExporter
vtkSampleFunction * IntensitySource
virtual ~vtkShadowMapPass()
Destructor.
virtual void SetOpaquePass(vtkRenderPass *opaquePass)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
vtkTextureObject * IntensityMap
vtkImplicitHalo * Halo
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
vtkShadowMapBakerPass * ShadowMapBakerPass
void CheckSupport(vtkOpenGLRenderWindow *w)
Check if shadow mapping is supported by the current OpenGL context.
virtual void SetShadowMapBakerPass(vtkShadowMapBakerPass *shadowMapBakerPass)
vtkShadowMapPassLightCameras * LightCameras
vtkShadowMapPassTextures * ShadowMaps
vtkRenderPass * CompositeRGBAPass
void BuildSpotLightIntensityMap()
Build the intensity map.
static vtkShadowMapPass * New()
vtkShadowMapPass()
Default constructor.
vtkTimeStamp LastRenderTime
vtkShaderProgram2 * Program
abstracts an OpenGL texture object.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35