VTK
vtkLightingMapPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLightingMapPass.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 =========================================================================*/
33 #ifndef vtkLightingMapPass_h
34 #define vtkLightingMapPass_h
35 
36 #include "vtkRenderingOpenGL2Module.h" // For export macro
37 #include "vtkDefaultPass.h"
38 
40 
42 {
43 public:
44  static vtkLightingMapPass *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  enum RenderMode { LUMINANCE, NORMALS };
51  vtkSetMacro(RenderType, RenderMode);
52  vtkGetMacro(RenderType, RenderMode);
54 
58  static vtkInformationIntegerKey *RENDER_LUMINANCE();
59 
63  static vtkInformationIntegerKey *RENDER_NORMALS();
64 
65  //BTX
67 
69  virtual void Render(const vtkRenderState *s);
70  //ETX
72 
73  protected:
76 
78  virtual ~vtkLightingMapPass();
79 
81  virtual void RenderOpaqueGeometry(const vtkRenderState *s);
82 
83  private:
84  vtkLightingMapPass(const vtkLightingMapPass&); // Not implemented.
85  void operator=(const vtkLightingMapPass&); // Not implemented.
86 
87  RenderMode RenderType;
88 };
89 
90 #endif
virtual void Render(const vtkRenderState *s)
#define VTKRENDERINGOPENGL2_EXPORT
static vtkDefaultPass * New()
void PrintSelf(ostream &os, vtkIndent indent)
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for integer values in vtkInformation.
virtual void RenderOpaqueGeometry(const vtkRenderState *s)
Implement the basic render passes.